9,663 karma · joined Jun 14, 2010 (16y ago) · 1,502 submissions
comment 3y ago · link · parent
This doesn’t do justice to the world building of Dune. Technology is very limited. Computers are banned (for good reasons), and using those energy weapons is also forbidden in most situations. Thus, combat is once again dominated by the kind of melee encounters that were also historically the domain of a trained warrior caste. All of this is explored in detail in the later books, which maybe the author hasn’t read? If anything, Dune deeply affirms that society mirrors technology rather than creating a simple “naive feudal sci-fi” world as claimed here.
I haven’t read much past that yet since the article is very wordy, and it’s hard to be motivated to push forward once you stop being convinced that the author has a point.
comment 3y ago · link · parent
It should be noted that AFAIK on all modern operating systems, only one page of the stack is actually allocated on thread creation, and the rest is merely reserved address space that will be allocated on demand.
That doesn't make this point wrong: 4 KB is still a lot more than the couple of bytes a future might need. And setting up the page table is part of what makes spawning threads so expensive.
comment 3y ago · link · parent
To give a counter point, there seem to be lots of small wins that aren't taken, possibly in part because people seem to wait for the big ideas.
Take partial functions like head: You can do what Haskell and Java do and throw an exception. Or you can have dependent types and statically prevent the function from being applied to an empty list. But the obvious and easy solution in the current language would be to return Maybe, which isn't done because there's a feeling that it's not a big enough step to be worth the effort, and dependent types will eventually solve this anyway.
comment 3y ago · link · parent
Another minor thing that happens to annoy me very much is how everything about Haskell's syntax and standard conventions is so diff-unfriendly.
To see what I mean, I picked the first "official" example I could find. Here are a few lines of code from the one of the examples in the Haskell playground (https://play.haskell.org/ -- it seems to pick a random one each time you load it):
data Visitor
= Member Profile
| NonMember (Maybe T.Text)
deriving Show
data Profile =
Profile
{ name :: T.Text
, birthday :: Time.Day
} deriving Show
You see Haskell code like this all the time, and the (IMO old-fashioned) lack of an optional trailing comma practically forces you into something like this. But just imagine inserting another variant to Visitor before Member, or removing the name field from Profile!A more practically minded language might allow a syntax like this:
data Visitor =
| Member Profile
| NonMember (Maybe T.Text)
deriving Show
data Profile = Profile {
name :: T.Text,
birthday :: Time.Day,
} deriving Show
Bamm, each line is identical, editing is easy, diffs are clean. TypeScript, for example, has something like this for union types. Haskell unfortunately doesn't.comment 3y ago · link · parent
comment 3y ago · link · parent
We all know that's possible.
But can someone who follows some of this stuff more closely explain what the play would be? I always assumed that weakening public cryptography in such a way is a risky bet, because you can't be sure that an attacker doesn't independently find out what you know. You can keep a secret backdoor key (that was the accusation when they released Dual_EC_DRBG), but you can't really hide mathematical results.
Why would they be willing to risk that here?
comment 3y ago · link · parent
It's not that rare that my REPL sessions e.g. in Node are
> perform expensive computation
... result ...
> transform result
... transformed result ...
With this approach, the REPL slows down quadratically with session length, and any expensive command at the beginning is executed over and over again.
Also, better don't do any file I/O and then continue the session unless you're prepared for the consequences.
comment 3y ago · link · parent
I have two issue with that.
First, someone would have to work very hard convince me that recycled plastic or not, those flakes aren't specifically tinted to look exactly the way Apple wants them to.
Second, and that's the important one, as soon as recycling becomes a fashion statement, the question about effectiveness begins to evaporate. Or more accurately, impossible to bring up without giving off the impression that one is against improving the environment. As soon as the important part becomes that things "look recycled", that's what the market will deliver, whether the thing is actually recycled in a way that provides benefit or not.
And who knows if the environmentally best recycling methods won't soon actually produce something that looks "cleaner" and thus looks "worse for the environment" than some faux recycled bullshit product.
comment 3y ago · link · parent
comment 3y ago · link · parent
I have no idea whether you really don’t know what “LLM” stands for or are just trolling. Not calling it an LLM actually is more honest marketing precisely because it’s small, and “transformer-based model” is a precise technical description that everybody with even superficial knowledge of the field understood immediately.
And I’m actually onboard with most of your other examples. I’d include “all-day battery life” as another empty marketing term that doesn’t really say much.
comment 3y ago · link · parent
For actual input prediction, you probably want the temperature to be zero. But even a model as good as GPT-3 becomes very boring and repetitive with those settings.
comment 3y ago · link · parent
They also all have the same script writer, and they all *emphasize* *words* in the *same* *powerful* *exciting* *way*.
I'm old enough to remember that Apple presentations, while being clearly marketing exercises, used to be a lot more organic and flowing.
comment 3y ago · link · parent
This idea is completely gone from the world of software engineering. Systems become overloaded with the implementation of every crappy idea under the sun -- if a PM in a fever dream can think of it, and an overworked dev can hack it together, it goes in.
comment 3y ago · link · parent
My argument was that for efficient code, you need to pass references or pointers, which means you do need to care about lifetimes.
And your argument is that's not true because we now have std::string_view? You do realize that it's just a pointer and a length, right? And that this means you need to consider how long the string_view is valid etc., just as carefully as you would for any other pointer?
comment 3y ago · link · parent
Either you write code with good performance, which means that functions do take references and pointers sometimes, in which case you do have all of the usual lifetime issues. This is the proper way to use C++, and it's perfectly workable, but it's by no means automatic. That's the reality that my comment was referencing.
Or you live in a fantasy land where RAII solves everything, which leads to code where everything is copied all the time. I've lived in a codebase like this. It's the mindset that famously caused Chrome to allocate 25K individual strings for every key press: https://groups.google.com/a/chromium.org/g/chromium-dev/c/EU...
comment 3y ago · link · parent
For reference: https://en.wikipedia.org/wiki/Mathematical_universe_hypothes...
comment 3y ago · link · parent
I disagree that this criticism applies to Rust. For 99% of the cases, the idiomatic combination of borrow checking, Box and Arc gets back to a unified, global, compiler-enforced convention. I agree that there's a non-trivial initial skill hurdle, one that I also struggled with, but you only have to climb that once. I don't see that there's a limit to program complexity with these mechanisms.
comment 3y ago · link · parent
Theoretical arguments are nice, but in the real world, meetings are regularly scheduled were one or all people aren't physically at the location, say the company's headquarters, but the local time zone and its DST shifts are obviously still respected.
comment 3y ago · link · parent
> A “competitive offering” is a product that is sold to third parties, including through paid support arrangements, that significantly overlaps the capabilities of a HashiCorp commercial product.
We all get what they're trying to do. The bad thing is that this isn't only overly broad, but a moving target. I looked at HashiCorp's product page, and they're building up a wide portfolio of IaaS tools. Those are such fundamental tools that even if you're not a cloud provider at all, you're likely to have an overlap in "capabilities" at some point. IMO, IANAL and all that, that's a significant business risk for anyone using Terraform, for any purpose.