Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
demurgos
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
19 ms
·
1.
▲
by
demurgos
16d ago
They're referencing "FLOSS": Free/Libre and Open Source Software [0] [0]: https://www.gnu.org/philosophy/floss-and-foss.en.html
2.
▲
by
demurgos
4mo ago
It could also be a pop-up or a clear icon in a corner without disrupting the movie. It does not have to be baked into the video stream as long as it's displayed. I'm not sure what country you're in but some programs on TV or
3.
▲
by
demurgos
5mo ago
This is a standalone game that needs to be purchased. For PC, it can be acquired through Steam ( https://store.steampowered.com/app/753640/Outer_Wilds/ ). It is also available on consoles, it is not available o
4.
▲
by
demurgos
5mo ago
To go further, semver provides semantics and an ordering but it says nothing about version requirement syntax. The caret operator to describe a range of versions is not part of the spec. It was introduced by initial semver-aware package man
5.
▲
by
demurgos
8mo ago
Here is mine: https://demurgos.net There's not much, but I keep a few articles and games there.
6.
▲
by
demurgos
9mo ago
The "unexpected" part is that the browser automatically fills some headers on behalf of the user, that the (malicious) origin server does not have access to. For most headers it's not a problem, but cookies are more sensitive
7.
▲
by
demurgos
9mo ago
Yeah, it's hard to prevent a sufficiently motivated dev from shooting itself in the foot; but these still help. > You conveniently left out where the Foo string is computed from something that actually need computation. I left it ou
8.
▲
by
demurgos
9mo ago
The point of my message is that you should avoid the `log(string)` signature. Even if it's appealing, it's an easy perf trap. There are many ideas if you look at SQL libs. In my example I used a different type but there other solu
9.
▲
by
demurgos
9mo ago
I feel like there's a parallel with SQL where you want to discourage manual interpolation. Taking inspiration from it may help: you may not fully solve it but there are some API ideas and patterns. A logging framework may have the equi
10.
▲
by
demurgos
9mo ago
It's definitely a possible solution if you control how the file are displayed. In my case I preferred the files to be safe regardless of the mechanism used to view them (less risk of misconfiguration).
11.
▲
by
demurgos
9mo ago
What are TV brands/OSes that complain the least when not connected to the internet?
12.
▲
by
demurgos
9mo ago
I looked into it for work at some point as we wanted to support SVG uploads. Stripping <script> is not enough to have an inert file. Scripts can also be attached as attributes. If you want to prevent external resources it gets more co
13.
▲
by
demurgos
9mo ago
It is intentional to avoid non-free projects from building on top of gcc components. I am not familiar enough with gcc to know how it impacts out-of-tree free projects or internal development. The decision was taken a long time ago, it may
14.
▲
by
demurgos
9mo ago
Internal means "not exposed outside some boundary". For most people, this boundary encompasses something larger than a single database, and this boundary can change.
15.
▲
by
demurgos
10mo ago
You are talking about forward compatibility. JS is backwards compatible: new engines support code using old features. JS is not forward compatible: old engines don't support code using new features. Regarding your iPad woes, the proble
16.
▲
by
demurgos
11mo ago
No it doesn't. A global flag is a no-go as it breaks modularity. A local opt-in through dedicated types or methods is being designed but it's not stable.
17.
▲
by
demurgos
11mo ago
That's a nice idea, thank you. I have personal blog, I'll try to clean it up a bit and provide performance measurements so it's worth posting. Regarding the official documentation, I've returned to read them. I agree tha
18.
▲
by
demurgos
11mo ago
I believe that you are describing `Vec::with_capacity` which allows to change the initial reserved memory on construction. `reserve` and `reserve_exact` are used when mutating an existing vec. What you provide is not the total wanted capaci
19.
▲
by
demurgos
1y ago
> I'm not sure if this isn't as common as I think it is - but what's wrong with typing `ip` into a terminal (that's always open anyway)? I'm a regular Linux user, but I wouldn't know how to get all the data
20.
▲
by
demurgos
1y ago
Where is the spec? I can't find an entry on MDN. Is there a way to get reproducibility? In the same browser or across browsers? Even if it's not the default mode.
21.
▲
by
demurgos
1y ago
React native is just an example, the point is that the npm registry has no issue distributing binaries. Sass, Prisma, native DB drivers, or any other project using node-gyp or Node's NAPI are valid examples.
22.
▲
by
demurgos
1y ago
> I don't know much about go, and I've only scratched the surface with node, but as far as node goes I think it just distributes JS? As a sibling comment posted, Node packages have no issue distributing non-JS assets. Since the
23.
▲
by
demurgos
1y ago
I'm not very familiar with them, but I always assumed that there is a lot of overlap between the maintainers of both projects.
24.
▲
by
demurgos
1y ago
Sometimes you need to embed binary data in a text format (e.g. JSON).
25.
▲
by
demurgos
1y ago
> The ECMAScript/JavaScript language itself, however, exposes characters according to UCS-2, not UTF-16. The native JS semantics are UCS-2. Saying that it's UTF-16 is misleading and confuses charset, encoding and browser APIs.
26.
▲
by
demurgos
1y ago
If the logic is compute heavy, Rust with Wasm can be a good approach. TypeScript on both ends is also a pragmatic choice. You can still have a boundary in the backend for lower level layers in Rust. If the logic is merely about validation,
27.
▲
by
demurgos
1y ago
What you describe is already the status quo today. This proposal is still a big improvement as it makes resource management less error prone when you're aware to use it and _standardizes the mechanism through the symbol_. This enables
28.
▲
by
demurgos
1y ago
Thank you, I did not know this paper and totally missed the reference.
29.
▲
by
demurgos
1y ago
My understanding is that "ad-hoc" in this context means that you are not defining a single generic implementation but adding individual impls for specific types. There's no fundamental difference between Java's overloadi
30.
▲
by
demurgos
1y ago
> Strictly speaking, Rust doesn't support overloaded functions. Function overloading is when you define the same function but with different arguments, and the language selects the correct one based on the argument type. In this cas
More ›