Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
haileys
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
61.
▲
by
haileys
2y ago
> The only way to solve this is to track execution time within the native code as well (i.e. make them fuel-aware), and ensure that they abort immediately if they exhaust the fuel. You will find that this is precisely the approach Picc
62.
▲
by
haileys
3y ago
> Firstly I don't think any EULA has ever been enforced by violence Well, a number of people have gone to prison for software piracy, which would seem to contradict your claim
63.
▲
by
haileys
3y ago
I mean... check out the issue tracker for any project, open source or commercial. It's just how it goes when things aren't a priority. Happens all the time.
64.
▲
by
haileys
3y ago
It buffers all of its output statements in memory before writing to stdout: https://github.com/tomnomnom/gron/blob/master/main.go#L204
65.
▲
by
haileys
3y ago
> What car owners (EV or otherwise) can do to relieve their conscience is to use tyres with the smallest possible dimensions Even better would be to drive the car less and use an e-bike for most trips instead. Most bike tyres weigh les
66.
▲
by
haileys
3y ago
Istanbul comes to mind. They have feral cats like other cities have feral pigeons, and have so for thousands of years (and yes, pigeons are feral, not wild! They are a domesticated species)
67.
▲
by
haileys
3y ago
This is not true. Stimulant medication can form part of the treatment, for some people. But it's not the only kind of medication, and not the only kind of therapy. Anyway, I suggest that anyone concerned seeks the advice of a doctor, n
68.
▲
by
haileys
3y ago
Sadly psychiatric conditions like ADHD remain quite stigmatised. I assume keyle wouldn't speak so derisively of someone suggesting to speak to a medical professional about a list of physical symptoms.
69.
▲
by
haileys
3y ago
This all sounds a lot like ADHD: > I stumble on a problem like this one and I stay up late every night until I find the solution. I wake up early each morning with new ideas of things to try. I don’t take enough breaks, but when I do, t
70.
▲
by
haileys
3y ago
This is such a case of lawyer brain. The OP wrote this as a learning exercise. With the goal of learning in mind, I would suggest that it's probably best for the OP to go and read as much code as they possibly can, no matter the licens
71.
▲
by
haileys
3y ago
From the FAQ: https://news.ycombinator.com/newsfaq.html It's ok to post stories from sites with paywalls that have workarounds. In comments, it's ok to ask how to read an article and to help other users do so. I
72.
▲
by
haileys
3y ago
> Nullptr is needed in C++ because `0` is the only definition of `NULL` that works with the type system, due to the lack of implicit `void ` conversions.* > C doesn't have this problem. Except for conversions between data poin
73.
▲
by
haileys
3y ago
I would suggest dialling the condescension down a bit mate. There are many successful modern industrial languages out there that don't repeat the kinds of mistakes Go does. Kotlin is a strong example. So does the popularity of TypeScri
74.
▲
by
haileys
3y ago
It really is remarkable that Go has repeated all these mistakes, even with the benefit of having all of our field's history to learn from. Loop variable scoping is not the only area where the designers of Go have failed to learn from p
75.
▲
by
haileys
3y ago
Assuming perfect efficiency and that people are doing the speed limit, 1 mile of 200kw charging at 70 mph gives you a grand total of 2.8 kWh of juice. Of course, there will be losses in power transfer, and nobody in the US actually does the
76.
▲
by
haileys
3y ago
Well, my laptop and my desktop are set up pretty similarly to each other. Syncing is useful for me :shrug:
77.
▲
by
haileys
3y ago
For starters it relies on implicit zero values in the language. These are dangerous from a modelling perspective: if you have a 0 integer, or an empty string, you can't really be sure if that's a meaningful value or merely a defau
78.
▲
by
haileys
3y ago
The counterpoint to this is that ext4 can't change dramatically enough to cause problems without breaking compatibility with older kernels or older filesystems.
79.
▲
by
haileys
4y ago
84 Wh is enough to propel a human on a bicycle about 20 km in about one hour. From this perspective electric cars are ludicrously inefficient ways to get around. Maybe in the future we'll view car dependency as similarly wasteful to us
80.
▲
by
haileys
4y ago
The thing that makes this tricky is that x86 is a variable length instruction set: you don't know where the preceding call instruction might begin, and you can't decode backwards. You can do it speculatively, but ambiguities are s
81.
▲
by
haileys
4y ago
Would this not just return nil for the else case? This is already the behaviour of Ruby and Lua as well, of course both are unityped languages where "just return nil" semantics are the natural conclusion. The OP however is discuss
82.
▲
by
haileys
4y ago
> and give them to the Fed in exchange for freshly minted money? Is this not essentially QE?
83.
▲
by
haileys
4y ago
If the stack buffer is allocated in any frame except the leaf frame, just as easy. void outer() { char buff[64]; read_data(buff); process_data(buff); } void process_data(char* buff) { /&#x
84.
▲
by
haileys
4y ago
Describing SysV init as 100% reliable is a very rose-tinted view of history, I think.
85.
▲
by
haileys
4y ago
> If you ever want an example of what I mean: look at how systemd starts mysql. Someone (not me) spent at least a man month making that work. I was curious, so I cracked open the mariadb.service unit that ships with Arch Linux. Other d
86.
▲
by
haileys
4y ago
You can actually create millions of threads. Threads are just coroutines managed by the kernel after all.
87.
▲
by
haileys
4y ago
The GitHub Rails app did link against libmysql originally, via the Ruby bindings. This turned out to be a source of endless bugs, especially in dev envs, so in 2015 Brian Lopez and I built a new client library for the Rails app: https:&#
88.
▲
by
haileys
4y ago
Why not an HTTP server with a directory index? FTP is a pretty clunky protocol: it's round-trip heavy, not friendly to NAT on the client-side when you don't use PASV, not friendly to firewalls on the server-side when you do. I
89.
▲
by
haileys
4y ago
> Templating yaml is a terrible, terrible idea I've had a good time using ytt: https://carvel.dev/ytt/ . It implements language-aware templating, which is IMO the only reasonable way to do it.
90.
▲
by
haileys
4y ago
To clarify, are you claiming that nicotine's psychoactive effects are minor or even positive?
More ›