emma's Avatar

emma

@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

40 Followers  |  22 Following  |  25 Posts  |  Joined: 20.11.2024  |  2.0776

Latest posts by emmabyte.de on Bluesky

emmabyte.de running on an Archos 101 Internet Tablet

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.

13.10.2025 11:26 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
SwiftCrossUI

This is lovely, SwiftUI for Windows and Linux:

swiftcrossui.dev

15.07.2025 00:11 โ€” ๐Ÿ‘ 77    ๐Ÿ” 15    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 0
Introducing a terms of use and updated privacy notice for Firefox | Hacker News

Comments on it:
news.ycombinator.com/item?id=4318...

02.03.2025 00:43 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
Introducing a terms of use and updated privacy notice for Firefox | The Mozilla Blog UPDATE: Weโ€™ve seen a little confusion about the language regarding licenses, so we want to clear that up. We need a license to allow us to make some of t

blog.mozilla.org/en/products/...

02.03.2025 00:41 โ€” ๐Ÿ‘ 3    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

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.

01.03.2025 23:21 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

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    ๐Ÿ“Œ 0

Binary searching through kernel parameters, just to find out that disabling Bluetooth causes a kernel panic

05.12.2024 11:06 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

This 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    ๐Ÿ“Œ 0

With 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    ๐Ÿ“Œ 0

A 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    ๐Ÿ“Œ 0
Preview
clang/clang: . Run clang/clang with Wasmer or deploy it to Wasmer Edge - clang/clang

A 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    ๐Ÿ“Œ 0
Advent of Cancer A friend of mine had the idea of doing something along the lines of advent of code, but in his style. The idea is toโ€ฆ

A 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...

26.11.2024 19:28 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

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.

24.11.2024 20:34 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

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.

24.11.2024 20:34 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
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.

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.

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.

24.11.2024 20:34 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

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...

23.11.2024 12:27 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

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    ๐Ÿ“Œ 0

Once 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    ๐Ÿ“Œ 0

It 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    ๐Ÿ“Œ 0
Crafting Interpreters

After 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.

23.11.2024 12:27 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

I was not around before Ai was done with machine learning, but it sounds fun

22.11.2024 15:08 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Angy metal birds feeding. Nature is healing

22.11.2024 14:18 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

I 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    ๐Ÿ“Œ 0

Also also, being able to move your handle across domains is pretty neat

21.11.2024 21:05 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Hey! 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    ๐Ÿ“Œ 0

I 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.

21.11.2024 18:27 โ€” ๐Ÿ‘ 3    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

@emmabyte.de is following 18 prominent accounts