Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
hmry
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
181.
▲
by
hmry
1y ago
AFAIK this hasn't been taught since the 40s. Now (since the late 60s) there are 3 different cursive scripts available, and it's up to the school to decide which one to teach (if any). When I went to school, the one I learned was S
182.
▲
by
hmry
1y ago
In terms of format string syntax, Rust is extremely similar to Python (and C++'s new std::format is also similar). So in that sense it seems Python-style "{name:fmt}" has won. Though the others don't support arbitrary ex
183.
▲
by
hmry
1y ago
Agreed about TS, but Python type annotations are not ignored. They are executed as code (all type annotations are valid expressions) and the results are stored on the module/class/function object that contains the annotated variab
184.
▲
by
hmry
1y ago
> Now I love dynamic typing - but not the Python kind - I prefer the Scheme kind - latent typing. Could you elaborate on the difference? I was under the impression that "latent typing" just means "values, not variables, ha
185.
▲
by
hmry
1y ago
How would someone send a message over shared memory without write access to that memory?
186.
▲
by
hmry
1y ago
"Read the file, or else!" The threatening postfix operator
187.
▲
by
hmry
1y ago
Optical disc media is pretty great, if only they didn't scratch so easily... Or get completely destroyed if something sticks to the label side and you try to pull it off... Or delaminate themselves from old age... Enclosed discs like M
188.
▲
by
hmry
1y ago
From reading the readme, it seems the Language was designed to explore increasing compile speed, and producing optimized code without using LLVM. Yet all the comments are about the syntax. Never change, programmers. Personally, I would have
189.
▲
by
hmry
1y ago
Very impressive PoC. The exploit, meanwhile... Seriously? `grep; rm -rf ~` is parsed as `grep` followed by a bunch of stuff, so just ask the user if `grep` is allowed and execute it? Was their permission system vibe coded? Gross incompetenc
190.
▲
by
hmry
1y ago
I remember thinking this post was outdated when I first read it. "Safe strings and unsafe strings have the same type - string - so we need to give them different naming conventions." I thought "Surely the solution is to give
191.
▲
by
hmry
1y ago
Yeah it's exactly AJAX. Except instead of writing Javascript to send requests and insert the response into the document, you use declarative HTML attributes to describe what you want to happen.
192.
▲
by
hmry
1y ago
I strongly dislike "this feature could be abused, so we won't add it" as reasoning for language design decisions. It just doesn't sit right with me. I think designing to avoid "misuse" (i.e. accidentally shooti
193.
▲
by
hmry
1y ago
Yeah, it would be much clearer if instead of an `a is b` operator, there was a `same_object(a, b)` built-in method.
194.
▲
by
hmry
1y ago
Wow, definitely much more than I expected from the title. Really enjoyed the surprise mini-talk about the origin of entity-component-system in the Q&A section as well.
195.
▲
by
hmry
1y ago
People don't complain about DX portability because Windows has first-party support for Vulkan and OpenGL, unlike macOS. Also, since the XBox also uses DirectX, you get two birds with one stone. And third, you aren't forced to use
196.
▲
by
hmry
1y ago
Yes, I agree. The same way that when you ask "Are there any production codebases written in Language X", you typically mean "excluding the Language X compiler & tooling itself." Because of course everyone writing a t
197.
▲
by
hmry
1y ago
Some examples that come to mind: You can inspect the call stack, and get a list of local variables of your callers. You can assign to object.__class__ to dynamically change an existing object's class at runtime. You can overwrite every
198.
▲
by
hmry
1y ago
Both of them, "Digital Rights Management" as a term and the Direct Rendering Manager, are about the same age. The legal term for it, from the DMCA, "Technological Protection Measures", also conflicts with another acronym
199.
▲
by
hmry
1y ago
> Private servers are not always a viable alternative option for players as the protections we put in place to secure players’ data, remove illegal content, and combat unsafe community content would not exist and would leave rights holde
200.
▲
by
hmry
1y ago
Zig is the only language I've used where every library specifies the one (and only) compiler version it works on in their GitHub readme.
201.
▲
by
hmry
1y ago
> This contrasts to Go's approach, much like python, of using casing convention to determine private vs public fields. ( Please correct me if I'm wrong on this? ) I think calling it a convention is misleading. In Python, you ca
202.
▲
by
hmry
1y ago
Thank you for the breakdown. Since we're on the topic of having to trust X, is there any reason to believe X wouldn't insert some code into the client JS (behind some per-account flag) to exfiltrate your key or PIN, if they were o
203.
▲
by
hmry
1y ago
> Rust's result type is just syntactic sugar around the multiple return value approach That's really not true. Multiple return values means you always need to return some return value and some error value, even if they are dumm
204.
▲
by
hmry
1y ago
Enum is what they call it (perhaps to appear more familiar to C++ programmers?), but from a computer science standpoint they are classic sum types.
205.
▲
by
hmry
1y ago
For those who don't want to read the article: The previous best was 49 scalar multiplications.
206.
▲
by
hmry
1y ago
In normal safe code, the compiler ensures your code has no UB. In an unsafe block, the programmer ensures the code has no UB. Safe abstractions are created out of unsafe operations by making sure it's impossible to violate the operatio
207.
▲
by
hmry
1y ago
Yeah, they do so regularly. Every version removes several old stdlib features (after the last version in which they were not deprecated goes EOL)
208.
▲
by
hmry
1y ago
.NET recently had a (very) minor controversy for inserting what amounts to a GitHub Copilot ad into their docs. So yeah, it sure feels like "once a corporate language, always a corporate language", even if it's transferred to
209.
▲
by
hmry
1y ago
That's not how mouse input works though, right? If I move my mouse cursor to 10,10, and then pick up the mouse and set it down somewhere else, it's still at coordinates 10,10. You don't need the mouse's physical absolute
210.
▲
by
hmry
1y ago
The proprietary protocol can use absolute positions between device/dongle, and then the dongle can translate to relative positions at the edge, by returning the difference since the last poll
More ›