Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dboon
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
31.
▲
by
dboon
5mo ago
If your code depends on a bunch of initialization from libc, then you should continue to link to and use libc. sp.h can coexist with libc just fine; if you link to it, the library makes sure to conform where it needs to (e.g. not stomping o
32.
▲
by
dboon
5mo ago
sp_math.h is, as noted at the top of the file, a repackaging of https://github.com/HandmadeMath/HandmadeMath It is not part of the core library. It is certainly not meant as a reference-level implementation of math fun
33.
▲
by
dboon
5mo ago
Have you considered compiling it into a binary of your choice? It works perfectly well as a traditional library. The only cost you pay is re-parsing the header part once per TU. Because C is so simple, this is virtually free. In any case, c
34.
▲
by
dboon
5mo ago
Thank you!
35.
▲
by
dboon
5mo ago
How would you write https://github.com/tspader/sp/blob/main/example/ls.c in your statically typed language of choice? To be fair, this is definitely the kindest example to my library, but one reason
36.
▲
by
dboon
5mo ago
Can you show me a realistic case with a longer path?
37.
▲
by
dboon
5mo ago
The point of the library is that you do not call the low level allocation primitive to allocate a single string. Of course, in simple programs which exit immediately, there is no difference between using a page allocator and a heap allocato
38.
▲
by
dboon
5mo ago
I don't support non-macOS BSDs explicitly yet. Not for any reason of design, just hasn't been a priority.
39.
▲
by
dboon
5mo ago
Thanks for reading. "There is no heap" is meant to say that your mental model of memory shouldn't be one heap from which all memory is pulled. It should be many heaps, owned by many different allocators and providing differen
40.
▲
by
dboon
5mo ago
There are very few C libraries which compile, stock, against the matrix of toolchains, ABIs, and operating systems that this library does. For the subset of machines which run, I don't know, 99.9% of all instructions (i.e. x86_64 + aar
41.
▲
by
dboon
5mo ago
I had half of a manifesto about how C programmers should be embarrassed on account of Zig but I ended up paring it down to be more focused on what the library is plainly. Zig is obviously incredible and this library would not exist without
42.
▲
by
dboon
5mo ago
Can you write more about the technical side? How does the transpilation work? Is it mostly naive / 1:1 or do you do any transforms on an AST? What will the language be good for when it's reasonably complete? What are you intention
43.
▲
Linux Sound Subsystem Also Seeing Many Fixes Driven by AI/LLMs
(phoronix.com)
33 points
by
dboon
5mo ago
|
3 comments
44.
▲
sp.h: Fixing C by giving it a high quality, ultra portable standard library
(spader.zone)
225 points
by
dboon
5mo ago
|
211 comments
45.
▲
by
dboon
5mo ago
I hope this means you liked it rather than hated it
46.
▲
Robinhooding libraries from JavaScript to C, part 1: Interactive CLIs
(spader.zone)
3 points
by
dboon
5mo ago
|
2 comments
47.
▲
A ShaderToy-like playground for ASCII art
(play.ertdfgcvb.xyz)
8 points
by
dboon
5mo ago
|
2 comments
48.
▲
by
dboon
7mo ago
There's a desktop app which uses Tauri. Unrelated to the TUI.
49.
▲
Mutagen
(mutagen.io)
2 points
by
dboon
7mo ago
|
0 comments
50.
▲
The Michael Scott Theory of Social Class
(alexdanco.com)
1 points
by
dboon
7mo ago
|
0 comments
51.
▲
by
dboon
7mo ago
Ah god damn it, I'm Michael Scott...
52.
▲
by
dboon
7mo ago
Yes! KDE is the only thing in the Linux world that legitimately looks better than the big competitors. Not always, and not all the time; programs that are really focused on design are still a cut above, but I truly believe that KDE looks (a
53.
▲
Franz Kafka's Lost Treatise on Wayland
(spader.zone)
2 points
by
dboon
7mo ago
|
0 comments
54.
▲
Giving LLMs a personality is just good engineering
(seangoedecke.com)
36 points
by
dboon
7mo ago
|
26 comments
55.
▲
by
dboon
8mo ago
If you don't understand how the original comment and doubly so this comment are rude, then there's nothing I can do for you. Godspeed and best of luck with being angry on the internet.
56.
▲
by
dboon
8mo ago
This is rude. Don't talk to people like this. It's a self proclaimed simple tool to solve a simple, recurrent problem in my life. It also gives you a config file that lets you clone and link on any machine, pulls on sync, and puts
57.
▲
Show HN: A simple CLI to stop copying repos for LLM reference
(github.com)
1 points
by
dboon
8mo ago
|
4 comments
58.
▲
by
dboon
8mo ago
Arch + KDE is pretty sweet. It looks gorgeous out of the box, and gives you a system that mostly just works but is still everything you love about Arch
59.
▲
by
dboon
8mo ago
Amen.
60.
▲
by
dboon
8mo ago
You’d be shocked at the amount of traction pure unabated slop gets here. HN is more winnowing chaff from wheat than anything else
More ›