Searching We.Love.Privacy.Club

Twts matching #mu
Sort by: Newest, Oldest, Most Relevant

yes, yes that’s right. Mu (”) now has a built-in LSP server for fans of VS Code / VSCodium 😅 You just go install ./cmd/mu-lsp/... and install the VS extension and hey presto đŸ„ł You get outlines of any Mu source, Find References and Go to Definition!

​ Read More
In-reply-to » Btw @movq you've inspired me to try and have a good 'ol crack at writing a bootloader, stage1 and customer microkernel (”Kernel) that will eventually load up a Mu (”) program and run it! đŸ€Ł I will teach Mu (”) to have a ./bin/mu -B -o ... -p muos/amd64 ... target.

@prologic@twtxt.net I’d love to take a look at the code. 😅

I’m kind of curious to know how much Assembly I need vs. How much of a microkernel can I build purely in Mu (”)? đŸ€”

Can’t really answer that, because I only made a working kernel for 16-bit real mode yet. That is 99% C, though, only syscall entry points are Assembly. (The OpenWatcom compiler provides C wrappers for triggering software interrupts, which makes things easier.)

But in long mode? No idea yet. 😅 At least changing the page tables will require a tiny little bit of Assembly.

​ Read More
In-reply-to » Btw @movq you've inspired me to try and have a good 'ol crack at writing a bootloader, stage1 and customer microkernel (”Kernel) that will eventually load up a Mu (”) program and run it! đŸ€Ł I will teach Mu (”) to have a ./bin/mu -B -o ... -p muos/amd64 ... target.

I’m kind of curious to know how much Assembly I need vs. How much of a microkernel can I build purely in Mu (”)? đŸ€”

​ Read More
In-reply-to » Btw @movq you've inspired me to try and have a good 'ol crack at writing a bootloader, stage1 and customer microkernel (”Kernel) that will eventually load up a Mu (”) program and run it! đŸ€Ł I will teach Mu (”) to have a ./bin/mu -B -o ... -p muos/amd64 ... target.

Whohoo! đŸ„ł You have no idea how great a feeling this is! This includes the Mu stdlib and runtime as well, not just some simple stupid program, this means a significant portion of the runtime and stdlib “just works”ℱ đŸ€Ł

​ Read More

Btw @movq@www.uninformativ.de you’ve inspired me to try and have a good ‘ol crack at writing a bootloader, stage1 and customer microkernel (”Kernel) that will eventually load up a Mu (”) program and run it! đŸ€Ł I will teach Mu (”) to have a ./bin/mu -B -o ... -p muos/amd64 ... target.

​ Read More

Took me nearly all week (in my spare time), but Mu (”) finally officially support linux/amd64 đŸ„ł I completely refactored the native code backend and borrowed a lot of the structure from another project called wazero (the zero dependency Go WASM runtime/compiler). This is amazing stuff because now Mu (”) runs in more places natively, as well as running everywhere Go runs via the bytecode VM interpreter đŸ€ž

​ Read More

This week, Mu (”) get s bit more serious and starts to refactor the native backend (a lot). Soonℱ we will support darwin/arm64, linux/arm64 and linux/amd64 (Yes, other forms of BSD will come!) – Mu (”) also last week grew concurrency support too! đŸ€Ł

​ Read More
In-reply-to » Mu (”) is coming along really nicely đŸ€Ł Few things left to do (in order):

@prologic@twtxt.net

Shin'ya M. > ./bin/mu
panic: native backend does not support syscall platform netbsd/amd64

goroutine 1 [running]:
git.mills.io/prologic/mu/internal/native/arm64.init.0()
        /home/shinyoukai/mu/internal/native/arm64/emitter.go:45 +0x7bf


that was supposed to be the interpreter?

​ Read More

Mu (”) is coming along really nicely đŸ€Ł Few things left to do (in order):

  • Finish the concurrency support.
  • Add support for sockets
  • Add support for linux/amd64
  • Rewrite the heap allocator
  • Rewrite Mu (”) in well umm Mu (”) 😅

Here’s a screenshot showing off the builtin help():

​ Read More

Mu (”) is now getting much closer to where I want it to be, it now has:

  • A process stdlib module (very basic, but it works)
  • An ffi stdob module that supports dlopen / dlsym and calling C functions with a nice mu-esque wrapper ffi.fn(...)
  • A sqlite stdlib module (also very basic) that shows off the FFI capabilities

