Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ekidd
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
69 ms
·
661.
▲
by
ekidd
9y ago
Yeah, a doubly-linked list is basically the worst possible choice for your first program in Rust. This is because Rust likes all of your memory to have one clear owner. And this means that cyclic data structures are unusually difficult comp
662.
▲
by
ekidd
9y ago
How well this works depends a lot on the ecosystem. When working with Node.js or JavaScript in the browser, there's often a huge number of modules available. But even though there may be six different modules trying to solve the same p
663.
▲
by
ekidd
9y ago
> Even outside of C/C++, Emscripten seems to be required in some fashion for just about every "compile X to webasm". One exception to this is Rust's new "wasm32-unknown-unknown" target, which uses LLVM to di
664.
▲
by
ekidd
9y ago
Yeah, this is a really great Haskell feature, and it often feels like magic the first time you see it. It's key to a whole lot of useful Haskell idioms. Well-known languages which do this include Haskell and Rust (where it's also
665.
▲
by
ekidd
9y ago
> Regulators could oblige platform firms to make anonymised bulk data available to competitors, in return for a fee, a bit like the compulsory licensing of a patent. Such data-sharing requirements could be calibrated to firms’ size: the
666.
▲
by
ekidd
9y ago
> The Vagrant repo itself was called something along the lines of “full-stack in a box”, and the idea, as you might imagine, was that a simple `vagrant up` should enable any engineer in the company (even frontend and mobile developers
667.
▲
by
ekidd
9y ago
> Most language-level decisions seemed to be mostly dictated by what anyone was actually able to implement in the compiler This is getting off topic, but that hasn't really been my experience as a user of Rust. Yes, the compiler i
668.
▲
by
ekidd
9y ago
From the OP: > ...there is no escaping that the entire dot-com era was a disaster for IT/CS in general and for software quality and Unix in particular. The dotcom era was almost 20 years ago. The Netscape IPO (1995) is now closer
669.
▲
by
ekidd
9y ago
> So, while native proficiency might be a waste of time if you simply want to use a language as a communication tool it becomes a worthwhile endeavour if you see a foreign language as something that in a broader sense helps you to grow
670.
▲
by
ekidd
9y ago
> Reaching a B2-C1 level of proficiency. That's certainly conversational, but far from fluent. Consider that for Russian, the passive vocabulary of someone with a C2 proficiency is about twice that of someone with a C1. C1 is good
671.
▲
by
ekidd
9y ago
> AFAIK this is a fundamental principle of ML that has been proven mathematically and which is inescapable. Well, the human brain manages to master several complex tasks using much smaller data sets than current machine learning algori
672.
▲
by
ekidd
9y ago
> I'm just bemoaning the larger context of copyleft non-adoption. I rarely bother to use copyleft for my personal open source work, because I'm not typically interested in hiring lawyers to try to enforce compliance. And if I
673.
▲
by
ekidd
9y ago
> Their are no "three-acre farms," at best it's a garden. It's not easy to make a decent living of a tiny farm, but some people have done it. Most of them target higher-end products and direct-to-customer sales. For
674.
▲
by
ekidd
9y ago
> In Rust you... can't do that because they'd all need to be read-only? Here's one way to think of it: There's the kind of code that Rust "wants" you to write, and then there's the kind of code that i
675.
▲
by
ekidd
9y ago
I've spent the last few days aggressively parallelizing some Rust code with crossbeam, and it's really just... painless (once you're used to Rust). Rust actually understands data races, and it grumbles at me until my code is
676.
▲
by
ekidd
9y ago
> You'd never use modulo or reverse a linked list in these positions The position I'm thinking of was a senior developer position that involved writing large amounts of Scheme code to interface with a video game engine. Typic
677.
▲
by
ekidd
9y ago
> I've found simply talking to prospective employees (be it software or anything else) about how they work, challenges they've encountered and how they overcame them and figuring out their attitudes has never failed me in hirin
678.
▲
by
ekidd
9y ago
> you can never be certain that the maintainer actually follows it I write a bunch of Rust. The Cargo package manager has several layers of "defense": 1. The "Cargo.lock" contains exact versions of all transitive de
679.
▲
by
ekidd
9y ago
> If code safety is still a concern with this project, you/someone might consider conversion to SaferCPlusPlus (essentially a memory-safe subset of C++). Thank you for the pointer! I haven't been a maintainer of xmlrpc-c in o
680.
▲
by
ekidd
9y ago
Whenever I see a C networking library, my first questions are: 1. How many security-critical CVEs has it had in the past? 2. How extensively has it been fuzzed? 3. Is this one of the rare C code bases that actually has pretty solid security
681.
▲
by
ekidd
9y ago
> Legislate that political news must be regulated. This is not as simple as it sounds, of course, because the regulators would also have plenty of incentives for bad behavior. I actually think that government regulation can be tremen
682.
▲
by
ekidd
9y ago
> The best high schools encourage their top students to really dive deep into their subject of interest, rather than focus on improving the performance of laggards or generally concentrating on improving average performance. This is ce
683.
▲
by
ekidd
9y ago
> canonical unit testing and TDD frequently requires monkey patching and dependency injection This is probably the root of most of our disagreement. I belong to the school of thought that says (in most cases) "Mocking is a Code Sm
684.
▲
by
ekidd
9y ago
> I appreciate your answer, but the destructiveness of the reward loop is directly addressed in the PDF. I've gone back through most of the PDF, and I can't figure out what section you're referring to. There's a bun
685.
▲
by
ekidd
9y ago
OK, just to back up a step, here's my best argument in favor of automated testing: Virtually nobody just makes a change and ships it users without some kind of testing. Maybe you run your program by hand and mess around with the UI.
686.
▲
by
ekidd
9y ago
> The logical conclusion of this line of argument, which is dependent on the proposition that even bad unit tests have value, is that we could just automatically generate copious numbers of unit test cases for a given code base, and we
687.
▲
by
ekidd
9y ago
> Namely, if bad programmers write bad code that needs unit tests, they're also going to write bad unit tests that don't test the code correctly. So what's the point? Let's assume you hire good programmers, because
688.
▲
by
ekidd
9y ago
> That a little will can solve this seems obvious for thin people, but it doesn't reflect the reality of weight loss. As somebody who has lost weight and kept it off for years, I agree that it comes at a price—I need to be conscious
689.
▲
by
ekidd
9y ago
> This is not an all-or-nothing proposition, there’s no reason for the slope to be slippery. I think that if you draft your country's constitution to say, "We have freedom of speech, except for calling for genocide and/o
690.
▲
by
ekidd
9y ago
> with ridiculous cases like four-way stop signs on roads where you could literally see hundreds of feet down each of the other roads, and not a car in sight except the cop car parked next to the intersection. Keep in mind that rotarie
More ›