Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ben0x539
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
69 ms
·
961.
▲
by
ben0x539
12y ago
I assumed the author means 300 legit, cleaned up commits.
962.
▲
by
ben0x539
12y ago
It's also a good argument for certain security-focused DNS providers to block domains that are used to serve ads, at least on an opt-in basis if not by default for settings like public wifi.
963.
▲
by
ben0x539
12y ago
Good call. "Leader" and "follower" may not be the most precise, descriptive terms here, but then neither were "master"/"slave" and people got used to that. Edit: "Primary"/"re
964.
▲
by
ben0x539
12y ago
How hard can it be to disable upload in bittorrent clients and be a bad but considerably more legal torrent citizen?
965.
▲
by
ben0x539
12y ago
hey guys i think haskell is a lisp too
966.
▲
by
ben0x539
12y ago
Is being a homeowner really the standard situation in SF one generation back?
967.
▲
by
ben0x539
12y ago
You could argue that we shouldn't have nullable raw pointers at all and build the Option type into the language, but otherwise I don't think pattern matching on nullable pointers buys you much since you don't need to extract
968.
▲
Computer-related horror stories, folklore and anecdotes (1990)
(speedygrl.com)
78 points
by
ben0x539
12y ago
|
10 comments
969.
▲
by
ben0x539
12y ago
This works for me right now on firefox 29.
970.
▲
by
ben0x539
12y ago
Well, it doesn't mutate the `errors` variable. `errors = &mut someothervar;` would be illegal there. It dereferences a pointer (that itself is immutable, this doesn't matter as long as it's unique) to a mutable value and
971.
▲
by
ben0x539
12y ago
> Now, if they're doing X -> Y -> X -> Y that would be cause for concern. and even then I think it would be defensible since different choices for one aspect might make sense given a different rest of the language.
972.
▲
by
ben0x539
12y ago
Is `rustc --opt-level 3 --emit ir` not right?
973.
▲
by
ben0x539
12y ago
The example in the readme: http://ix.io/cdR Emitted llvm ir doesn't look much more compact either: http://ix.io/cdS Clearly there is still plenty of room for optimizing brainfuck compilers!
974.
▲
by
ben0x539
12y ago
Rust has builtin types &'static str for strings that live for the entire runtime of the program and ~str for strings that live in dynamically managed heap memory (from the more general ~T for T that live there with T=str). If the f
975.
▲
by
ben0x539
12y ago
References are non-owning pointers though. There's plenty of conceptual space for non-owning smartpointers too.
976.
▲
by
ben0x539
12y ago
I'm usually pretty happy that ~T works just like T in terms of ownership and mutability and move-semantics and whatnot. When would you want to unlink that?
977.
▲
by
ben0x539
12y ago
You can have references to values on the heap or on the stack, and to whole objects or to single fields in a struct/enum/tuple/vector (though that might freeze the whole containing object).
978.
▲
by
ben0x539
13y ago
I don't think that's the best conclusion to draw. I'm taking that to mean that the oppressed can't just wait for the oppressors to wake up one day and realize they've been wrong all along. But I don't think it
979.
▲
by
ben0x539
13y ago
What ideologically neutral lingo do you propose?
980.
▲
by
ben0x539
13y ago
I think you're ascribing too much malice to academic language. Someone with privilege isn't seen as "inherently flawed", it just describes their position in society (particularly relative to someone else, it's not r
981.
▲
by
ben0x539
13y ago
You don't need to invoke the strawman of Tumblr to conceptualize that at a first-order guess the dreadful SJW (what a terrible insult!) who's been coping with racism/sexism/homophobia/ableism for most of their life
982.
▲
by
ben0x539
13y ago
I can't believe people actually have this understanding of kickstarter. Maybe I've been living in a bubble, but my understanding has always been that you are basically preordering something, insofar as you're entering a contr
983.
▲
by
ben0x539
13y ago
Gee, with this few sigils remaining, Rust is going to have a very hard time finding widespread adoption, since it won't stand out from competing languages!
984.
▲
by
ben0x539
13y ago
Features-wise, C++ probably subsumes a lot of languages, so from a certain perspective, everything else looks like a weird syntax for a subset of C++. And it's true that Rust is edging closer and closer to C++ in some ways. It certainl
985.
▲
by
ben0x539
13y ago
So what is an acceptable percentage of false positives for criminal convictions resulting in incarcerations? From "It is better that ten guilty persons escape than that one innocent suffer" I'm guessing it's at most 10%,
986.
▲
by
ben0x539
13y ago
Dereference a NULL pointer and use the result to initialize a reference. Sure, it's undefined behavior, but so are all the problems that result from NULL pointers, and in practice it doesn't crash until you "dereference"
987.
▲
by
ben0x539
13y ago
Thanks for taking the time to write out your observations! :) Some comments (speaking as someone who has followed rust for a while, but isn't heavily involved): In general, rust wants to enable people to write code with unsurprising pe
988.
▲
by
ben0x539
13y ago
You can probably cycle through a couple million milliseconds in the various timestamps involved to get a large selection of hashes to pick from without making your commit stand out.
989.
▲
by
ben0x539
13y ago
That's what I meant re: no_std, yeah. Would it be possible to lazily start libnative if a call into the runtime is made but there's none there, but then keep it running for that thread for subsequent calls?
990.
▲
by
ben0x539
13y ago
If you just link some rust code into a C program without #[no_std], once you call anything that makes use of the runtime, it will abort with a lovecraftian error message and a stack trace because it asserts that the runtime exists and has p
More ›