Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
simias
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
73 ms
·
571.
▲
by
simias
6y ago
Oh man, I knew there had to be a way to do that but I couldn't find it, so I always resorted to counting the number of characters in the match and then use cl<num> to replace it if there was no convenient motion like some kind of
572.
▲
by
simias
6y ago
This is one of my big frustration with Rust and probably the only feature from C++ I rally missed (C++ templates having "non-type parameters"). I'm very happy to soon see it lifted. There were workarounds for some common scen
573.
▲
by
simias
6y ago
You can do exactly the same back-of-the-envelope calculation for ICE engines as you did for the Tesla, you just need to know the average fuel consumption per mile and the energy density of gasoline. No need to worry about areodynamics.
574.
▲
by
simias
6y ago
Bitcoin is pretty nice for vendors: no need to integrate with third party services with complicated terms and regulations, no chargeback etc... But from the client's perspective it's pretty crappy for basically the same reasons. I
575.
▲
by
simias
6y ago
It's still a huge known unknown for Bitcoin. What is Satoshi was linked to a shady organization, or something the general public wouldn't want to support for instance? Imagine if Satoshi turned out to be an avatar for the American
576.
▲
by
simias
6y ago
Inflation is the catch 22 though. With a limited supply it seems like bitcoin may never successfully become a currency due to deflation, but at the same time without the carrot of massive gains you probably wouldn't have had any adopti
577.
▲
by
simias
6y ago
I've been using Firefox as my main browser for a long time and over the past couple of years I noticed an uptick in websites that wouldn't work lest I used Chromium. For instance last week I had to use a crappy HSBC website that w
578.
▲
by
simias
6y ago
Don't heat pumps work like a fridge/AC but backwards? That is, compressing the air inside to generate heat, then decompressing it outside where it gets extremely cold and is warmed up by the relatively hotter outside air? If so I
579.
▲
by
simias
6y ago
In this case it's also a hardware issue. If smartphones ran x86 I'm sure some clever hackers would've found a way to boot windows on them and from there you could play any game you like. But being ARM it's pointless.
580.
▲
by
simias
6y ago
That's not exactly the point TFA is making but I want to point out that I vastly prefer when people tell me "X is broken/bad/doesn't work/weird/..." rather than "maybe you should change it to d
581.
▲
by
simias
6y ago
Considering caring for the happiness of your employees (or really people in general) to be infantilizing is a pretty toxic mindset IMO. I WANT MY JOB SOUL CRUSHING BECAUSE I'M A REAL MAN. Happiness and entertainment are not the same th
582.
▲
by
simias
6y ago
I see how that can become a problem but I think the pros outweigh the cons. Maybe the problem is because of a "very large" codebase, my general hot take is that dynamic languages like Perl and Python should be used primarily for s
583.
▲
by
simias
6y ago
Yeah to be clear it's not the functionality that bothers me, it's just the syntax. Ideally since it's not even a proper variable since it changes after reading it should probably look like a function call. These ultra terse s
584.
▲
by
simias
6y ago
=~ is nice and convenient but I really don't think <> was worth bringing back. I'm sure people who never used Perl could figure out what `buf =~ /${regexp}/` does, but I wonder if they'd be able to figure out
585.
▲
by
simias
6y ago
I had never considered that "ice cone shaped" icebergs wouldn't be stable. It's obvious in hindsight, if you gave me an ice cube shaped like that I'd never expect it to float upright. Now every time I'll encoun
586.
▲
by
simias
6y ago
I think you're right, but I'm not sure about "easy to use". It's only easy to use because everybody uses it, so as you point out there's a massive talent pool and massive resources. As somebody who only started
587.
▲
by
simias
6y ago
Honestly I could try to ignore the memory consumption if at least it was snappy. The few electron apps I use have visible lag when I do something that forces a large redraw. That's a problem that didn't have with GTK app running o
588.
▲
by
simias
6y ago
That's Go. IMO Rust's approach is vastly saner, since a Result<> type has to be explicitly handled one way or an other. You simply can't access the returned value without unwrapping it. Of course that leaves function
589.
▲
by
simias
6y ago
Indeed. I wish I learned about it earlier myself, it would've saved me some boilerplate in the past.
590.
▲
by
simias
6y ago
For sure, but it's always higher risk/higher reward. If you're young and healthy you can probably earn more working that way, but if you're older, have a mortgage, have health issues, need maternity leave, have children
591.
▲
by
simias
6y ago
You need to consider the full picture. If somebody gets hired to do my job for half my salary, no job security and worse working conditions and they say they're happy to do so, I'd still want the courts to decide whether those are
592.
▲
by
simias
6y ago
Disguised employees are generally advantageous for the company, not the worker.
593.
▲
by
simias
6y ago
Completely agree. I used to create my own error type(s) manually and implement the various conversions for 3rd party crates and it was quite a lot of boilerplate but with anyhow (for applications where you don't really care about stric
594.
▲
by
simias
6y ago
With all due respect I disagree with DJB here. I can't see how his proposal would significantly improve the current status quo. Note step one of his self-described "straightforward" transition plan (emphasis mine): >012345
595.
▲
by
simias
6y ago
Defer seems more like a solution to making cleanup easier and less error prone, preventing memory/fd/mutex leaks. It wouldn't significantly improve memory safety IMO. Adding a "slice" type with checked bounds (somet
596.
▲
by
simias
6y ago
IIRC Zig isn't memory safe though, is it? If not it seems like a bad choice if the explicit purpose is to mitigate memory safety issues...
597.
▲
by
simias
6y ago
To me this idea sounds a lot like "why do we need IPV6? Why not keep IPV4 and add a few bytes?" except it's effectively almost the same amount of breakage. Either you're C-compatible or you're not. Making C memory-s
598.
▲
by
simias
6y ago
I heard all about that but I really don't think it matters all that much for the vast majority of players. People who are really active in video game communities are indeed likely to be annoyed at this and loudly complain online, but I
599.
▲
by
simias
6y ago
There are plenty of cross-store games on PC. And even if some games end up being exclusive you might still benefit as a player thanks to the competition. If Epic started offering a very bad user experience game devs would hesitate to publis
600.
▲
by
simias
6y ago
I see this mindset a lot but I don't really get it. You'd rather blame the legislation for forcing the websites to disclose all the tracking that they do instead of blaming the websites for tracking you in the first place? I'
More ›