Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jart
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
31 ms
·
511.
▲
by
jart
2y ago
Reading WPEngine's legal complaint https://wpengine.com/wp-content/uploads/2024/10/Complaint-WP... they sound like cuckoos. My best guess is WPE's WordPress hosting business grew larger than Au
512.
▲
by
jart
2y ago
When SWEs in tech want to flex, they code Twitter on a whiteboard as an interview question. Major respect for the the work they're doing at xAI, but the hardest challenges building Twitter itself are social.
513.
▲
by
jart
2y ago
Yes. Is there something wrong with that? If your program links pthread_create() then cosmo creates a dlmalloc arena for each core on your computer and uses sched_getcpu() to index them combined with raw nsync locks.
514.
▲
by
jart
2y ago
Oh tell me about it. I used to have no problem with a 2 hour commute taking metro-north because I could just unwind on the train, and I loved walking into majestic places like grand central station. But a 60 minute commute to travel 10 minu
515.
▲
by
jart
2y ago
If we earn the support of Linux and FreeBSD then we might stand of chance. Apple might ask for a better way to secure ape executables, which could be potentially exciting, since it'd be nice to have a vendor neutral solution to code si
516.
▲
by
jart
2y ago
Has WINE considered using mremap() for its realloc() implementation? It allows you to make realloc() of a sufficient size basically cost nothing. See this screenshot https://x.com/JustineTunney/status/1837663502619
517.
▲
by
jart
2y ago
I agree. As a user you should have those guarantees. Here's how I'm helping you get them. - With Windows, APE is just PE and WIN32 so those are already guaranteed by Microsoft. - With Linux, I've been working with kernel main
518.
▲
by
jart
2y ago
Yes that's exactly what we need. And we'll be laughing to the bank when we bundle a browser toolbar with adware into its installer ten years down the road. Oh wait Java already did this. OTOH Cosmopolitan gives you complete autono
519.
▲
by
jart
2y ago
> musl doesn't even have things like SIMD optimized string comparison routines. You would be shocked at how many CPU cycles in a non-trivial program are spent on those tasks Building GNU Make with Cosmo or glibc makes cold startup g
520.
▲
by
jart
2y ago
It's a splash of dry humor on a personal blog in an information dense article.
521.
▲
by
jart
2y ago
Give the latest nightly build a try: https://cosmo.zip/pub/cosmos/bin/ Windows has been a long hard march, but we've recently hit near feature completion. As of last month, the final major missing piece
522.
▲
by
jart
2y ago
If Burrows wants my C11 atomics refactoring then he shall have it. Beyond that, my changes mostly concern libc integration, systems integration, and portability. Our projects have different goals in those areas, so I'm not sure he need
523.
▲
by
jart
2y ago
On x86 you can. When xchg is used with a memory parameter it locks the bus. This is true even in the absence of a lock prefix. I included a spinlock implementation in the blog post. If you see any errors with it, then please let me know!
524.
▲
by
jart
2y ago
nsync has wrapper macros for all the various atomics libraries that prevented it from using two things. 1. Weak CAS. nsync always uses strong CAS upstream to make the portability abstraction simpler. Being able to use weak CAS when appropri
525.
▲
by
jart
2y ago
I've used that. It's just as good as ulock although relatively new. The issue is that using this API makes cancelation points no longer atomic. SIGTHR needs to be able to know the exact instruction in memory where an asynchronous
526.
▲
by
jart
2y ago
Uncontended is uninteresting, because all mutex implementations perform roughly the same here, give or take a nanosecond or two. If you're truly uncontended then a naïve spin lock will actually seem fastest, because xchg is faster than
527.
▲
by
jart
2y ago
What are some examples of people using mutexes wrong? I know one gotcha is you need to maintain a consistent hierarchy. Usually the easiest way to not get snagged by that, is to have critical sections be small and pure. Java's whole MO
528.
▲
by
jart
2y ago
What do you consider a good benchmark test case for mutexes?
529.
▲
The Fastest Mutexes
(justine.lol)
896 points
by
jart
2y ago
|
345 comments
530.
▲
by
jart
2y ago
If you're studying a junkyard, the few pieces of junk their owners swear by are probably better than the other junk.
531.
▲
by
jart
2y ago
That's because people have the right to be remembered.
532.
▲
by
jart
2y ago
People have been saying that for a decade and no one actually believes scaling is all you need. They say that to raise more resources and to diss the symboligists. AI advancement has been propelled by a steady stream of new architectural in
533.
▲
by
jart
2y ago
You can build a machine that thinks like us in 1500 lines of C. See llm.c
534.
▲
by
jart
2y ago
That's exactly why it should be a community. Being willing to pay a monthly fee for a search engine sets a higher bar for affluence and caring about the web. So I wish they would do something like create a "Kagi Web" search e
535.
▲
by
jart
2y ago
Newsom was a successful entrepreneur in the 1990s who built wineries. That alone would make him popular with conservative voters nationwide. What did Newsom do before that you thought would alienate them? Being pro-gay and pro-drug before i
536.
▲
by
jart
2y ago
Why is it wrong to show someone ads that are relevant to their interests? Local AI is a win-win, since tech companies get targeted ads, and your data stays private.
537.
▲
by
jart
2y ago
The issue with having your regulation based on fear is that most people using AI are good. If you regulate only big models then you incentivize people to use smaller ones. Think about it. Wouldn't you want the people who provide you se
538.
▲
by
jart
2y ago
If you read Gavin Newsom's statement, it sounds like he agrees with Terrance Tao's position, which is that the government should regulate the people deploying AI rather than the people inventing AI. That's why he thinks it sh
539.
▲
by
jart
2y ago
Not if the government required them to do it.
540.
▲
by
jart
2y ago
Use Intel's mlc (memory latency checker) tool to measure your system. On a GCE instance I see about 97ns for RAM access. On a highly overclocked gaming computer with a small amount of RAM I see 60ns. Under load, latency usually drops t
More ›