Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tubthumper8
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
91.
▲
by
tubthumper8
3y ago
TypeScript's `private` keyword is like the Pirate's Code: > More like _guidelines_, than actual rules
92.
▲
by
tubthumper8
3y ago
> IIUC JavaScript has something similar for `this.#x`. Although this is implemented much more robustly and doesn't rely on unique class names and I believe is actually "secure" as in no other class can gain access. But I a
93.
▲
by
tubthumper8
3y ago
It's the knife sharpness one, they were referring to people being "sharp", which is another way of saying smart, typically the kind of person who thinks very quickly and nothing gets past them (hope this doesn't come off
94.
▲
by
tubthumper8
3y ago
It's been said that "Go" stands for "Go implement it yourself"
95.
▲
by
tubthumper8
3y ago
JSONPath? https://datatracker.ietf.org/doc/id/draft-goessner-dispatch-...
96.
▲
by
tubthumper8
3y ago
I think you're hung up on JSX being HTML - it isn't HTML and doesn't try to be. The "JS" stands for "JavaScript" and the "X" stands for XML, not HTML. > However, that means, that now one has s
97.
▲
by
tubthumper8
3y ago
> Also there are issues with that custom HTML-look-alike preprocessor, because you cannot write class="...", because then somehow it gets syntactically confused, because "class" is now a keyword in JS. > This all f
98.
▲
by
tubthumper8
3y ago
> One could have simply transpiled the existing codebase into Rust, and collect the reward. I'm not sure if this is already an internet saying somewhere, but whenever I read the word "simply", I assume that whatever comes
99.
▲
by
tubthumper8
3y ago
> It favours expressions over statements and even now, it’s not easy to set a breakpoint in the middle of one, so you end up rewriting into statements just so you can step through. I've never had an issue setting an inline breakpoin
100.
▲
by
tubthumper8
3y ago
This part also seems relevant: > Fish also uses threads, for things like the autosuggestion and syntax highlighting, and we would like to have more "threads"/"concurrency"/"run-thing-in-backgroundness&q
101.
▲
by
tubthumper8
3y ago
I like this idea of advancing beyond line-based diffs into something more meaningful. If someone renames a variable/type/module/whatever which changes X lines of code across Y files, I really don't care to see all of tha
102.
▲
by
tubthumper8
3y ago
This only works when `frobnicate` and `transmogrify` have the same argument and return types
103.
▲
by
tubthumper8
3y ago
Hmm I wasn't talking about the values in the array, whether those are pointers or Int or whatever doesn't matter, but the allocation of the array data itself. If the collection has capacity=2 (2 words) and another element is pushe
104.
▲
by
tubthumper8
3y ago
> prettier can be faster with a better algorithm Do you have any examples of this or is there anything in particular that Prettier uses a suboptimal algorithm for?
105.
▲
by
tubthumper8
3y ago
IIRC the maintainers are not currently open to migrating to TypeScript
106.
▲
by
tubthumper8
3y ago
How does this work for collection types (ex. dynamic array) that can reallocate after growing? If there's multiple references, with at least one being mutable. Is there an extra pointer hop as compared to, for example Rust's Vec?
107.
▲
by
tubthumper8
3y ago
It's not just speed, but also correctness. A quick search in the Prettier repo shows plenty of issues for "undefined is not a function", "cannot read property X of undefined/null", and other such errors that ar
108.
▲
by
tubthumper8
3y ago
> I'm adding voice recognition into the game I'm working on right now, for example. Very cool! I've also found that it's helpful when the game supports different controllers too. I absolutely cannot play games with ke
109.
▲
by
tubthumper8
3y ago
I guess I'm not sure what the "marketing machine" is here. The Rust team published an article _on their own blog_ and someone posted here on HN, then people discuss it if they're interested. I mean every language has som
110.
▲
by
tubthumper8
3y ago
> Mentioning that "modern" (12 year old) c++ does not have these problems gets downvoted. I'm not a C++ user but I thought that all of these things are still in "modern" C++, that the new editions only add things
111.
▲
by
tubthumper8
3y ago
Yeah, definitely for small devices. For things like VS Code's configuration file format (the parent comment) or other such use cases, I don't see a problem
112.
▲
by
tubthumper8
3y ago
Does JSONC have a specification or formal definition? People have suggested[1] using JSON5[2] instead for that reason [1] https://github.com/microsoft/vscode/issues/100688 [2] https://spec.json5.or
113.
▲
by
tubthumper8
3y ago
Similar to javac, the C# compiler barely does any optimizations at all ahead of time. Optimizations are generally done at runtime by the JIT compiler in the CLR virtual machine
114.
▲
by
tubthumper8
3y ago
In case you want to create a simple http listener without dependencies (besides the standard library), the official Rust Book has a tutorial for just that: https://doc.rust-lang.org/book/ch20-01-single-threaded.html
115.
▲
by
tubthumper8
3y ago
> I think if you don't want to supply even that, a better way would be to just close the connection and don't send anything back at all. I think this is the correct answer if a bad-mannered crawler has been identified. To take
116.
▲
by
tubthumper8
3y ago
Yes I believe Gradle is a DSL based on the Groovy programming language
117.
▲
by
tubthumper8
3y ago
I guess I'm confused by the suggestion - doesn't that static analysis step to check that code isn't calling private interfaces already exist, and is called a "compiler"?
118.
▲
by
tubthumper8
3y ago
With the rebranding of Facebook, we could go for MANGA, but dropping the "N" would still have an interesting result.
119.
▲
by
tubthumper8
3y ago
> but as you said it's a solved problem in very few languages. That's not what I said. What I said was "I'm not saying that every existing language has solved it". TypeScript, C#, Kotlin, Dart are all examples of
120.
▲
by
tubthumper8
3y ago
The central core of Rust is mutability NAND sharing, enforced by a borrow checker. Was that really established 30 years prior? I thought that came from the Cyclone research language (v1 release 2006) which was only a few years prior to the
More ›