Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
xmcqdpt2
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
17 ms
·
181.
▲
by
xmcqdpt2
3y ago
I dislike microscopic functions a lot too and yet I've never needed 10 uninitialized variables at the beginning of a function. I've written readable 100 lines long functions. I just assumed that the OP was dealing with like 5000 l
182.
▲
by
xmcqdpt2
3y ago
No it isn't. In C you often have to keep pointers around for longer than you need to so that you can free() them at the end of a block. But still, the original post said that they have to deal with this: > because I always see about
183.
▲
by
xmcqdpt2
3y ago
> And this is, in fact, a made-up example but the thing is, I was a C programmer for the past 5 years, and I was working with low-level code (bare metal actually). And I have never seen the use of explicit scoping of variables. [...] I
184.
▲
by
xmcqdpt2
3y ago
Probably one of the best thing about the new "pythonized" Scala 3 syntax is that it doesn't require parentheses around if conditions.
185.
▲
by
xmcqdpt2
3y ago
It is interesting! I experimented with creating a bad borrow checker for Java using annotations from https://checkerframework.org/ It supports some level of substructural types using must-call annotations, https:/
186.
▲
by
xmcqdpt2
3y ago
They do not! > Q: Can I export data from AWS with Snowmobile? > > Snowmobile does not support data export. It is designed to let you quickly, easily, and more securely migrate exabytes of data to AWS. When you need to export data f
187.
▲
by
xmcqdpt2
3y ago
I'm not a C++ expert but I believe it is not possible in current C++ to implement a pointer type that will cause a compiler error when it is sent to another thread.
188.
▲
by
xmcqdpt2
3y ago
All your examples are blocked on my employer's network. So yeah.
189.
▲
by
xmcqdpt2
3y ago
In practice, for quantum mechanical systems, you get astronomical durations once the systems get even slightly complicated. It's possible to estimate and bound the recurrence time using the distribution of energy levels. Even the simpl
190.
▲
by
xmcqdpt2
3y ago
That's funny, I was just about to write the same comment!
191.
▲
by
xmcqdpt2
3y ago
> Imagine people had the option when buying a car, truck or minivan of having it be open and tinkerable? [...] > There are places for safe experimentation like tracks, so I don’t see why this fear isn’t irrational or a ploy for contro
192.
▲
by
xmcqdpt2
3y ago
> If there's no work-stealing from pinned carriers (or they're low-finite and normal threads are effectively infinite): yes that'd be a HUGE issue. I would be shocked if they released anything with that limitation though,
193.
▲
by
xmcqdpt2
3y ago
Object.wait() releases the monitor lock though. This specific case doesn't have to do with synchronized at all, but with wait() being a native call.
194.
▲
by
xmcqdpt2
3y ago
Is that true? Virtual threads aren't necessarily faster, you still have just as many sockets and network connections as before. You can easily spawn 5000 platform threads, and if that's not enough, there are quite a few user-space
195.
▲
by
xmcqdpt2
3y ago
In this case the synchronized blocks are released by calls to Object.wait, so that code would not deadlock with normal threads. The issue is that Object.wait doesn't suspend virtual threads, so you get deadlocks. The answer is to reimp
196.
▲
by
xmcqdpt2
3y ago
The change in semantics is that while in principle your OS thread will always have a turn at making progress (assuming no super heavy spin locks etc), that isn't true for virtual threads. The classic situation and the one they hit in t
197.
▲
by
xmcqdpt2
3y ago
Why two sentences? Maybe you should ask ChatGPT if you want explanations with specific length requirements. Anyway it's pretty simple really. A generic thread is bunch of stack frames (with their associated local variables). A standard
198.
▲
by
xmcqdpt2
3y ago
ChatGPT can (probably? I haven't checked) use git and package management. Maybe you should replace your colleagues with it.
199.
▲
by
xmcqdpt2
3y ago
You should learn ansible though, it's pretty transferable and works very well for non-cloud stuff too (in fact that's what it was created for!) It's pretty easy to use if you know shell. It might actually make your job easier
200.
▲
by
xmcqdpt2
3y ago
Maybe but if you are in the Bay area you have to get paid a Bay area salary. They could move out of SF but that's hard too. You have to change job but also get a new place, change doctors, your kids school, your partner might need a ne
201.
▲
by
xmcqdpt2
3y ago
At work, there is a push to move on prem applications to cloud but as much as possible without changing any of the code. We end up basically renting expensive instances for significant period of time and recreating all the on prem services
202.
▲
by
xmcqdpt2
3y ago
These ligatures are definitely French ligatures. See for example this picture from French wikipedia, https://commons.m.wikimedia.org/wiki/File:Ligature_typograph... But also French typographical ligatures (well beyond
203.
▲
by
xmcqdpt2
3y ago
The article is talking specifically about portfolio pictures for photographers. I that case, it doesn't matter what most people see, it matters what the person hiring you sees. And if you are doing commercial product photography, the p
204.
▲
by
xmcqdpt2
3y ago
To me the banding in the "lossless" (do words mean nothing anymore !?) webp pictures is super clear and looks like how I'd expect low quality JPEGs to look. It's the same kind of artifact that makes certain movies look t
205.
▲
by
xmcqdpt2
3y ago
Ligatures are old fashioned in English but still very common in French. Some ligatures are actually mandatory (like the oe in cœur, heart) while others like st are pretty common in proper typefaces such as those used for novels. The author
206.
▲
by
xmcqdpt2
3y ago
As they say, closures are the poor man's objects and vis versa. That said, most usage of closures in practice tend to have very little state manipulation -- a closure with 5 mutable fields is weird, an object with 5 mutable fields is &
207.
▲
by
xmcqdpt2
3y ago
The problem with naming variables is that you then have to deal with their scopes in review. For example, the following Java Foo getSmallFoos() { return foo .stream() .filter(...) .colle
208.
▲
by
xmcqdpt2
3y ago
I drive what is basically the slowest new car you can currently buy in North America (0-100 kph in 11 seconds, vroooom). I just have to floor it on highway ramps. Most cars accelerate much quicker, so people get used to never depressing the
209.
▲
by
xmcqdpt2
3y ago
Maybe there is a tool that can help them trace where this bug is coming from in their cost calculator?
210.
▲
by
xmcqdpt2
3y ago
I think filtering out crypto makes sense even discounting any ethical issues. I wouldn't work for a defence contractor but many defence jobs are real, good jobs with benefits etc. That isn't true of the majority of crypto job post
More ›