Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
masklinn
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
29 ms
·
661.
▲
by
masklinn
1y ago
> Existing modern languages already provide an excellent developer experience: Go, Swift, Kotlin, Rust, and many more. Developers that can use one of these existing languages should.
662.
▲
by
masklinn
1y ago
Carbon exists only for interoperating with and transitioning off of C++. Creating a new code base in carbon doesn’t really make sense, and the project’s readme literally tells you not to do that.
663.
▲
by
masklinn
1y ago
All the defer sites in a lexical scope are static, you can target those sites directly or add a fixed-size stack in the frame.
664.
▲
by
masklinn
1y ago
> Suppose it were lexical scope and you needed it function scope. Then what do you do? Defer a bulk thing at the function scope level, and append files to an array after opening them.
665.
▲
by
masklinn
1y ago
I think an interesting component is that you might also want “semi linear types”: types which are purportedly linear but can be dropped as an unwinding backstop. For instance if you’re dealing with database transactions you probably want
666.
▲
by
masklinn
1y ago
I’m sure you’re a old man on the verge of death who loves yelling at clouds but enforcement and application of consistent code formatting has been considered a basic part of project management for a while now. Recent langage provide it as p
667.
▲
by
masklinn
1y ago
GP should have written project manager not package . Think npm / go / cargo, not apt/yum/pip.
668.
▲
by
masklinn
1y ago
> it didn't matter for their point. Which is mostly a lie, since at least half the concepts they gripe about in rust are in the js snippet.
669.
▲
by
masklinn
1y ago
> The author conveniently left out all of the things needed to understand that JavaScript version, including async/await, promises, modules, string interpolation, lambda syntax, not to mention the runtime that is running this, etc.
670.
▲
by
masklinn
1y ago
As soon as the hashmap needs to resize the array will be realloc’d, so it won’t be stable unless you add virtual memory tricks or an indirection via some sort of segmented array.
671.
▲
by
masklinn
1y ago
> where you start with "I need a product name and minimum price" before thinking about where they come from? Sure, and pretty much every time the names I wrote up were not the ones in the table so that was a complete waste of t
672.
▲
by
masklinn
1y ago
Github switched from unlimited users and per-repo fees to unlimited private repositories and paying per-seat 10 years ago or so: https://github.blog/news-insights/product-news/introducing-u...
673.
▲
by
masklinn
1y ago
> and uses a small stack by default. It does not, it sets low recursion limit which is a rather different thing.
674.
▲
by
masklinn
1y ago
> Did Python ever get tail recursion? There was a big controversy years ago. Guido didn't like it. But apparently something went in. No. The only thing that went in is moving Python frames off of the C stack, but since afaik the rec
675.
▲
by
masklinn
1y ago
The compiler doesn’t care either way, this is for the human reader’s benefit.
676.
▲
by
masklinn
1y ago
> "we want these elaborate type systems, but we also want typeless because that is far more convenient to use, so we invented generics, a method to untype your type system" It's rather the exact opposite. Parametric types
677.
▲
by
masklinn
1y ago
> there aren't any known good states prior to an unexpected crash If there aren't any good states then the program straight up doesn't work in the first place, which gets diagnosed pretty quickly before it hits the field.
678.
▲
by
masklinn
1y ago
> Is an infinite crash-loop considered success in Erlang? Of course not, but usually that's not what happens, instead a process crashes because some condition was not considered, the corresponding request is aborted, and a superviso
679.
▲
by
masklinn
1y ago
> variable shadowing There is no shadowing. It's also harder to spot that this is a bad pattern because it's exactly what the package examples currently do.
680.
▲
by
masklinn
1y ago
> The entire point of the returned context is that it's cancelled if an error occurs, yet the author never uses it again until after he's done with the errgroup. `Wait()` also does that. And the examples in the package document
681.
▲
by
masklinn
1y ago
> The one character fix is throwing away information .. It's duplicate information, since Wait essentially provides the same thing (and in fact the context returned is mostly to solely for the callbacks to use, if the callbacks don&
682.
▲
by
masklinn
1y ago
> Shadowing is another concept that made this issue less visible. There is no shadowing here, Go can only shadow in different scopes, `ctx` is just rebound (overwritten). Zig does not prevent reusing variables that I know. However I beli
683.
▲
by
masklinn
1y ago
Why? MDN does not purport to be exhaustive, that's the spec's job.
684.
▲
by
masklinn
1y ago
> You can write: Yes, and you can write <noscript> <script> ... </script> </noscript>
685.
▲
by
masklinn
1y ago
> My favorite is type="module" which competes with the higher level attribute nomodule="true". Anyways it looks like <script> has taken a lot of abuse over the years: It "conflicts" in the same way nos
686.
▲
by
masklinn
1y ago
> Yeah it lets you put code that goes in "catch" all over your function body, right next to where it's most relevant. To be fair I’ve rarely seen that, usually you’ve got half the method in a giant try block and have fun u
687.
▲
by
masklinn
1y ago
Do you mean the live chat? Those are, appropriately, for live streams. They do replay afterwards as depending on the type of stream the video may not make complete sense without them (and they're easy enough to fold if they don't
688.
▲
by
masklinn
1y ago
> I've never seen something so egregious before You should check how comments work on niconico.
689.
▲
by
masklinn
1y ago
> You set region-file-compression=lz4 and run --recreateRegionFiles and it turns into a 998.9 MiB world. Makes sense, worse compression ratios but less CPU is what mojang documented in the changelog. Neat, but I'm confused as to wha
690.
▲
by
masklinn
1y ago
It's a tool not a baby. Are you buying vehicles several times the price and encumberance because you can't fold down the rear seats and lay down some tarp?
More ›