i_don_t_know

Joined 11 years ago

Karma
882
Submissions
311
Member since
Jun 3
peter dot ilberg at gmail dot com

https://www.linkedin.com/in/peter-ilberg/

View on Hacker News

Recent submissions

Comment · 4 months ago
IIRC you have to probe every page of the stack on Windows. You cannot just subtract a value from ESP/RSP. If you don't probe every page in order, you get a page fault or some other exception (I don't remember which one).
Comment · 5 months ago
Hard real-time control systems is one application.
Comment · 5 months ago
Iirc, the interpreter recognizes common idioms (sequences of 2-4 operations) and has optimized fused implementations for those idioms that avoid intermediate results.

It can also avoid creating intermediate results for quite a few operations, because for example reverse, transpose, etc only change how the arrays are traversed (order in which elements are accessed). You can reuse the original data and change the indexing information. That’s known as beating and dragging.

Comment · 5 months ago
Here’s some helpful background information on the project: https://news.ycombinator.com/item?id=47872891

In particular, it has diagrams of the data structures and how the algorithm operates on them.

Comment · 6 months ago
> Rust 1.0 is 11 years old and it's still trivial to compile Rust code from then. I doubt that will change in the next 9 years.

Maybe it's trivial to compile Rust code but it's not trivial to build a project with dependencies. I'm trying to get my feet wet with an official USB example project from Embassy on my RP2040. It doesn't work in the latest git repo for some unknown reason (might be my fault, probably is, but it's not obvious to me).

I'm assuming it worked at some point, maybe something changed and someone forgot to update something somewhere (there are lots of example projects). So I thought I'd "git bisect" until I find a working version and go from there. Well, I cannot get it to build against anything older than a year ago and that version also isn't working for me. It's dependency and Rust edition hell.

Comment · 6 months ago
Thank you!
Comment · 6 months ago
Sorry, I couldn't find a news report in English. Everything I found was in German.

It's a remake of the Sinclair ZX Spectrum home computer from the 80s, in white.

Comment · 6 months ago
Comment · 7 months ago
I used to run long distance, no music, no headphones, no trackers, no watch. Let your mind drift, or focus on the rest of the course. Or go swimming and count laps. Or go bouldering (in doors), pick a route and focus on it.
Comment · 7 months ago
I’m not sure I fully understand but this seems to be the kind of problem that Ocaml functors solve. You program against an interface (signature) and you supply a concrete implementation (structure) when you want to run it. You can use different implementations in different parts of your application.

So maybe do something similar in Rust by expanding how you import and export modules?

Comment · 7 months ago
The Haskell language report precisely defines how layout determines structure: https://www.haskell.org/onlinereport/haskell2010/haskellch10...

Any language that uses layout to determine structure should have a similarly precise definition.

Comment · 7 months ago
I loved my Kosmos electronics kits. My mom threw out the kits eventually but I still have the manuals.

https://patric-sokoll.de/SonstigeSammlungen/Kosmos%20E200/Ha...

My first computer was their CP1. It was aimed at older children and teens. You programmed it in a custom assembly language. The manual included lots of projects and instructions on how to hook it up to their electronics kits.

http://www.8bit-homecomputermuseum.at/computer/kosmos_comput...

http://www.8bit-homecomputermuseum.at/computer/pictures/kosm...

Comment · 8 months ago

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton