Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
a-dub
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
14 ms
·
241.
▲
by
a-dub
1y ago
that's the point. use nonblocking io and an event polling mechanism with a timeout to keep an eye on an exit flag- that's all you need to handle clean shutdowns. i think on windows you can wait on both the sockets/file descri
242.
▲
by
a-dub
1y ago
disagree. i think then it's too tempting down the line for someone to add a message with blocking processing. a simple clear loop that looks for a requested stop flag with a confirmed stop flag works pretty well. this can be built into
243.
▲
by
a-dub
1y ago
this stuff always seemed a mess. in practice i've always just used async io (non-blocking) and condition variables with shutdown flags. trying to preemptively terminate a thread in a reliable fashion under linux always seemed like a fo
244.
▲
by
a-dub
1y ago
my floaters showed up when i was 14- it was kinda shocking and scary at the time to be a freshman in high school and suddenly there were massive sensory disturbances in my eyes. ophthalmologists would just say to ignore them. apparently the
245.
▲
by
a-dub
1y ago
> Anyway, does anyone remember Metrowerks CodeWarrior? didn't it have a cute little re-distributable header file that had a bunch of useful containers in it? (linked lists, hash tables, etc) i didn't work with it much but once
246.
▲
by
a-dub
1y ago
good memories of the borland stuff! (especially super duper high resolution 43 line mode!), it was where i actually cut my teeth on c/c++ before moving to coherent then linux!
247.
▲
by
a-dub
1y ago
aren't they just annotations? proper use of mutexes and lock ordering aren't that hard, they just require a little bit of discipline and consistency. i can't remember the last time i faced a data race to be honest. i guess t
248.
▲
by
a-dub
1y ago
> Torvalds seems to disagree with you. i don't really care for mindless appeals to authority. make your own arguments and defend them or don't bother. this gpu driver looks pretty cool though. looks like there's much more
249.
▲
by
a-dub
1y ago
> The Rust for Linux project has been good for Rust i just decided do a good ol' 'find -name "*.rs"' in the kernel tree to get a sense for what all this is about. from what i can tell, there's just an api co
250.
▲
by
a-dub
1y ago
yeah i saw that afterwards. they do it to squeeze more optimization out of the compiler by putting everything in one compilation unit. given the prominence of the library i have to wonder if this was an input to zig's behind-the-scenes
251.
▲
by
a-dub
1y ago
sqlite3 has one (apparently this is called "the amalgamation") c source file that is ~265 kloc (!) long with external dependencies on zlib, readline and ncurses. built binaries are libsqlite3.so at 4.8M and sqlite3 at 6.1M. turso
252.
▲
by
a-dub
1y ago
i wonder if the clock performance is worse too...
253.
▲
by
a-dub
1y ago
they're essentially an ATS SAAS for medical school, if they have enough schools or enough prestigious schools, they can ask for whatever they want and the applicant schools would oblige. cheeky way to make it happen overnight: give a s
254.
▲
by
a-dub
1y ago
> I still dislike the term "hallucinations". It comes across like the model did something wrong. It did not, as factually wrong outputs happen per design. can you hear yourself? you are providing excuses for a computer system t
255.
▲
by
a-dub
1y ago
integration of some of the compute intensive bits into the nic itself. the reason to do it in hardware is to increase efficiency (or sometimes performance, although software/cpu wireguard is already pretty good). this could be baby ste
256.
▲
by
a-dub
1y ago
seems like the required number of documents would depend on the perplexity of the trigger token itself more than anything. if it only ever appears with the junk afterwards, then the number required seems like it would be low, but if the ju
257.
▲
by
a-dub
1y ago
there's a whole library inside linux and it's really good too!
258.
▲
by
a-dub
1y ago
how hard is it to run your own smtp gateway in 2025? are you good if you just set up dkim and such?
259.
▲
by
a-dub
1y ago
sure, but what about some kind of generalized cross-context ipc primitive towards a zero copy messaging mechanism for high performance multiprocessing microkernels?
260.
▲
by
a-dub
1y ago
i wonder if we'll ever see hardware accelerated cross-context message passing for user and system programs.
261.
▲
by
a-dub
1y ago
sure, i believe it. the question i have is: if one were to try to match the resilience, storage, memory and time efficiency of the well optimized linux c implementations of mature filesystems, and one were to use rust, would they be using a
262.
▲
by
a-dub
1y ago
i'd be curious how many of the higher level features and libraries would be best avoided if attempting to match the performance and space efficiency of a filesystem implemented in purpose designed highly optimized c.
263.
▲
by
a-dub
1y ago
it remains an open question as to how reliable, performant and efficient a system built with these higher level constructs would compare to the highly optimized low level stuff you'd see in a mature linux filesystem project. i suspect
264.
▲
by
a-dub
1y ago
i don't think it has to be all that robust yet as it mostly runs in vms (even though it may be!). an internet community project to write an entire operating system from scratch using some newfangled programming language is literally th
265.
▲
by
a-dub
1y ago
i wonder if intel and nvidia will catch up before they manage to deliver decent linux support...
266.
▲
by
a-dub
1y ago
even more frustrating is when the text is too small, but the ui doesn't allow me to zoom. sure there's the accessibility zoom, but it's somewhat clunky. zoom and clipboard should be consistent, non-optional and handled by the
267.
▲
by
a-dub
1y ago
interesting- so maybe rather than try to standardize on code and data sharing standards, ship an agent that can reformat the data or code to fit into local systems?
268.
▲
by
a-dub
1y ago
this is the way. octave or matlab. people like to complain about matlab as a programming language but if you're using it that way you're doing it wrong. matlab (the core language) is awesome for expressing matrices and vectors and
269.
▲
by
a-dub
1y ago
ollama is another good choice for this purpose. it's essentially a wrapper around llamacpp that adds easy downloading and management of running instances. it's great! also works on linux!
270.
▲
by
a-dub
1y ago
my guess: probably there to support the camera system and depth camera. although unless there's some sort of angle measurement with respect to the ground in the base, i'm not sure what it would be useful for. maybe to provide cont
More ›