Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
slashdev
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
53 ms
·
901.
▲
by
slashdev
4y ago
There isn’t enough data to make that claim with any confidence yet. It could just easily be the start of a spiral into an Argentina style socialist nightmare. The ability to vote for the party offering you a raise may be too dangerous. Ther
902.
▲
by
slashdev
4y ago
I think the author and the commenters here are using two different threat models. A lot of people here are saying you should encrypt the disks because it’s best practice for security. Or because it protects against some specific, if implaus
903.
▲
by
slashdev
4y ago
I’ve used Rust extensively the last couple years. I understand that. A lot of what people do with reflection in Go could be done more efficiently with code generation - but more easily with reflection. I’m sure the same is true in Rust, to
904.
▲
by
slashdev
4y ago
Are you saying there aren’t any legitimate uses for runtime reflection? Because I think Java and .Net, even Go have proved that wrong over the years. This seems like a valuable library. It’s impressive that it can be so powerful in a compil
905.
▲
by
slashdev
4y ago
Finding and fixing a bug in your own code that interfaces with a Kafka cluster that's tripping a disturbuted systems edge case is infinite squared. Solving it requires a huge volume of knowledge about complicated systems and topics as
906.
▲
by
slashdev
4y ago
Graham Hancock is a journalist, not a scientist. He doesn't pretend to be otherwise. He's likely wrong about most of his theories. But he's challenging accepted ideas in a field where accepted ideas are frequently overturned.
907.
▲
by
slashdev
4y ago
C++ is a great real world example of ignoring the advice "if you find yourself in a hole, stop digging". They have this problem with complexity and the only strategy they have to tackle it is by adding more complexity. Maybe they&
908.
▲
by
slashdev
4y ago
That's just factually incorrect. The largest pre-colonization city in the US was a piddling 20,000. Even Uruk in ancient Mesopatmia, was more than twice that size over 5000 years ago. Presumably you're referring to Tenochtitlan w
909.
▲
by
slashdev
4y ago
Please don't use copilot, decide it's not worth the risk for your company. In the great competition that is the labor market, copilot is giving me a leg up on everyone who isn't using it. It's the biggest single tool bas
910.
▲
by
slashdev
4y ago
It's also a searing indictment of Linux. I get less than half the battery life on my Alienware AMD laptop under Linux than under Windows. I don't know what Linux is doing wrong here, but it is not energy efficient.
911.
▲
Tell HN: Rust Is Complex
107 points
by
slashdev
4y ago
|
93 comments
912.
▲
by
slashdev
4y ago
Because practice is not the same as theory. It's both faster and slower than C, depending on the program, but overall slower. The answer to why is deeply complex and varies on a case-by-case basis. Rust is far more complex than C, so s
913.
▲
by
slashdev
4y ago
It's not a big deal. People give up more than 1% in suboptimal compiler flags alone. People give up far more than that by using unoptimized or lightly optimized code. People give up more than that by being too lazy to use profile guide
914.
▲
by
slashdev
4y ago
Wow! Probably similar numbers for concrete. It's exponential growth. The thing about exponential growth is it can't continue for too long. As observers of Moore's Law will understand, eventually you run out of resources or in
915.
▲
by
slashdev
4y ago
I just want to add to your explanation, that even in the absence of hard paging from disk, you can have soft page faults where the kernel modifies the page table entries or assigns a memory page, or copies a copy on write page, etc. In addi
916.
▲
by
slashdev
4y ago
> I was a Rust v1 contributor. I have great hopes for the language as a replacement for c in systems engineering. However, I much prefer C++ 20 for the kind of work I do (scientific computing). Rust isn't a competitor to C++ in that
917.
▲
by
slashdev
4y ago
I think I hit a nerve with this one. If you put out a job ad for any mainstream language (Java, JavaScript, C++, among others) you're inundated by applicants who have no business even working in this industry. If you put an esoteric la
918.
▲
by
slashdev
4y ago
I'm just a programmer who's been doing this for 20 years. I don't have the credentials of Mark, who is a legend. But I fully agree with him. There will be specific exceptions, but if you have the choice between Rust and C++ y
919.
▲
by
slashdev
4y ago
This takes me back to some blissful days spent optimizing an integer compression scheme in AVX2. It's really a difficult instruction set to work with. The authors comment about a set of oddly shaped Legos is very apt. It often doesn&#x
920.
▲
by
slashdev
4y ago
I always thought of myself as quite left of center. Now I find myself on the right, and I don't understand if I became more conservative as I got older, or if the center moved past me to the left.
921.
▲
by
slashdev
4y ago
So after ten years, no more Apple? Too bad if you still want to buy an iphone or you want support on the one you bought? Do you think this stuff through?
922.
▲
by
slashdev
4y ago
I agree with you. I also thought we were screwed in the West precisely because we couldn't do the kind of strict lockdowns China initially did, which worked so well for them. Things have changed. I would say because countries don'
923.
▲
by
slashdev
4y ago
"In the late 1990s, the government instituted land reforms intended to evict white landowners and place their holdings in the hands of black farmers. However, many of these "farmers" had no experience or training in farming.
924.
▲
by
slashdev
4y ago
It's not as simple as NIH. Using cgo means you have to build and link external dependencies in another language. Compared to Go, this makes it quite a bit more difficult to build and distribute than a single binary. But I think the big
925.
▲
by
slashdev
4y ago
For a Cloudflare article, this one is surprisingly light on technical details. And for the product where it most matters. I'm guessing this is a single master database with multiple read replicas. That means it's not consistent an
926.
▲
Ask HN: Should I give up and get a job?
191 points
by
slashdev
5y ago
|
237 comments
927.
▲
by
slashdev
5y ago
I hate SPAs. I would never do another SPA again if it were up to me. It just adds too much mental context switching and overhead. I can develop fully server-side apps that are lighter, run faster, and at least 20% less development effort (I
928.
▲
by
slashdev
5y ago
I choose boring happily over being dead. I don't think I would be willing to give my life to defend a country unless against a terrible evil like the Nazis.
929.
▲
by
slashdev
5y ago
Evil is a pretty strong word to toss around like that. The Nazis were evil. How is the West evil? Western countries do a number of bad things, but they're not evil.
930.
▲
by
slashdev
5y ago
It has complex failure modes though, unless you're not at all concerned about what happens if the program crashes, power goes out, file gets corrupted, etc. It's surprisingly difficult to write something that stores changing data
More ›