Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
gpm
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
32 ms
·
721.
▲
by
gpm
11mo ago
> "We don't care about retro computers" is not a good argument imho, It absolutely is. If you want to do the work to support <open source software> for <purpose> you're welcome to do so, but you aren'
722.
▲
by
gpm
11mo ago
Nah, there's lots of times you need to specify the types of Vec, either because 1. You don't want the default `i32` integer type and this is just a temporary vector of integers. 2. Rust's type inference is not perfect and som
723.
▲
by
gpm
11mo ago
Related from a couple of days ago: A time-traveling door bug in Half Life 2 https://mastodon.gamedev.place/@TomF/115589875974658415 https://news.ycombinator.com/item?id=46009962
724.
▲
by
gpm
11mo ago
> The first version I got working was `d`, and my first thought was, "you're kidding me - the right hand side is inferring it's type from the left?!?" I didn't learn about "turbo fish" until some time l
725.
▲
by
gpm
11mo ago
Isn't that literally what debian unstable is for?
726.
▲
by
gpm
11mo ago
This is like complaining that in C you can write a->b (a->b) (*a).b ((*a).b) Being able to use disambiguated syntaxes, and being able to add extra brackets, isn't an issue. PS. The formatting tooling normaliz
727.
▲
by
gpm
11mo ago
Hmm, I wonder if also having a normal 3d camera that projects to 1d view (i.e. a line) would be a useful teaching aid for this... or if it would just be equally confusing in different ways.
728.
▲
by
gpm
11mo ago
> Where else have you seen this Node.js is easily the most famous example. Also deno, bun, winterjs, and probably a bunch more. Someone upthread just linked a bunch of other equivalent lua projects that also refer to themselves as runtim
729.
▲
by
gpm
11mo ago
I assume the relevant performance benchmarking would be of the http server APIs it exposes to lua, not lua itself.
730.
▲
by
gpm
11mo ago
Considering one of the project goals at the top of the readme is "Don't be obnoxiously slow" obviously not - it doesn't claim to be fast at all.
731.
▲
by
gpm
11mo ago
That's exactly how the term runtime is consistently used in the JS world... not sure it's misleading at all. Certainly less exciting/ambitious than if the interpreter was also rewritten, but its what it says on the tin as I u
732.
▲
by
gpm
11mo ago
I'd expect that removing everyone with resources to fight back against horrific abuse would make the abuse far more horrific, not less.
733.
▲
by
gpm
11mo ago
The baseload talking point has never made sense but storage doesn't make it make less sense. Baseload here is definitionally power sources that can't economically follow the demand curve. They carry the exact same problem that i
734.
▲
by
gpm
1y ago
Rust's foo: Option<&T> is rust's rough equivalent to C++'s const T* foo. The C++ *foo is equivalent to the rust unsafe{ *foo.unwrap_unchecked() }, or in safe code *foo.unwrap() (which changes the undefined behavior
735.
▲
by
gpm
1y ago
Unwrap is used in places where in C++ you would just have undefined behavior. It wouldn't make any more sense to blanket ban it than it would ban ever dereferencing a pointer just in case its null - even if you just checked that it was
736.
▲
by
gpm
1y ago
While I haven't tried leaving the field blank on every credit card form I've come across, I'm certain that at least some of them considered it required. Perhaps its country specific?
737.
▲
by
gpm
1y ago
> I would even pay for it. Is it just me or is it generally the case that to pay for anything on the internet you have to enter credit card information including a phone number.
738.
▲
by
gpm
1y ago
The surfaces you're seeing in the pictures are almost all the "bottom" surface that was printed directly on the build plate. It basically just picks up the texture of the build plate and is otherwise smooth. That's actua
739.
▲
by
gpm
1y ago
Why wouldn't you? Your codebase (if you're a business) exists to make you money, people being able to copy some unknown portions of it without further license if they somehow legally get their hands on a copy of it seems entirel
740.
▲
by
gpm
1y ago
If you count Rc/Arc as garbage collection you should count RAII + The Borrow Checker (i.e. all safe rust) as garbage collection too IMHO. It collects garbage just as automatically - it just does so extremely efficiently. That said I te
741.
▲
by
gpm
1y ago
I don't think Windows keeps gaming if it loses corporate. Valve's very successfully created a PC-like linux based console, has been gently pushing linux PCs, and it has a huge amount of power over the gaming industry. Dedicated ga
742.
▲
by
gpm
1y ago
They've got enough points of presence that they ought to be able to narrow most people down to a reasonably small circle just by speed of light - unless they're intentionally increasing their ping or on some terribly congested net
743.
▲
by
gpm
1y ago
Right, that's the first category, "It's absolutely possible to bork ownership and have multiple thread trample a struct" resulting in undefined behavior.
744.
▲
by
gpm
1y ago
You're not allowed to sponsor the murder of people in other countries just because they won't extradite to your country. If you did this from within the US, the federal government and probably whatever state you live in would righ
745.
▲
by
gpm
1y ago
> It's absolutely possible to bork ownership and have multiple thread trample a struct. This is specifically the one place where go is not memory safe IMO. > It's absolutely possible to compute wrong pointer offsets. In Go?
746.
▲
by
gpm
1y ago
> In science, you go out of your way to control for confounding factors. There's tons of observational science done in a very similar fashion to the article where there is simply no way to control for confounding factors for the sam
747.
▲
by
gpm
1y ago
> How can one possibly square those two pieces of data to point at rust somehow fixing the "memory safety vulns"? Somehow an increase in C++ code led to a decrease in the amount of both "New Memory Unsafe Code" and &q
748.
▲
by
gpm
1y ago
I don't find it surprising, just from barriers to adoption: "Wuffs programs take longer for a programmer to write, as they have to explicitly annotate their programs with proofs of safety" is a hard sell (even if it has obvio
749.
▲
by
gpm
1y ago
Eh, I don't think it's actually one or the other. Google has taken on rewriting some more problematic components in rust. See for example: Binder kernel driver: https://git.kernel.org/pub/scm/linux/k
750.
▲
by
gpm
1y ago
> I think cargo is better than cmake I expect that Google is using neither of these for most of their own code, but rather their own build system (which I think is the same between the languages). I absolutely agree if you aren't Go
More ›