Lurker News
Hey HN my name is Thassilo, I'm a student and passionate programmer from Germany.

I want to showcase Spray, a small C debugger I've been working on for a few months now. Spray has a very simple and approachable interface. Its feature set is limited at this point, but it's already enough to tackle some basic problems. I stared to work on Spray because I was curious about how debuggers work. I am also trying to design Spray in such a way that it's easy to grasp and has a small mental overhead.
I'd love to get your feedback on Spray.
Email: d4kd (at) proton (dot) me
PS: I'm generally interested compilers and language tool chains, and I'm looking for similar-minded people to work and collaborate with. I have a few similar projects on my GitHub: https://github.com/d4ckard?tab=repositories. If you find Spray interesting, you might enjoy playing around with them too.

Comments (129) 27 threads

bluetomcat7 replies#
Looks especially clean, consistent and well-modularised, tackling a problem that requires non-trivial knowledge about binary formats and kernel APIs. Many "senior" programmers would struggle to build something like this even at a conceptual level. The antithesis of "kids these days" :-)

Out of curiosity, how does a 17-year-old attain that level of knowledge? Books, peers, programming clubs, parents who are programmers probably?

D4ckard2 replies#
It's mostly books and blogs: I like to read a lot. Also, your guess is correct, my dad is a computer scientist.
manicennui3 replies#
Reading books to increase your understanding puts you ahead of 90% of people who graduated from a CS program in the last 5-10 years from what I've seen. Several of my coworkers admitted to having never read a book on anything related to software engineering before and it shows.
flykespice4 replies#
To be honest these days articles on the web seem to be more efficient means to attain knowledge than a book, with less condensed words

Continue this thread — 4 replies

uoaei#
Having parents who expose you to these things and instill curiosity and passion puts you ahead of 99.9% of people who graduated from a CS program if you decide to go through that yourself. Direct early-life hands-on experience is a huge privilege and it is important to remember that.
peruvian#
We just had a thread about programming books where plenty of people admitted to never reading them.
sagarpatil#
I'm impressed. What did your dad do to help you get interested in coding?
up2isomorphism#
Because there is no software engineering manager who likely does not write any useful code for a long time and is telling engineers what to do.
ManuelKiessling2 replies#
Tangential: my gut feeling is that this is a very good use case for GPTs; I’m an experienced application developer and sysadmin, but wouldn’t even know where to start if I’d want to tackle this sort of topic. I’m pretty sure ChatGPT would point me in the right direction and allow me to tackle the first important steps.
sdwr#
Yeah this is the dream for ChatGPT. Someone with enthusiasm, some knowledge, and tons of free time.
saagarjha#
ChatGPT might be able to point you at some stuff but you might run into trouble if it tells you something and you have no easy way of verifying whether it’s right or not, since you won’t be in a position to check.
thibaut_barrere2 replies#
I can reply because I was in the same situation at a younger age, at a time with no internet then limited internet.

Raw curiosity & having "just access to the required hardware" (a huge "just") and a bit of books & magazines can take you a long way.
My parents were not programmers but my father bought computers early on (1984), and later brought compilers at home (via his work), e.g. TurboPascal, C++, and let me experiment.
I learned mostly via magazines & books, and later a bit of exchanges with peers (demomaking), and also via buying disks (https://fr.wikipedia.org/wiki/DP_Tool_Club) that contained documentation (such as https://en.wikipedia.org/wiki/Ralf_Brown%27s_Interrupt_List) and arrived via snail mail.
I "just" gradually iterated and coded small stuff, then gradually more complicated stuff (Windowing toolkit in CGA, a Tetris clone, a Bomberman clone, FFT software, and ultimately 3D realtime rendering without any FPU, only in software, with Phong rendering and such https://github.com/thbar/demomaking#obez-1995).
I was not an isolated case in the sense I ended up stumbling on other teenagers (via the demomaking world) who did exactly the same thing.
Today a curious kid can go probably much further, as long as curiosity is encouraged :-)

seb12042 replies#
Sorry but 1980 does not compare to 2020 I levels of distraction kids nowadays have that divert their attention into consuming rather than creating.

I would really be interested in the author's take on it.

thibaut_barrere#
It's not the same for sure. But I see my 15-yo doing mostly the same today!

You are right that the attention-eating stuff is a huge difference.
Happy to also read the author :-)

