Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
lalaithion
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
31.
▲
by
lalaithion
2y ago
git reset only works if you're on the branch you want to move, which is why every one of these example flows has you create your new branch, then do the reset, then switch to the new branch, instead of just allowing you to move a branc
32.
▲
by
lalaithion
2y ago
None of these seem to preclude a command to make an arbitrary branch point to an arbitrary commit without changing anything else.
33.
▲
by
lalaithion
2y ago
The disconnect between git's beautiful internal model of blobs, a tree of commits, and pointers to commits, and the command line interface is so wild. All of these recipes are unintuitive even if you have a firm grasp of git's mod
34.
▲
by
lalaithion
2y ago
> A robot that has any real idea about its own existence, or the existence of humans in the way that a six year old understands humans It seems to me we’re at the very least close to this, unless you hold unproven beliefs about grey matt
35.
▲
by
lalaithion
2y ago
https://docs.rs/refbox/latest/refbox/
36.
▲
by
lalaithion
2y ago
We put test inputs and outputs in testdata/test_name.in.textpb and testdata/test_name.out.textpb, respectively. Way nicer than defining both your inputs and your desired outputs in go code, even compared to not using protobuf at a
37.
▲
by
lalaithion
2y ago
A 70-120 zoom at 90, a 90mm prime, and a 70mm prime cropped in to the same field of view should produce the same perspective projection. Try it sometime – take two photos from the same spot, one at 70 and one at 100 and then crop the 70 to
38.
▲
by
lalaithion
2y ago
Instead of passing around the capacity in a struct or as an extra out parameter until you call free, could you instead branch on capacity == 0 in get_foos and set *out_foos to a null pointer? Just because the vector struct never has a null
39.
▲
by
lalaithion
2y ago
The verbosity is the point! I want functions that interact with a specific expectation of global state to clearly mark that in their type, and the least complicated way to do that is my proposal. I hope someone can invent something more com
40.
▲
by
lalaithion
2y ago
It would prevent callers from not knowing the function depends on a specific runtime. That’s a huge improvement in my opinion. I expect something along the lines of the GhostCell paper could be used to implement this, to be honest, but I th
41.
▲
by
lalaithion
2y ago
Rust doesn’t have a way in the type system to tell if a function that isn’t declared async is going to block or not. Their point is that any of those functions could block, and having them block wouldn’t be an obvious breaking change, and s
42.
▲
by
lalaithion
2y ago
What I think this comes down to, is that in Rust: It is easy but dangerous to call a non-async function from an async function (since the non-async function could block, forcing all your async code to block on this function). It is hard but
43.
▲
by
lalaithion
2y ago
You don’t actually need it to be a reference; the runtime could generate a random int64 and then pass that around as a “runtime id” which could be checked when used. You’re correct that my proposal doesn’t solve every problem with Tokio. I
44.
▲
by
lalaithion
2y ago
> There are a substantial number of async crates out there that run on top of tokio. They use tokio’s primitives, tokio’s executor, and tokio’s I/O semantics. Because of this, they rely on tokio’s runtime to be running in the backgr
45.
▲
by
lalaithion
2y ago
It needs a bigger context, but the moment someone can feed an entire GitHub repo into this thing and ask it to fix bugs... I think O2 may be the beginning of the end.
46.
▲
by
lalaithion
2y ago
JSON5 is for inputs, this article is about outputs.
47.
▲
by
lalaithion
2y ago
The comment you’re responding to is postulating enforcement via higher insurance costs. If insurance gets ~20 reports of someone running a red light, maybe they’ll double the cost to insure that person.
48.
▲
by
lalaithion
2y ago
It should be possible to have a platform that has a mutable reference with an API like this: main = x = pf.NewRef! pf.Write! x 5 y = pf.Read! x
49.
▲
by
lalaithion
2y ago
CEL is super cool, it's really great to have a quick and easy way to add a filter parameter to every list API on your server. This project should add an easy way to take a list/iterator of something that implements Serde Serialize
50.
▲
by
lalaithion
2y ago
We use the textproto format extensively at work; it's super nice to be able to define tests of your APIs by using .textpb inputs and golden .textpb outputs. We have so many more tests using this method than if we manually called the AP
51.
▲
by
lalaithion
2y ago
Luxury apartment is just a buzzword. Why wouldn’t you market your apartment as luxury. And yet when I’ve lived in them they’ve been shoddy and cheap!
52.
▲
by
lalaithion
2y ago
Futhark is a statically typed language, so it can’t have the same ambiguity.
53.
▲
by
lalaithion
2y ago
Surely the use case for this tool is to precompile your image into ASCII and then just output that on every shell start up, right? There’s no reason to convert the image every time.
54.
▲
by
lalaithion
2y ago
Honestly, there is no way. Even if you do manage to fill out their opt-out forms, they will successfully opt you out of most internal AI training, but metadata will still be trained on and AI projects which are either too important or unmai
55.
▲
by
lalaithion
2y ago
Monads allow representing which global values a function reads to or writes to in the type of the function.
56.
▲
by
lalaithion
2y ago
> Or did they followed some method that is today lost, possibly based on the position of a start or a constellation, resulting in an alignment on the Mercator projection? I would not say that the method is today lost; while not aligned o
57.
▲
by
lalaithion
2y ago
In my opinion all maps of single airplane routes should be shown with a two-point equidistant projection. This clearly shows the straight line between the start and end as the shortest direction, and minimizes distortion along that line. Ad
58.
▲
by
lalaithion
2y ago
The word “Turkey” is not the same as “turkey”, “August” is not the same as “august”, and “Muse” is not the same as “muse”. https://en.m.wikipedia.org/wiki/Capitonym
59.
▲
by
lalaithion
2y ago
How would a second stairwell would have helped Grenfell Towers? Residents were told to not evacuate for two hours after the fire started.
60.
▲
by
lalaithion
2y ago
A globe is just using physics to create a perspective projection on your retina. https://en.wikipedia.org/wiki/General_Perspective_projection
More ›