Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jart
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
23 ms
·
391.
▲
by
jart
2y ago
I don't understand why they don't just double down on these #include <__fwd/vector.h> etc. headers. They fix everything. The only downside to them is I can't use them on a header that defines a class with std::vect
392.
▲
by
jart
2y ago
Sounds par for the course with the Biden administration. Watch what Ben and Marc have to say about them: https://www.youtube.com/watch?v=g4jWb-0nj44 They talk about how Biden has spent the last four years going beyond the l
393.
▲
by
jart
2y ago
I'm defending open source developers. We can't freely modify open source code if it has glacial build times. It's specifically because people are volunteering that we should aim to be as conscientious as possible when it come
394.
▲
by
jart
2y ago
Programming is the process of manipulating data structures, so if you're building a JSON server, then every piece of code in your server is going to be dealing with and operating on JSON data structures. It can't be neatly tucked
395.
▲
by
jart
2y ago
Just because I included an rvalue constructor doesn't make it C++11. This library was originally written in C. It hasn't changed a whole lot since Gautham and I originally wrote it: https://github.com/jart/cos
396.
▲
by
jart
2y ago
I just wrote a new server instead. There's nothing I won't do, no lengths I'm not willing to go, when it comes to cutting back on build latency.
397.
▲
by
jart
2y ago
Yes they'd be very trivial to remove locally. It might also be nice to have #ifdef statements around them like we're already doing for std::string_view. If we consider that many big name C projects like curl are still on C89 then
398.
▲
by
jart
2y ago
Compile time is a collective problem and usability is an individual problem. I work with llama.cpp. The files in that codebase that were made using nlohmann json take about a minute to compile using g++ -O3 -g, all because one guy who origi
399.
▲
by
jart
2y ago
Thompson Pike encoding. It predates the UTF-8 standard and was invented on a napkin in a New Jersey diner. It allows the full spectrum of 32-bit numbers to be encoded, rather than restricting characters to only those also present in UTF-16.
400.
▲
by
jart
2y ago
This library supports building with C++11. I haven't tried compiling it with an older standard, but I imagine it might work. One thing I like about the C++11 compilers like GCC 4.9 is they build code magnificently faster than recent ed
401.
▲
by
jart
2y ago
I've added benchmarks to the readme. https://github.com/jart/json.cpp?tab=readme-ov-file#benchmar... You're looking at a 2x or 3x performance advantage across the board. If you include invalid JSON handling,
402.
▲
by
jart
2y ago
That might actually be the explanation for why json.cpp benchmarks 39x faster than nlohmann's library if I include the failure test cases.
403.
▲
by
jart
2y ago
That TinyPilot is really cool. It deserves to take off. I'm surprised he's still bootstrapping at this point, because with a product like that, there's a lot more to gain than there is to lose by taking angel and VC money.
404.
▲
by
jart
2y ago
Leave it to the peanut gallery to always assume the vulgar definition.
405.
▲
by
jart
2y ago
Then why does it have meth in the name genius?
406.
▲
by
jart
2y ago
lol that voting is power. double lol if you think local elected officials plan anything.
407.
▲
by
jart
2y ago
Saying cars are a political choice assumes we live in a command and control society. Saying "we" in this context assumes you have political power.
408.
▲
by
jart
2y ago
Ah gotcha. So the cynical thing I thought would happen already happened. Glad to hear we're on a road where peak cynicism is looking behind us.
409.
▲
by
jart
2y ago
I thought that (1) meth (e.g. methylphenidate a.k.a. ritalin) blocks reuptake of dopamine, and (2) amphetamine (e.g. dextroamphetamine) stimulates production of dopamine, and (3) methamphetamine (a.k.a. desoxyn) does both. Is that understan
410.
▲
by
jart
2y ago
How can you believe you've been taking a placebo for years? Phenylephrine is used for the illicit synthesis of methamphetamine, so there's an inherent bias towards anything that gets it off the shelves. Cherry picking studies that
411.
▲
by
jart
2y ago
Nah you make sure X% of your team is staffed with losers. It's a nutty system I know. But I'd imagine that's how things worked at companies that have stack ratings. Managers probably traded low performers like baseball cards.
412.
▲
by
jart
2y ago
How are you so awesome?
413.
▲
by
jart
2y ago
https://pbs.twimg.com/media/GbEfj6fbQAQRUB7?format=png&name=... That's so going in the blog post later today.
414.
▲
by
jart
2y ago
> I don’t really care about obsolete machines that will never have a C99 compiler outside a novelty. And you know what? I don't care about people who use C on 16-bit computers, unless I'm being paid to. I've written plenty
415.
▲
by
jart
2y ago
What if you've got a Symbolics 3600 which has 36 bit words? Your suggestion will break on that. We clearly want uint_least32_t.
416.
▲
by
jart
2y ago
If you don't want a hard coded table, you could always do this. unsigned kCastagnoli[256]; void InitializeCrc32(unsigned table[256], unsigned polynomial) { unsigned d, i, r; for (d = 0; d < 256; ++d) {
417.
▲
by
jart
2y ago
I wrote https://github.com/Mozilla-Ocho/llamafile/blob/main/llamafil... and it does a reasonable job highlighting without breaking for all the .tex files I could find on my hard drive. My goal is to hope
418.
▲
by
jart
2y ago
I don't want to require everyone who builds llamafile from source need to install rust. I don't even require that people install the gperf command, since I can build gperf as a 700kb actually portable executable and vendor it in t
419.
▲
Weird Lexical Syntax
(justine.lol)
433 points
by
jart
2y ago
|
227 comments
420.
▲
by
jart
2y ago
What makes you think I care about convincing you? These days every shot caller on earth is scrambling to get piece of AI. Either by investing in it or fighting it. You come across as someone who wants to hate on AI. Haters aren't even
More ›