Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
adwn
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
48 ms
·
511.
▲
by
adwn
5y ago
I'm curious to hear where you've seen Rust not scaling to large teams or codebases?
512.
▲
by
adwn
5y ago
> Rusts multiple attempts to implement strings What are you referring to? Rust's str type is the only one I know about [1], and it's really good as a general purpose string representation. Were there other string implementa
513.
▲
by
adwn
5y ago
> You could invest your time into learning that finite list, or you could invest your time into learning a new language with a long list of _unknown_ issues yet to be discovered That's a bad argument, because it could be used agai
514.
▲
by
adwn
5y ago
There's nothing fast about zero-terminated strings. In fact, many operations on them are much slower than sane alternatives, because they first have to scan the entire string to compute its length. You can't even create a temporar
515.
▲
by
adwn
5y ago
That entire page can basically be summarized as "The GNU components in Linux distributions are becoming less significant each year, but please call it the 'GNU system' anyway because we like that name better."
516.
▲
by
adwn
5y ago
> User space filesystem and network implementations still need access to the hardware. No, they don't. Filesystems don't need access to the hardware, that part is handled by the block device driver. Network stacks (e.g., TCP&
517.
▲
by
adwn
5y ago
Rust: let foo: serde_json::Value = serde_json::from_str(arbitraryJsonString)?; There, just as powerful [1]. But you know what's even more powerful? After you've done your dynamic checks, you can do this on the entire JSON
518.
▲
by
adwn
5y ago
My hunch is that for most consumers, there's just no point in getting anything above 1 GbE today, even for their central switch. 1 Gbit/s is more than enough for 5x 4K video streams from their NAS, plus a very fast Internet connec
519.
▲
by
adwn
5y ago
> When companies are cheaping out on labor and competing with other companies doing the same it is artificially lowering prices at the expense of the workers. If companies can't afford higher wages because it would make their prod
520.
▲
by
adwn
5y ago
> I've got some SQLite-backed business services that can transact an entire user request (which involves many database interactions) and then already be returning a final HTTP response in the amount of time it takes PostgreSQL to c
521.
▲
by
adwn
5y ago
1. I think we're assigning different meanings to "out of one's control" : If you can "have a plan for it", as you say, than I wouldn't call that "out of your control", even if it's not your
522.
▲
by
adwn
5y ago
> take responsibility for things, sometimes even things that are outside your control Although this might sometimes be a good idea for diplomatic reasons, it feels just as wrong and "bullshitty" as accepting praise for thin
523.
▲
by
adwn
5y ago
If you copy&paste an object {"a": 5, "b": 6} or an array [1, 2, 3] from one JSON file to another (or from one location to another in the same file), then the structure of the result is unambiguously determined by the
524.
▲
by
adwn
5y ago
Why is it so often "artists" that receive this kind of public funding? Why not open source developers? Hear me out, this isn't the "my hobbies are more important than your hobbies" kind of argument. Art is almost
525.
▲
by
adwn
5y ago
> I just use linters now and presto literally all of my problems ever with YAML gone. Copy a valid fragment of YAML from one file into another file, run the linter, and presto! garbage. Whitespace-indented formats are poison for auto
526.
▲
by
adwn
5y ago
I'm not feeling "attacked". I'm trying to help you understand that the argument "feature X might be used in a way that could lead to a incorrect behavior" on its own isn't enough to warrant exclusion of
527.
▲
by
adwn
5y ago
> You want to make the more attractive feature the safer feature to draw people away from danger, not toward it. There's an entire world of software which does something else than creating SQL queries or HTML pages. Rust is a ge
528.
▲
by
adwn
5y ago
Although I strongly disagree with pron's point, format strings aren't limited to printing them to stdout. There's format!() , for example, which returns a String for further use, and you could even write a sql_query!() mac
529.
▲
by
adwn
5y ago
You don't need format strings to create vulnerable queries. If you can't use them, this code: let query = format!("SELECT name FROM users WHERE id = {}", user_id); can easily be replaced by this: let mut q
530.
▲
by
adwn
5y ago
You're still misunderstanding the purpose of format strings. They're not a templating engine for SQL, HTML, whatever. There's nothing to sanitize.
531.
▲
by
adwn
5y ago
How is that related? The new format strings must be static literals because they're decoded at compile time. It is impossible to use them for any kind of code injection.
532.
▲
by
adwn
5y ago
> To really learn about the innerworkings of the CPU, you must read a book about...the innerworkings of a CPU. But C doesn't map to the "inner workings of the CPU", it maps to a certain abstract machine, defined in the C
533.
▲
by
adwn
5y ago
I accept that Haskell is that language for some. As for me, I tried Haskell twice , and gave up each time: 1) reasoning about performance is just too difficult (due to lazy evaluation) 2) the community seems too focused on providing ever m
534.
▲
by
adwn
5y ago
> Preaching about safety in a globally inter-connected world devoid of privacy. What kind of logic is that? "Because Google sells your data, I don't have to worry about memory safety bugs in my code." Come on.
535.
▲
by
adwn
5y ago
For most of my projects, I would switch from Rust to a GC language in a heartbeat, provided that it 1) is as safe and as fast as Rust, or at most 1.5x slower 2) offers "fearless concurrency" and easy, safe, and efficient paralle
536.
▲
by
adwn
5y ago
> something as simple and easy to learn as C C is neither simple nor easy to learn. Incorrect and buggy C is simple and easy to learn. If you think C is "simple" and "easy to learn", your C code is almost certainl
537.
▲
by
adwn
5y ago
> Just physically moving that amount of cash is difficult and takes time. ...that's why it isn't moved physically ?
538.
▲
by
adwn
5y ago
> Is the situation for Rust different than as described here: https://github.com/rust-lang/rfcs/pull/208 In short: yes. The wording in that quote is imprecise: I suspect that by 'attributes' ,
539.
▲
by
adwn
5y ago
> very minimal/low-feature language, that’s fairly low level, even if that means somewhat more awkward or mistake-prone code Do you think this is a good trade-off? If you're using a tool every day or at least regularly, the o
540.
▲
by
adwn
5y ago
> Well anyway, mostly it just sounds like the typical Rust enthusiast "How dare you have a strongly-held opinion that differs from my strongly-held opinion" To the contrary, it sounds like "Here's a solution that gi
More ›