Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dathinab
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
31 ms
·
451.
▲
by
dathinab
1y ago
yes POSIX threads, i.e. user-space threads I think you have a very strange definition of "user-space", "kernel-space". kernel space is what runs _in_ the kernel, it doesn't involve pthreads (on any OS) and uses kthr
452.
▲
by
dathinab
1y ago
yesn't both are forms of cooperative multi tasking/threading but there are a many differences about what you expect how exactly it is implemented and most relevantly you run the cooperative tasks on a pool of OS threads which are
453.
▲
by
dathinab
1y ago
Concepts of cooperate multi threading, co-rutines etc. aren't limited to user space. Actually they out date the whole "async" movement or whatever you want to call it. Also the article is about user-space threads, i.e. OS th
454.
▲
by
dathinab
1y ago
yes, maybe except if you don't have a single tight loop and stop checks are not just done once in the loop body but manually sprinkled through various places of your code (e.g. thing a long running compute task split into part 1,2(tigh
455.
▲
by
dathinab
1y ago
If your threads run "cooperative multi threading" task (e.g. rust tokio runtime, JS in general etc.) then this kinda is a non problem. Due to task frequently returning to the scheduler the scheduler can do "should stop"
456.
▲
by
dathinab
1y ago
> if media starts portraying everything via fictitious dramatization let me do one nit picky correction "does so in a a way even more efficient at manipulating our brains" because a lot of media, especially social media, alread
457.
▲
by
dathinab
1y ago
if they got extracted from unopened Lego sets (e.g. to "launder" stolen Lego sets through the 2nd hand part market) they didn't even need to "take them off" (at least in the past) they did ship as separate parts.
458.
▲
by
dathinab
1y ago
> Lego bought brick link to keep it alive after the founders family tired of running it after he died. that makes a nice story but was not at all Legos core motivation taking control over the main secondary market is a grate way to - gai
459.
▲
by
dathinab
1y ago
not all eastern bulk vendors are fake/involved in some form a illegal action there is some (small) money into taking Lego sets apart and selling the parts (1), but only if the sorting and for used sets taking apart, cleaning, damage&#x
460.
▲
by
dathinab
1y ago
or the Chinese government does about the West but no, it's not about that, it's more about how e.g. Hitler took over Germany. Systematically rilling up people, spreading systematic misinformation about how the Jews supposedly back
461.
▲
by
dathinab
1y ago
but it isn't absolute anywhere It's not absolute in the US because the US constitution only protects from the governmental limiting it, which means there is a lot of potential to effectively and fully legally limit free speech. An
462.
▲
by
dathinab
1y ago
I think lifetimes are best thought of as constraints. Like `x: Foo<'a>` means "x is constrained by lifetime 'a" as in "x is only guaranteed to be soundly usable if 'a is 'alive'". With the
463.
▲
by
dathinab
1y ago
I mean yes, C++ managed to hit a uncanny overlap of being very overenginered in some aspects which to make it worse haven't focused at all on non-senior/export dev UX while also being underenginered in others aspects :/ They
464.
▲
by
dathinab
1y ago
there is currently a lot of ongoing discussions about "easier light weight clones" not just in the context of the RFC but in general. And from all the discussions I have seen this RFC is one of the less promising ones as it mixes
465.
▲
by
dathinab
1y ago
> focus on open standards through many standards today are unilaterally pushed by Google, and standardized by a committed mostly influenced by Google and often only implemented by Google until there is enough pressure for Safari to maybe
466.
▲
by
dathinab
1y ago
my point is that calling someone a "Leyen is a corrupt, lobby friendly politician" while putting a relative low bar of "not evil" on here moral standard and that she isn't completely incompetent is not glazing. I ha
467.
▲
by
dathinab
1y ago
what glazing? > "evil" or someone who would commit treason or anything like that is a really low bar and do you really think you become President of the European Commission by being severely incompetent? If she where as severel
468.
▲
by
dathinab
1y ago
except that if you read into the actual issue you will realize that transposing matrices high performant is surprisingly not trivial, e.g. see this code code: https://github.com/ejmahler/transpose/blob/e70dd15
469.
▲
by
dathinab
1y ago
> "they are all bad anyway" stances I agree van der Leyen is a corrupt, lobby friendly politician with some strange ideas (in my opinion). But she isn't "evil" or someone who would commit treason or anything lik
470.
▲
by
dathinab
1y ago
I mean positive sentiment between people they worked with might literally have gotten them the job (as they most likely worked with people which have influence on this hiring decision during their time as lobbyist. And a huge part of lobby
471.
▲
by
dathinab
1y ago
the problem is if the money they get isn't as simple as "the current salary" also the chance that they a) don't have a sentiment about meta, b) ex-colleges they have good relations too and c) now about some internal work
472.
▲
by
dathinab
1y ago
> Had SQLite ever had a memory leak or use-after-delete bug on a production release? sure, it's an old library they had pretty much anything (not because they don't know what they are doing but because shit happens) lets check
473.
▲
by
dathinab
1y ago
even OOM isn't that different like there are some things you can well in C and this things you can do in rust too, through with a bit of pain and limitations to how you write rust and then there is the rest which looks "hard but d
474.
▲
by
dathinab
1y ago
different goals the rust version packaged in distros is for compiling rust code shipped as part of the distro. This means it - is normally not the newest version (which , to be clear, is not bad per see, but not necessary what you need) - m
475.
▲
by
dathinab
1y ago
has there ever been a modern optimizing C compiler free of pretty serious bugs? (it's a rhetoric question, there hasn't been any)
476.
▲
by
dathinab
1y ago
> 2. ironically if we look at how things play out in practice rust is far more suited as general purpose languages then C, to a point where I would argue C is only a general purpose language on technicality not on practical IRL basis thi
477.
▲
by
dathinab
1y ago
> to rust would be trivial. no, you still need to rewrite, re-optimize, etc. everything it would make it much easier to be fully compatible, sure, but that doesn't make it trivial furthermore part of it's (mostly internal) desi
478.
▲
by
dathinab
1y ago
no it's a (accidental) red Hering argument sure safety checks are added but it's ignoring that many of such checks get reliably optimized away worse it's a bit like saying "in case of a broken invariant I prefer arbitrar
479.
▲
by
dathinab
1y ago
It's kinda sad to read as most of their arguments might seem right at first but if put under scrutiny really fall apart. Like why defend C in 2025 when you only have to defend C in 2000 and then argue you have a old, stable, deeply tes
480.
▲
by
dathinab
1y ago
the problem is it's kinda an anti argument you basically say if deeply unexpected things happen you prefer you program doing widely arbitrary and as such potentially dangerous things over it having a clean abort or proper error. ... th
More ›