Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Chabsff
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
121.
▲
by
Chabsff
3y ago
Seconding the first recommendation. WebGPU is currently the sweet spot between classic and modern approaches. Also, don't be fooled by the name. While WebGPU was designed for the web browser, there are already some solid native impleme
122.
▲
by
Chabsff
3y ago
If you read Asimov's short stories and novels, you'll find that the point being made over and over again is that despite them sounding ironclad at first, the laws are naïve, futile, fraught with unexpected ambiguity, and ultimatel
123.
▲
by
Chabsff
3y ago
Expecting an exported document to behave as close as possible as the hosted version is not exactly unreasonable in general.
124.
▲
by
Chabsff
3y ago
Why do you think OP isn't refering to mmap()? Its behavior is pretty much what they describe, and a common way it's used.
125.
▲
by
Chabsff
3y ago
To address the unit test stuff: I'm not saying that type systems replace unit tests. I'm saying that unit testing in dynamically typed languages is fundamentally deficient. Or in other words: unit tests are made more reliable by t
126.
▲
by
Chabsff
3y ago
100% agreed on all points. But even in these languages, writing generics remains greatly facilitated by the use of type inference, which is all I'm saying.
127.
▲
by
Chabsff
3y ago
> Is there anyone making that claim? Apart from straw-men? For every intent and purpose, the person I'm replying to is, with an equivalent level of straw-man-ness, which is why I phrased it this way. > So if you claim your type s
128.
▲
by
Chabsff
3y ago
And I would contend that anyone claiming "I am capable of taking everything about the code I am tasked to change into consideration" is delusional when it comes to non-trivial projects, including single-dev endeavors. As far as s
129.
▲
by
Chabsff
3y ago
Well... It is true of everything in that blog post. But I am wiling to have my mind changed. I would be really interested in seeing a study that failed to find a benefit of type systems for refactoring tasks in large projects. The example I
130.
▲
by
Chabsff
3y ago
Admittedly, that was a bit hyperbolic on my part. What I meant to convey is that the matter is settled enough from my point of view that there needs to be a very strong case being made for me to be willing to engage in that conversation. Th
131.
▲
by
Chabsff
3y ago
I'm arguing that the studies linked in that blog post are fundamentally flawed because they only take into account first-pass development, and fail to take long-term maintainability into consideration. And this is silly because that&#x
132.
▲
by
Chabsff
3y ago
"Types lead to fewer bugs when making changes to long-lived codebases " is not up for much of a debate in my opinion. Preventing regressions is arguably a lot more important than writing a correct first pass, which is what you ar
133.
▲
by
Chabsff
3y ago
The moniker you are looking for is "duck-typing". Polymorphism is tightly tied to the notion of explicit interfaces.
134.
▲
by
Chabsff
3y ago
While I agree with most of the post, it's just the tip of the iceberg of the discussion. Stuff like interfaces, traits, generics, concepts, inference, duck-typing, implicit conversions, etc. all fuzzyfy the notion of "Strong Typin
135.
▲
by
Chabsff
3y ago
But I'm also that OP whom you replied to and I never once mentioned that gas prices have anything to do with the cost of operating the blockchain. It's only people trying to tell me that the overhead is negligible who seem to be u
136.
▲
by
Chabsff
3y ago
If I want to operate a service on top of the eth blockchain, I have to factor in gas fees as part of the operation costs. That's overhead.
137.
▲
by
Chabsff
3y ago
If the overhead was negligible, then so would gas costs.
138.
▲
by
Chabsff
3y ago
What's preventing people from engaging in these transactions is not a technological problem, but generally a regulatory one. "This allows people to break the law", which is what you are saying, is not a good thing, even if a
139.
▲
by
Chabsff
3y ago
I challenge you to pick a single example from this list that at the same time can't be done without blockchain, warrants the monstrous overhead, and provides utility other than "make money".
140.
▲
by
Chabsff
3y ago
Yes, I should have added that I'm referring specifically to the scenario OP is suggesting, which would require a host <-> client IPC channel, opening up the VM to similar attack vectors to a sandbox.
141.
▲
by
Chabsff
3y ago
That's kinda-sorta what they all do already. Not full OS-level VM abstraction, but surprisingly close to it. Exploits like this need to be paired with sandbox-escaping in order to do damage beyond the current browsing session (which VM
142.
▲
by
Chabsff
3y ago
> Although I do dislike that there's a large category of "achievements" nowadays that are nothing more than telemetry for developers. That's always been the case. Some XBoX360 games went as far as having "reached
143.
▲
by
Chabsff
3y ago
It's necessary because some (let's face it, X) social media companies are suspected of lying (aka engaging in fraud) to consumers by claiming that they are taking aggressive action against hate speech while not actually doing so.
144.
▲
by
Chabsff
3y ago
The reports are to sent to the attorney general who has to make them publicly available to everyone, including the universities. That being said, the fact remains that you are presenting the law as if it was was you expect the next step to
145.
▲
by
Chabsff
3y ago
The law doesn't compel any form of moderation though. All it does is require transparency. How is that censorship?
146.
▲
by
Chabsff
3y ago
It's not so much that there are people who genuinely believe that stuff, there have always been some of those. The issue is that they have managed to reach a critical mass where they can exert some real and harmful social and political
147.
▲
by
Chabsff
3y ago
It's hard to believe nowadays that conspiracy theories used to be a fun thing to engage with leisurely.
148.
▲
by
Chabsff
3y ago
The important part is that all the intermediate strings used during the computation are constexpr, to guarantee that the work happens during compilation. Also, constexpr symbols can be demoted to regular const as needed by the compiler if n
149.
▲
by
Chabsff
3y ago
Ideally, functions should be clear at the call site without a reader having to jump to the declaration to understand what's going on, and you don't get the return type there in the first place.
150.
▲
by
Chabsff
3y ago
Consistency. The rationale is: "always use auto as the return type, and add a postfix type if inference can't do the job for a reason or another."
More ›