Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
norir
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
28 ms
·
391.
▲
by
norir
3y ago
Yes, this is the best workflow (though I'm curious how you get 5ms latency with a full dev env restart -- fork/exec alone takes 1-5ms on my 2020 macbook). Nits aside use the same style and have set a time budget of 50ms for myself
392.
▲
by
norir
3y ago
I saw this quote on some other thread recently on HN that is relevant: General Freiherr von Hammerstein-Equord, the present chief of the German Army, has a method of selecting officers...: “I divide my officers into four classes as follows:
393.
▲
by
norir
3y ago
I am curious why they chose to build their own rendering engine. They could have first written a terminal application with the same (at least functionally) collaboration features and gotten a cross platform solution almost for free. From a
394.
▲
by
norir
3y ago
I would argue that if one watches Breaking Bad to its conclusion that it's hard to say that it glorified the manufacture and sale of meth. Everyone involved has huge negative consequences in their lives as a result. The collateral dama
395.
▲
by
norir
3y ago
Constant interruptions are the biggest enemy of top performers. Everyone should have the right to at least a few hours of freedom for interruption except in the case of genuine emergency. There is a problem in the organization if people can
396.
▲
by
norir
3y ago
These are all fair points though they mostly can be addressed at the application layer. One could, for example, use a wrapper that opens the sqlite library and immediately turns foreign keys on. One does this once per language in your proje
397.
▲
by
norir
3y ago
I'm pretty sure sqlite is capable of significantly higher throughput that 10-20k rows per second depending on the workload. Inserts can be much faster if they are batched in large transactions and prepared statements are used to avoid
398.
▲
by
norir
3y ago
The funny thing is that the reaction of these platforms when someone advocates for communications elsewhere is to ban those people rather than try to improve their system so that people don't want to leave (reddit is hardly the only pl
399.
▲
by
norir
3y ago
Can confirm I've only gotten the jvm to segfault when writing jni code -- never when writing vanilla java. To be generous to the OP though, perhaps the person who made the original comment was trying to write system code in java with l
400.
▲
by
norir
3y ago
> My goal with the early sub-projects isn't to build a finished sub-component, it is to build a good enough sub-component so I can move on to the next thing on the path to a demo. The one caveat I'd add to this is to make sure
401.
▲
by
norir
3y ago
The best way to deal with this kind of thing is to write a small language that transpiles to the subset of c that you are using.
402.
▲
by
norir
3y ago
> Zig's comptime is what's known in formal languages to be referentially transparent (it basically means that you cannot distinguish between two otherwise identical objects that differ only in their reference name) while macros
403.
▲
by
norir
3y ago
Thank you. That response was clarifying. I understand now what you mean. Funnily enough though, the paper you cited begins: "Any discussion on the foundations of computing runs into severe problems right at the start. The difficulty is
404.
▲
by
norir
3y ago
Do you have sources for your definition? The original definition that I'm finding from Quine seems to broadly support the interpretation that an expression is referentially transparent if it can be replaced by its value without alterin
405.
▲
by
norir
3y ago
Yeah, I don't really understand why they didn't just comment out the high level function call (option 3) and inline option 4 below. Then they could have clarity and performance.
406.
▲
by
norir
3y ago
Nothing happening here is even remotely particular to rust.
407.
▲
by
norir
3y ago
I'm not anti-color in general, but I think its use should be reserved to where it is truly helpful. Often it feels like it's value is mostly just superficial pizazz. Grep highlighting matches is one of the examples where color is
408.
▲
by
norir
3y ago
I agree. The most important feature of a high level programming language is first class closures with lexical scoping. Almost every design pattern, including the IOC in the original article, can be implemented with them (along with a few ot
409.
▲
by
norir
3y ago
There is a strange paradox with Trump in that he seems like he would start a war just to score ratings or settle a grudge but it is precisely for this reason that I think it would be difficult for him to really effectively lead the nation i
410.
▲
by
norir
3y ago
Do you choose the candidates? Do you influence what they actually work on once in office with your votes? Do our elected officials generally prioritize the needs of those who cast votes for them or those who bankrolled their campaigns? Who
411.
▲
by
norir
3y ago
You realize I was responding to a comment in which the OP asked why we don't like memory safety? That is exactly what I an talking about. The coder's internet is filled with this type of attitude. You can disavow these types as no
412.
▲
by
norir
3y ago
There was a guy in a senior tech role I once encountered in a consulting gig who never let an opportunity to put someone down publicly go by. One time, a young researcher came and gave a (remote) presentation. At the end of the presentation
413.
▲
by
norir
3y ago
> The biggest enemy here are people who think that their criticism can be as rude, pedantic, or imperious as they want if the core point is valid. That might provide comparable results for the issue at hand, a) but human beings don'
414.
▲
by
norir
3y ago
> Do you not value the increased memory safety? Sure, but the way that rust does it comes with a heavy cost, including slow compile times and confusing lifetime semantics (and, in my subjective opinion, poor syntax). There are other tech
415.
▲
by
norir
3y ago
I switched to Terminal.app from iterm2 almost 10 years ago because of horrific scroll and input latency for iterm2 after one of the osx upgrades (maybe Mavericks or Yosemite?). For the last few years I've been using kitty, which works
416.
▲
by
norir
3y ago
I feel pretty strongly based on my own (distant past) experiences as a young person that children need spaces where they have privacy from their parents. I think of the child who for whatever reason doesn't entirely feel like they fit
417.
▲
by
norir
3y ago
Yes, and when it was announced, it took 2 minutes and IIRC 2-4GB of ram to compile (I believe this was with the LLVM backend). I consider 2 minutes to self compile a language slow. I have personally written a compiler for a simpler language
418.
▲
by
norir
3y ago
Even though I kind of mostly agree that you almost never should implement your own rb tree, this advice is also kind of disempowering and I worry that it is part of a mindset that accepts the status quo when it is so often the case that we
419.
▲
by
norir
3y ago
> Honestly, though? The right answer is to transpile a better language to Sh. I like this, but I think it's even better to just escape sh entirely. If you are on a system that supports sh, it almost certainly has a c99 compatible co
420.
▲
by
norir
3y ago
He lived in Ossining, NY, which is large enough that many residents would not live within a 30 minute walk from the train station, which also has a small parking lot for geographic reasons, so it made sense that his wife would drive him to
More ›