😅

​ Read More

Opinion / Question time


Do you think Mu (”)’s native compiler and therefore emitted machine code “runtime” (which obviously adds a bit of weight to the resulting binary, and runtime overheads) needs to support “runtime stack traces”, or would it be enough to only support that in the bytecode VM interpreter for debuggability / quick feedback loops and instead just rely on flat (no stacktraces) errors in natively built compiled executables?

So in effect:

Stack Traces:

  • Bytecode VM Interpreter: ✅
  • Native Code Executables: ❌

​ Read More

mu (”) now has builtin code formatting and linting tools, making ” far more useful and useable as a general purpose programming language. Mu now includes:

  • An interpreter for quick “scriptinog”
  • A native code compiler for building native executables (Darwin / macOS only for now)
  • A builtin set of developer tools, currently: fmt (-fmt), check (-check) and test (-test).

​ Read More
In-reply-to » Whoo! I fixed one of the hardest bugs in mu (”) I think I've had to figure out. Took me several days in fact to figure it out. The basic problem was, println(1, 2) was bring printed as 1 2 in the bytecode VM and 1 nil when natively compiled to machine code on macOS. In the end it turned out the machine code being generated / emitted meant that the list pointers for the rest... of the variadic arguments was being slot into a register that was being clobbered by the mu_retain and mu_release calls and effectively getting freed up on first use by the RC (reference counting) garbage collector đŸ€Šâ€â™‚ïž

@lyse@lyse.isobeef.org Yeah I remember you said some days back that your interest in compilers was rekindled by my work on mu (”) 😅

​ Read More

Whoo! I fixed one of the hardest bugs in mu (”) I think I’ve had to figure out. Took me several days in fact to figure it out. The basic problem was, println(1, 2) was bring printed as 1 2 in the bytecode VM and 1 nil when natively compiled to machine code on macOS. In the end it turned out the machine code being generated / emitted meant that the list pointers for the rest... of the variadic arguments was being slot into a register that was being clobbered by the mu_retain and mu_release calls and effectively getting freed up on first use by the RC (reference counting) garbage collector đŸ€Šâ€â™‚ïž

​ Read More
In-reply-to » Hmmm I need to figure out a way to reduce the no. of lines of code / complexity of the ARM64 native code emitter for mu (”). It's insane really, it's a whopping ~6k SLOC, the next biggest source file is the compiler at only ~800 SLOC đŸ€”

@movq@www.uninformativ.de I’ve managed to bring a simple “Hello World!” in mu (”) (at least on macOS / Darwin / ARM64) down to ~86KB (previously ~146KB) đŸ„ł

​ Read More

Hmmm I need to figure out a way to reduce the no. of lines of code / complexity of the ARM64 native code emitter for mu (”). It’s insane really, it’s a whopping ~6k SLOC, the next biggest source file is the compiler at only ~800 SLOC đŸ€”

​ Read More
In-reply-to » My little toy operating system from last year runs in 16-bit Real Mode (like DOS). Since I’ve recently figured out how to switch to 64-bit Long Mode right after BIOS boot, I now have a little program that performs this switch on my toy OS. It will load and run any x86-64 program, assuming it’s freestanding, a flat binary, and small enough (< 128 KiB code, only uses the first 2 MiB of memory).

@movq@www.uninformativ.de Oh that’s fine, Mu can compile to native code and so far binaries. at least on macOS are in the order of Kb in size 😂

​ Read More
In-reply-to » My little toy operating system from last year runs in 16-bit Real Mode (like DOS). Since I’ve recently figured out how to switch to 64-bit Long Mode right after BIOS boot, I now have a little program that performs this switch on my toy OS. It will load and run any x86-64 program, assuming it’s freestanding, a flat binary, and small enough (< 128 KiB code, only uses the first 2 MiB of memory).

@movq@www.uninformativ.de It’d be cool if you could get ” (Mu) running in your little toyOS đŸ€Ł You’d technically only have to swap out the syscall() builtin for whatever your toy OS supports đŸ€”

​ Read More

