Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pitterpatter
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
14 ms
·
91.
▲
by
pitterpatter
7y ago
Devtools are also in standard firefox. The developer edition just includes new features that haven't yet made it to the current release. The chrome analog is Chrome Dev ( https://www.google.com/chrome/dev/ ) Fi
92.
▲
by
pitterpatter
7y ago
In fact, before the current for ... in ... syntax, this is how foreach looping used to be done: do some_array.each |item| { ... }
93.
▲
by
pitterpatter
7y ago
Re: your second example, once upon a time you could write something very similar in Rust: do 5.times { // ... } Where do was just sugar for calling functions that took a closure as the last argument: fn foo(a: A,
94.
▲
by
pitterpatter
8y ago
True, the above comparison might not have been the most scientific :P The Spring 2018 results were run on a much more powerful desktop than the surface pro 3 used for the insider results. Here is the results for the April 2018 Update rerun
95.
▲
by
pitterpatter
8y ago
This bug is fixed in the latest insider builds at least. Using the author's own testing tool: With the Spring 2018 release: F:\tmp>.\ProcessCreatetests.exe Main process pid is 46940. Testing with 1000 descendant proces
96.
▲
by
pitterpatter
10y ago
I blame this twitter thread :P https://twitter.com/Gankro/status/831955401109360640
97.
▲
by
pitterpatter
11y ago
>Except for the minor problem that any IP generated through their work is owned by the university. Some Universities don't automatically claim ownership of any IP you create there.
98.
▲
by
pitterpatter
11y ago
It handles relocations somewhat differently: http://www.mindfruit.co.uk/2012/06/relocations-relocations.h... Basically, it has a new addressing mode so that you can access things relative to the program counter: R
99.
▲
by
pitterpatter
12y ago
The official swift compiler is already LLVM/Clang based.
100.
▲
The story of my childhood or: Rust on the PSP
(fnordig.de)
2 points
by
pitterpatter
12y ago
|
0 comments
101.
▲
by
pitterpatter
12y ago
Yes, LLVM does (mostly) support the PSP as a target. Previously though, one would have to manually modify the rust compiler itself to recognize any new targets and basically fill in a lot of the plumbing for the new target. But thanks to th
102.
▲
Rust Hello World on a PSP
(github.com)
98 points
by
pitterpatter
12y ago
|
17 comments
103.
▲
by
pitterpatter
12y ago
> For instance on Windows there is Structured Exception Handling (SEH) which however is not used by LLVM currently and as such not by Rust. FYI, LLVM does actually support SEH on 64bit windows and Rust does actually make use of it on tha
104.
▲
by
pitterpatter
12y ago
size_of isn't really a function but a compiler intrinsic.
105.
▲
Cargo – Rust Package Manager [Alpha]
(mail.mozilla.org)
6 points
by
pitterpatter
12y ago
|
0 comments
106.
▲
by
pitterpatter
13y ago
The irssi-proxy plugin lets you connect to your current irssi connections via any existing irc client.
107.
▲
by
pitterpatter
13y ago
> Rust UCS4 (last time I checked) Rust chars are 32bit Unicode codepoints. But strings themselves are utf-8. That is the string type, ~str, is basically just ~[u8], a vector of bytes and not ~[char]. `.len()` [O(1)] gives you byte length
108.
▲
by
pitterpatter
13y ago
uh, with firefox you pretty much can.
109.
▲
Rust Minecraft Chat Client
(github.com)
2 points
by
pitterpatter
13y ago
|
0 comments
110.
▲
by
pitterpatter
13y ago
Maybe this will be useful to understanding lifetimes: http://static.rust-lang.org/doc/0.8/tutorial-borrowed-ptr.ht... As for the pointer dereferencing, perhaps putting the type there will make it clearer: [1
111.
▲
by
pitterpatter
13y ago
Changelog: https://github.com/mozilla/rust/blob/master/RELEASES.txt
112.
▲
Rust 0.8 Prerelease Testing
(mail.mozilla.org)
3 points
by
pitterpatter
13y ago
|
2 comments
113.
▲
by
pitterpatter
13y ago
>but I doubt Rust has something like this. Oh, but it does! There's the cond! macro: let computed_key = cond!( (key.len() > self.block_size) { self.zero_pad(self.hash(key).digest) } (key.len() < self.bloc
114.
▲
by
pitterpatter
13y ago
Visiting the demo via http instead of https works. (Though ofcourse they should fix that)
115.
▲
by
pitterpatter
13y ago
Multiple return values is possible with n-tuples. fn addsub(a: int, b: int) -> (int, int) { (a + b, a - b) } ... let (a, b) = addsub(32, 44);
116.
▲
by
pitterpatter
13y ago
Exactly, and if you're so inclined to have those options set in a certain (and don't want to do so through some other addon like NoScript) you can set it in about:config.
117.
▲
by
pitterpatter
13y ago
> It feels like OSX will be on Mavericks before the Lion scroll bars are supported in Firefox. I use Nightly so I've had the new scroll bars for quite a while now, so I'm inclined to believe they'll be landing sooner rathe