D4ckard#
There are definitely many people who almost exclusively spend their time consuming stuff at a young age. I cannot tell however, if that has ever been different, or if it's just perceived differently now. For many people continue consuming a lot their entire lives. The quality of the content one can consume has likely gone up though, or at least it has become addictive.

The idea of only watching saddens me. Doing any creative work is incredibly satisfying, and I think has positive effects on long-term happiness and self-worth.

Sarkie#
But you aren't op.

So you can but shouldn't reply.

flashgordon1 reply#
Wow this is amazing. My question on top of yours is beyond just knowledge (which yes yes I know I am underrating) how does a 17 year old get this kind of passion. (Not to brag) I was very fortunate to have this kind of passion in my early teens (also I did not have many friends) but I am really struggling to get my kids and their friends this kind of passion!
saagarjha#
Well, part of it includes actually wanting to do this stuff. Some people don’t, and that’s fine.
forgotpwd161 reply#
>how does a 17-year-old attain that level of knowledge?

There's an excellent blog series linked at repo that guides you step-by-step.

D4ckard1 reply#
Yes. Anyone who is interested in this topic should read it.
derangedHorse#
Thanks for sharing your learning resources! I had a phase where I was really into computers so I’ll definitely be taking a look at the links you have in that file
JoeOfTexas#
Reminds me of that 15 year old who revolutionized modding for Half-Life games by creating Metamod. Some kids are crazy. I cried from frustration trying to learn C++ at that age.
trmpakufnfee1 reply#
Awesome. I wish I had this level of dedication when I was young.

I recommend you to participate in programs like Google Summer of Code, KDE Season of Code, Linux Foundation LFX, and X.org EVoC. There are some very interesting problems to solve. I wish I had known about them when I was student. Now I am working in Full time job, therefore have no time to contribute to open source.
Keep up the good work.

D4ckard1 reply#
Thanks for pointing me to those projects! I didn't know about any of them.
D4ckard#
Thanks the links : D
koolba1 reply#
First glance through the project and it seem well organized. Kudos!

How long have you been programming and what languages did you start off with? I know quite a few developers decades older than you that still don't know how to write a Makefile [1].
What's the deal with the inline emojis in the source? Is that what all the cool kids are doing these days or does it just force you to be mindful of non-ASCII input?
[1]: And even more that cannot write or understand dynamically generated targets...

D4ckard1 reply#
I started off learning Python and C++. At some point I got fed up with C++ and switched to C.

Haha, the emoji thing was something I was doing for about a week or so. You see emojis used a lot more around Rust I guess. I never bothered to remove them. I think the bugs around the PID are fun. The ones in the comments might go at some point, though I didn't experience any problems with editors (Helix, Emacs, and VSCode all work) so far.
Should I maybe disabled printing emojis to standard output in the REPL if terminal colors are disabled as well?

koolba#
> I started off learning Python and C++. At some point I got fed up with C++ and switched to C.

How many years and hours per day?
> Should I maybe disabled printing emojis to standard output in the REPL if terminal colors are disabled as well?
I generally avoid anything that's not ASCII if it's possible. Tying it to terminal colors or terminal output (e.g. "if [ -t 1 ] ...") is common too. Though I'm not a big fan of things changing based on the runtime environment as it makes debugging annoying.

pjmlp1 reply#
Congratulations, good luck with your projects.

Compilers was one of the first rabbit holes that drove my interest into computing.
One of the books that I endless read multiple times, is nowadays available for free, and eventually interesting for your reading collection, even though it is about the compiler part not debugging.
"Compiler Design in C"
https://holub.com/compiler/
It is a bit oldie, but maybe interesting.

D4ckard1 reply#
Thank you for the link. I'm always looking for books on compilers, but they can be hard to find. Many of them are every from the ivory tower-like unfortunately.
junior44660#
Try "crafting interpreters", it's very practical book.

Load more comments