@movq@www.uninformativ.de @kiwu@twtxt.net it just so happens to be a happy coincidence that I’m extending mu’s capabilities to now include a native toolchain-free compiler (doesn’t rely on any external gcc/clang or linkers, etc) that lowers the mu source code into an intermediate representation / IR (what @movq@www.uninformativ.de refers to as “thick layers of abstractions”
) and finally to SSA + ARM64 + Mach-O encoder to produce native binary executables (at least for me on my Mac, Linux may some later?) đŸ€Ł

​ Read More

I cleaned up all my of AoC (Advent of Code) 2025 solutions, refactored many of the utilities I had to write as reusable libraries, re-tested Day 1 (but nothing else). here it is if you’re curious! This is written in mu, my own language I built as a self-hosted minimal compiler/vm with very few types and builtins.

https://git.mills.io/prologic/aoc2025

​ Read More
In-reply-to » I just completed "Printing Department" - Day 4 - Advent of Code 2025 #AdventOfCode https://adventofcode.com/2025/day/4 – Again, I’m doing this in mu, a Go(ish) / Python(ish) dynamic langugage that I had to design and build first which has very few builtins and only a handful of types (ints, no flots). đŸ€Ł

@prologic@twtxt.net bilingual trivia: 無 (mu) means nothing in Japanese

​ Read More

I’m having to write my own functions like this in mu just to solve AoC puzzles :D

fn pow10(k) {
    p := 1
    i := 0
    while i < k {
        p = p * 10
        i = i + 1
    }
    return p
}

​ Read More
In-reply-to » Come back from my trip, run my AoC 2025 Day 1 solution in my own language (mu) and find it didn't run correctly đŸ€Ł Ooops!

Ahh that’s because I forgot to call main() at the end of the source file. mu is a bit of a dynamic programming language, mix of Go(ish) and Python(ish).

$ ./bin/mu examples/aoc2025/day1.mu 
Execution failed: undefined variable readline

​ Read More

Come back from my trip, run my AoC 2025 Day 1 solution in my own language (mu) and find it didn’t run correctly đŸ€Ł Ooops!

$ ./bin/mu examples/aoc2025/day1.mu
closure[0x140001544e0]

​ Read More
In-reply-to » AoC Day #1 solution (mu): https://gist.mills.io/prologic/d3c22bcbc22949939b715a850fe63131

I actually can’t progress to day two till I get home đŸ€Ł – I haven’t pushed the code for the mu compiler yet đŸ€Šâ€â™‚ïž So no-one can check my work even if they were so kind đŸ€Ł

​ Read More
In-reply-to » Thinking about doing Advent of Code in my own tiny language mu this year.

The most interesting part about mu is that the language is actually self-hosted and written in itself. There is a stage zero compound written and go on a stage one compiler written in mu

​ Read More

Thinking about doing Advent of Code in my own tiny language mu this year.

mu is:

  • Dynamically typed
  • Lexically scoped with closures
  • Has a Go-like curly-brace syntax
  • Built around lists, maps, and first-class functions

Key syntax:

  • Functions use fn and braces:
fn add(a, b) {
    return a + b
}
  • Variables use := for declaration and = for assignment:
x := 10
x = x + 1
  • Control flow includes if / else and while:
if x > 5 {
    println("big")
} else {
    println("small")
}
while x < 10 {
    x = x + 1
}
  • Lists and maps:
nums := [1, 2, 3]
nums[1] = 42
ages := {"alice": 30, "bob": 25}
ages["bob"] = ages["bob"] + 1

Supported types:

  • int
  • bool
  • string
  • list
  • map
  • fn
  • nil

mu feels like a tiny little Go-ish, Python-ish language — curious to see how far I can get with it for Advent of Code this year. 🎄

​ Read More

Andrej Ferko – storočnica narodenia
BĂĄsnik a lekĂĄr Dr. Andrej Ferko sa narodil 22. novembra 1925 v Kysáči. Do zĂĄkladnej ĆĄkoly chodil v rodisku (1932 – 1936), pÀƄ tried gymnĂĄzia vychodil v Báčskom Petrovci (1936 – 1941) a ĆĄiestu na srbskom gymnĂĄziu v Novom Sade (1941 – 1942). V Novom Sade sa stal ilegĂĄlnym členom nĂĄrodnooslobodzovacieho hnutia, preto bol okupačnĂœmi vrchnosĆ„ami v novembri 1942 zatknutĂœ a vĂ€znenĂœ do mĂĄja 1943 v PeĆĄti. Jeden rok bol doma, lebo mu okupanti zakĂĄzali ĆĄtudo 
 ⌘ Read more

