Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
wwright
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
27 ms
·
241.
▲
by
wwright
6y ago
IMO it’s even simpler to use a monad-type extension to functions to suspend state. (This can be coroutines/generators, explicit Haskell monads, some macros encapsulating longjmp or whatever.) queue <- { root } while queue
242.
▲
by
wwright
6y ago
I can’t speak for all functional programming advocates, but personally, when I criticize “classes” it is because of the overall design/culture and not because of encapsulating state/side effects. - Subclassing is notoriously misle
243.
▲
by
wwright
6y ago
You absolutely do not need to understand lambda calculus to leverage FP. (And similarly, you don’t need to understand Turing machines to leverage imperative styles.) Tools like ReactJS and regular expressions would indicate that the market
244.
▲
by
wwright
6y ago
Someone could make some good money by explaining how this squares with the conventional wisdom that optimizing for profit also optimizes for the good of mankind.
245.
▲
by
wwright
6y ago
I heavily disagree, as someone who uses C++ as my primary language at my job for the last three years, and who has a lot of experience in many other languages. It has developed a lot of idiosyncrasies that range from "confusing uniqu
246.
▲
by
wwright
6y ago
How do you tie this correlation to the negative of that causation?
247.
▲
by
wwright
6y ago
I'd imagine that is correlated to the significantly higher percentage of non-cisgender/non-male people who report harassment and abuse in workplaces.
248.
▲
by
wwright
6y ago
Removing it from the normal tweet status is separate from preserving them. They could archive them and disable replies, retweets, quotes, and so on. They could remove it from feeds. They could frame it differently.
249.
▲
by
wwright
6y ago
Trump isn’t really “criticizing” mail-in voting in a responsible and measured way here though, is he? He’s claiming that it is a scam by his enemies that will definitely result in massive voting fraud. Is there any evidence for him to make
250.
▲
by
wwright
6y ago
Have you checked out the official container system in NixOS?
251.
▲
by
wwright
6y ago
FWIW, many people have the opinion that classes were a bad design. (I’m of the opinion that closures and anonymous objects do everything you’d need from a class, but better.) The other language improvements are definitely unanimous wins tho
252.
▲
by
wwright
6y ago
I assume that the author concatenated the image blobs into one buffer, then manually generated a file table. I believe there is a way to offer a “Download” button for buffer objects in JS.
253.
▲
by
wwright
6y ago
Have you tried i3 on Linux? It’s probably not exactly what you’re thinking of, but you can use it very similarly.
254.
▲
by
wwright
6y ago
I think the framing is kind of off. Being a successful business doesn’t mean that you must be secretive about your business operations. I don’t think it requires an “upper hand” either. Those may be key to out-competing other businesses in
255.
▲
by
wwright
6y ago
Have you used Rust? It doesn’t have backwards compatibility with C++, but the semantic model really is very similar to modern C++, just without hundreds of the footguns.
256.
▲
by
wwright
6y ago
Even a cascading deallocation is still deterministic. It’s true that it doesn’t have hard latency guarantees, though (and true GC with hard latency guarantees is arguably more useful in many cases).
257.
▲
by
wwright
6y ago
What makes you think that business inherently relies on secrecy?
258.
▲
by
wwright
6y ago
Yes, it’s called Ansible
259.
▲
by
wwright
6y ago
This is where Kubernetes points, FWIW :)
260.
▲
by
wwright
6y ago
I would bet that the license doesn’t encourage that, and SQL Server is the sort of software where the license is king.
261.
▲
by
wwright
6y ago
The title is very misleading.
262.
▲
by
wwright
6y ago
How is this different than micro services?
263.
▲
by
wwright
6y ago
IMO it’s more that the Rust community has fostered a culture of doing things carefully and doing them well whenever possible (I mean, it’s the language that will argue with you for hours over reference lifetimes, after all).
264.
▲
by
wwright
6y ago
Qt is actually a good example because C++ has a similar memory model to Rust (at least with respect to GC). The Qt solution was basically to give everything a “Cow” (copy on write) wrapper, and to use an event loop-based, somewhat manually-
265.
▲
by
wwright
6y ago
It really isn’t. APFS has excellent support for logical volumes, and it’s barely any harder than creating a new folder. (Each volume can also use an extra encryption layer if you want, which can be super useful.)
266.
▲
by
wwright
6y ago
And at the time, a lot of programmers did whine and moan about structured programming. The famous joke should be “there are two hard problems with computer programmers: whining, moaning, and off by one errors.”
267.
▲
by
wwright
6y ago
I think we can be a little more optimistic than that. I agree that it’s probably a white whale to try to build a language which is fully declarative 100% of the time, but if we can make something that is simple and declarative 80% of the ti
268.
▲
by
wwright
6y ago
IMO, imperative programming is only intuitive for imperative tasks. Many common programming tasks may be imperative, but many are not. Looking up a product number, placing that product in cart, and checking out is a naturally imperative flo
269.
▲
by
wwright
6y ago
I used to hate JS, but honestly, it made a lot of really smart decisions for dynamic documents. Some decisions weren’t great, but somehow they didn’t go as far wrong as C++ managed to in the same era…
270.
▲
by
wwright
6y ago
Oh, I agree. I was mostly saying this because my job uses C++ as the main language and boy oh boy is it the worst possible world.
More ›