Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
lpghatguy
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
lpghatguy
5y ago
This is a problem I've always had with Mermaid too. Custom theming is a no-go; it's easier to make attractive diagrams with GraphViz. I remember the docs for Mermaid.js talk about varying document trust levels, which is not someth
32.
▲
by
lpghatguy
5y ago
C++ is not nearly as productive a language for most programmers in the world as JavaScript. Qt is not a panacea, even for desktop apps. The condescending tone to web developers is very strange and not very nice.
33.
▲
by
lpghatguy
5y ago
2^64 seconds is 584.9 billion years. I think it's pretty safe to kick the can nearly 600 billion years down the road.
34.
▲
by
lpghatguy
5y ago
I visited the USAF Museum earlier this year. It's breathtaking just how large the B-2 Spirit is. You can know the plane's dimensions going in and it'll still blow you away standing next to one.
35.
▲
by
lpghatguy
5y ago
This was something I helped with recently, as a great case study. We launched a new website for our game studio recently and went all-out on supporting modern compressed images: AVIF and WebP with PNG fallback. The header image for this pag
36.
▲
by
lpghatguy
5y ago
This resonates with me. I purchased a Moonlander around a month ago. I'm finally starting to reach the typing speed I had on a regular keyboard, but I haven't learned how to switch back to a normal keyboard yet. That said, I don&#
37.
▲
by
lpghatguy
5y ago
Okay then, let me just go close my bank account then. It's just a convenience. :P
38.
▲
by
lpghatguy
5y ago
What are you basing that on? This is the worst in my experience in the games industry. So many people who strongly prefer to work indie instead of risk working with an endless cesspool of assholes.
39.
▲
by
lpghatguy
5y ago
How many incredibly smart people are pushed out of the industry by awful people? By letting jerks run the show, you don't get a chance to see the intelligence of people who these folks suppress.
40.
▲
by
lpghatguy
5y ago
I've written a lot of structs that have "maybe borrowed" contents. I usually reach for std::borrow::Cow for this. It's not exactly the same: we need to branch at runtime instead of having multiple generated codepaths.
41.
▲
by
lpghatguy
6y ago
I'm sad to see that Windows is not an officially supported target. This doesn't feel like the kind of project that anything gains from assuming POSIX, yet a lot of software is written this way. I'd love to take advantage of a
42.
▲
by
lpghatguy
6y ago
There's nothing stopping you from continuing to use anyhow in a library, it just doesn't produce error types with much structure. You can continue returning `anyhow::Error`, wrap it into a newtype error for your library, or refact
43.
▲
by
lpghatguy
6y ago
Amazon is sadly not the only company that works this way.
44.
▲
by
lpghatguy
6y ago
The official press release of the 3000 series[1] has a graph that seems to be what you're looking for. Look for the section named "GeForce RTX 30 Series Performance". It has a list of applications, each GPU and their relative
45.
▲
by
lpghatguy
6y ago
For comparison, the nearest star to us is 268,770 AU away, or around 491 times further away. It would take quite a bit longer to get there!
46.
▲
by
lpghatguy
6y ago
You can see the trade-off made here in Rust. When parsing a type, Vec<i32> is no problem, but the constructor of that type (in an expression!) must be written Vec::<i32>::new(). This operator is affectionately called the "t
47.
▲
by
lpghatguy
6y ago
Using package-lock.json gives you the same effect.
48.
▲
by
lpghatguy
6y ago
Another shell that has a similar philosophy is Nu[1]. I think the idea of structured shells (and typed shells?) is a very interesting path to improve UX and prevent certain kinds of common error. [1]: https://github.com/nush
49.
▲
by
lpghatguy
6y ago
It was mentioned in the article and was not considered a candidate due to a specific API requirement: > Other mature programming languages with support for reference counting include Objective-C, Swift, and Rust [50]. However, in its alg
50.
▲
by
lpghatguy
7y ago
An anecdote from a non-JS JIT, but similar: I once spent a summer working on a game engine with a couple others where the host language was LuaJIT. It started out great. The iteration cycles were incredibly short, performance was competitiv
51.
▲
by
lpghatguy
7y ago
Thankfully, with a native compiler you don't have to deal with your JIT warming up, or some other code causing your function to get deoptimized, or subtle JIT trace aborts. :(
52.
▲
by
lpghatguy
7y ago
Does that mean your power button is facing the wall?
53.
▲
by
lpghatguy
7y ago
An issue was filed about what platforms the project supports[1] and it appears to work on Windows. [1]: https://github.com/jaemk/self_update/issues/21
54.
▲
by
lpghatguy
7y ago
I don't think it's fair to say that Rust is entirely academic. It has a lot of production users including some very large names: https://www.rust-lang.org/production/users
55.
▲
by
lpghatguy
7y ago
Based on one of the pictures of the phone on the homepage, it appears that there is a numeric keyboard in portrait mode. It is shown setting the time for an alarm, but I imagine it is also used to type phone numbers.
56.
▲
by
lpghatguy
7y ago
Git will even warn you if the hash prefix you provide is ambiguous! I had a collision the other day on a mediums-sized when using a 6 character hash and was surprised. Git let me know and told me which objects collided.
57.
▲
by
lpghatguy
7y ago
Definitely after a few regenerates. I was looking for degenerate cases. :)
58.
▲
by
lpghatguy
7y ago
The planner suggests some very peculiar meals, like eating a whole avocado as dinner, or pinapple+cottage cheese with a side of pinapple for lunch. This is essentially the applied version of an xkcd comic titled 'Recipes': https:
59.
▲
by
lpghatguy
7y ago
Here are two slide decks talking (roughly) about real-world attacks against Lua 5.1 and 5.2's bytecode: 5.1: https://www.lua.org/wshop11/Cawley.pdf 5.2: https://apocrypha.numin.it/talks/lua_by
60.
▲
by
lpghatguy
7y ago
Segfaults in scripting languages are remarkably common, especially if arbitrary bytecode can be loaded into the VM. One I ran into in the wild recently is that in older versions of Lua, exceptions in GC finalizers (the `__gc` metamethod) ca
More ›