​ Read More

JĂĄn Kvačala – Petrovčan s najviac doktorĂĄtmi, na ktorĂ©ho sa zabĂșda
JĂĄn Radomil Kvačala (1862 – 1934), rodĂĄk z Petrovca, znĂĄmy ako otec modernej komeniolĂłgie, sa počas svojho ĆŸivota stal drĆŸiteÄŸom ĆĄtyroch doktorĂĄtov. PhDr. obhĂĄjil v Lipsku, ThDr. vo Viedni, čestnĂ© doktorĂĄty mu udelili univerzity v Rige a VarĆĄave. V roku 1932 sa stal prvĂœm čestnĂœm predsedom juhoslovanskej Matice slovenskej Napriek tomu jeho meno dnes medzi vojvodinskĂœmi SlovĂĄkmi poznĂĄ len 
 ⌘ Read more

​ Read More

Fotograf s duĆĄou maliara
ProfesionĂĄlny fotograf Michal MadackĂœ, ktorĂœ sa uĆŸ desaĆ„ročia zaraďuje medzi najvĂœraznejĆĄie postavy vojvodinskej fotografickej scĂ©ny, nedĂĄvno oslĂĄvil svoje vĂœznamnĂ© jubileum. Pri prĂ­leĆŸitosti jeho 70. narodenĂ­n mu 21. mĂĄja 2025 v Dome slovenskej kultĂșry v BĂ©keĆĄskej Čabe (Maďarsko) otvorili samostatnĂș vĂœstavu umeleckĂœch a ĂșĆŸitkovĂœch fotografiĂ­. VĂœstavu usporiadal Čabiansky regiĂłn Ústavu kultĂșry SlovĂĄkov v Maďarsku (ÚKSM). VĂœstava bude dostupnĂĄ do 6. jĂșna 2025. ⌘ Read more

​ Read More

VĂœročnĂ© zhromaĆŸdenie KomornĂ©ho zboru Musica viva
VčerajĆĄie vĂœročnĂ© zhromaĆŸdenie KomornĂ©ho zboru Musica viva z Báčskeho Petrovca sa nieslo v duchu hodnotenia minuloročnej činnosti a stanovenia plĂĄnov na rok 2025. PrĂ­tomnĂœch privĂ­tala dirigentka a umeleckĂĄ vedĂșca zboru Mariena StankovićovĂĄ KrivĂĄkovĂĄ, ktorĂĄ v Ășvode zdĂŽraznila bohatĂș a aktĂ­vnu sezĂłnu zboru v uplynulom roku. SprĂĄvu o činnosti zboru za rok 2024 prečítal VladimĂ­r Kováč. V nej konĆĄtatoval, ĆŸe KomornĂœ zbor Mus 
 ⌘ Read more

​ Read More

Ezurio Veda SL917 Expands Industrial IoT Connectivity with Wi-Fi 6 and Bluetooth LE
The Veda SL917, developed by Ezurio and based on the Silicon Labs SiWx917 chipset, is a low-power wireless module designed for industrial IoT applications. It provides connectivity options, including Wi-Fi 6, Bluetooth Low Energy 5.4, and support for Matter and IP networking, providing secure cloud connectivity and efficient power management. This device supports OFDMA, MU-MIMO 
 ⌘ Read more

​ Read More

IN MEMORIAM: Gavra Govorčin
Dnes rĂĄno sa KulpĂ­nom rozchĂœrila smutnĂĄ sprĂĄva: opustil nĂĄs ďalĆĄĂ­ vĂœznamnĂœ KulpĂ­nčan, Gavra Govorčin. O dva mesiace by oslĂĄvil ĆŸivotnĂș osemdesiatku (15. 3. 1945), no zĂĄkernĂĄ choroba mu to prekazila. ĆœivotnĂœ Ășdel a krĂ­ĆŸiky na chrbte dĂŽstojne znĂĄĆĄal a do poslednej chvĂ­le bol eĆĄte spoločensko-politicky aktĂ­vny – dodnes bol členom Obecnej rady Báčskopetrovskej obce. V KulpĂ­ne sa takmer nenĂĄjde človek, ktorĂœ by ho nepoznal. Z pracovnej pozĂ­cie miestneho matrikĂĄra a ĆĄ 
 ⌘ Read more

​ Read More