emmabyte.de running on an Archos 101 Internet Tablet
TIL that my website works fairly well on Android 2 (released in 2009)
The only feature not supported on the main page is CSS variables that I use for colors.
@emmabyte.de.bsky.social
Rustlang enjoyer in everything from microcontroller firmware and Linuxy-embedded to high-performance GPGPU software (banner was rendered in a few ms) she/her
emmabyte.de running on an Archos 101 Internet Tablet
TIL that my website works fairly well on Android 2 (released in 2009)
The only feature not supported on the main page is CSS variables that I use for colors.
This is lovely, SwiftUI for Windows and Linux:
swiftcrossui.dev
Comments on it:
news.ycombinator.com/item?id=4318...
I try to reproduce this by using all available modifier keys and tab, but it just works for me.
The next version will have the entire area clickable, which means that if this happens again, you can just click it and set a new modifier key combo.
Still, it's interesting why it's happening.
Thank you! I had a lot of fun and am looking forward to continuing to use and contribute to Hex.
28.02.2025 22:38 โ ๐ 2 ๐ 0 ๐ฌ 0 ๐ 0Binary searching through kernel parameters, just to find out that disabling Bluetooth causes a kernel panic
05.12.2024 11:06 โ ๐ 1 ๐ 0 ๐ฌ 0 ๐ 0This worked for a small file, but as soon as I increased above a megabyte, the C implementation would output incorrect data. Turns out, I forgot that malloc doesn't guarantee 0 initialized memory, which I relied on. Easy fix, and now it's ready for advent of cancer!
26.11.2024 19:28 โ ๐ 0 ๐ 0 ๐ฌ 0 ๐ 0With the compiler running, I could write the challenge itself. Generate the input data in JS, write them to a file in the wasmer runtime, call clang on the user code, run the user code, read back the output file and finally compare to the reference implementation.
26.11.2024 19:28 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0A little bit of js and html later and the first issue became obvious: I need Cross-Origin policies, but the server I use for running locally doesn't offer custom headers. Easy fix: register a webworker and add the headers there.
26.11.2024 19:28 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0A few of the challenges are going to be optimization problems, so we need an easy solution for running compiled code. I thought about setting up some kind of runner, until I remembered wasm and looking around, there is an easy to use c to wasm compiler for wasm using wasmer. wasmer.io/clang/clang
26.11.2024 19:28 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0A friend of mine had the idea of doing something along the lines of advent of code, but in his style: cancer.
For that, he needed an easy hosting solution that can publish one puzzle every day. We set up GitHub Actions with Cloudflare pages and wrote about the process
emmabyte.de/advent-of-ca...
Fixing that would require a rewrite of the ast to remember what whitespace the user put in, then making smart decisions about what to keep and what whitespace to insert.
That of course also means baking opinions into the formatter, but it's my language, so that par is easy.
For example, it always puts a newline after the "{" in a class definition, which results in the empty class being two lines long.
It also completely ignores how long a line is going to be because of things like arguments in a function declaration, which could be spread out on multiple lines.
Very weirdly formatted lox code. The code defines a class called Test, prints the class, then defines a function t, which prints the String "t", then stores the class in a variable called test, then prints that variable.
Properly formatted lox code. The code defines a class called Test, prints the class, then defines a function t, which prints the String "t", then stores the class in a variable called test, then prints that variable.
Just finished the first iteration of something you might call an auto formatter, if you're being generous.
It currently completely ignores how the user formatted the code before, and is the most basic one could imagine a formatter to be.
For anyone interested, you can follow along at
github.com/luksab/rlox
Or read the work in progress blog post on my website emmabyte.de/things-i-lea...
Not that it's important for now, but the goal I have in mind is something along the lines of "the goals of Golang with the good design of Rust".
23.11.2024 12:27 โ ๐ 1 ๐ 0 ๐ฌ 1 ๐ 0Once I'm done redoing the structure, I want to "make it mine", meaning change the syntax to me more like what I like (Rust) and the semantics to allow for the kind of code I have in mind.
23.11.2024 12:27 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0It really clicked when I started refactoring yesterday. About half the codebase is now prettied up, but I hope to continue throughout the weekend.
23.11.2024 12:27 โ ๐ 1 ๐ 0 ๐ฌ 1 ๐ 0After working on and off on my rust implementation of craftinginterpreters.com, it's starting to feel like just another codebase.
It started off feeling like something special and intangible, because it was my first "real" implementation of a programming language.
I was not around before Ai was done with machine learning, but it sounds fun
22.11.2024 15:08 โ ๐ 1 ๐ 0 ๐ฌ 0 ๐ 0Angy metal birds feeding. Nature is healing
22.11.2024 14:18 โ ๐ 1 ๐ 0 ๐ฌ 0 ๐ 0I was just compiling some rust and ofc it took a while because it's a huge binary and I made a mistake, so I had to redo it... So I got asked "is that doing some Ai" and now I wonder for how much longer anything software is gonna be "Ai" for.
22.11.2024 09:44 โ ๐ 4 ๐ 0 ๐ฌ 1 ๐ 0Also also, being able to move your handle across domains is pretty neat
21.11.2024 21:05 โ ๐ 1 ๐ 0 ๐ฌ 0 ๐ 0Hey! I work on an industrial printer of sorts. It's pretty much all rust, but not sure how much related to that I'll be allowed to share here.
21.11.2024 18:54 โ ๐ 1 ๐ 0 ๐ฌ 1 ๐ 0I really just spent two days redoing half my infrastructure to host my own Bluesky PDS to get my handle until I saw that you just add a single DNS record. At least, I got a refresher on reverse proxies and containers.
Also, now I have another container host, because 6 wasn't enough, apparently.