Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mbrubeck
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
28 ms
·
211.
▲
by
mbrubeck
11y ago
Rust has used jemalloc for a long time (since Rust 0.8, I think). The new feature is the ability to configure it to use the system allocator instead. But whichever malloc implementation it uses, it still relies on the kernel. For example,
212.
▲
by
mbrubeck
11y ago
Yes. You can see the code here: https://dxr.mozilla.org/mozilla-central/source/devtools/clie... (I think there are other parts of the developer tools that also use React and Redux, like the debugger.)
213.
▲
by
mbrubeck
11y ago
The Pocket code is being moved to a bundled add-on: https://bugzilla.mozilla.org/show_bug.cgi?id=1215694
214.
▲
by
mbrubeck
11y ago
That's correct, the Go toolchain was originally written in C, and translated from C to Go: https://golang.org/doc/go1.5#c And of course Go's designers include some of the designers of C (well, its predecessor
215.
▲
by
mbrubeck
11y ago
They tested “345 hot dogs and sausages,” and found 2% of them tested positive for human DNA. That's only 6–8 contaminated hot dogs. If 2/3 of those were vegetarian, that’s just 4 hot dogs. I wouldn't jump to any conclusion
216.
▲
Scott and Scurvy (2010)
(idlewords.com)
51 points
by
mbrubeck
11y ago
|
6 comments
217.
▲
Scott and Scurvy (2010)
(idlewords.com)
1 points
by
mbrubeck
11y ago
|
0 comments
218.
▲
by
mbrubeck
11y ago
They're giving all the Kickstarter backers who chose Pebble Time Steel the option of exchanging for a Pebble Time Round at no extra cost.
219.
▲
by
mbrubeck
11y ago
In general it's possible to write Rust code that is competitive in speed with C and C++. Some safety features like bounds checking do have a small performance cost, though in typical performance-sensitive code it is on the order of 1–
220.
▲
by
mbrubeck
11y ago
This previous thread has links to more detail: https://news.ycombinator.com/item?id=10021376
221.
▲
The Verge's web sucks
(blog.lmorchard.com)
345 points
by
mbrubeck
11y ago
|
132 comments
222.
▲
by
mbrubeck
11y ago
Web browsers use bloom filters for filtering out CSS rules during selector matching. Here's the implementation of this in Servo (the project I work on): https://github.com/servo/servo/pull/3212 I believ
223.
▲
by
mbrubeck
11y ago
https://vanhoefm.github.io/rc4nomore/ is a valid HTTPS address for the site.
224.
▲
by
mbrubeck
11y ago
The most common use case would be interop with C libraries that use untagged unions. This is a significant hassle when writing C bindings in Rust today.
225.
▲
by
mbrubeck
11y ago
Firefox does auto-download an OpenH264 binary on systems without a supported H.264 decoder library (if this feature is enabled, which it isn't currently in Debian's iceweasel packages). But note that OpenH264 is free software ava
226.
▲
by
mbrubeck
11y ago
Yes, it's offering Firefox 8.0.1 to me also. Maybe that's the latest version they've "mirrored" for Linux?
227.
▲
by
mbrubeck
11y ago
The slowest part is LLVM. (You can pass "-Z time-passes" to rustc to get detailed timing info.) This isn't just an "LLVM is slow" problem, though. It's also a "rustc generates extremely verbose LLVM IR&q
228.
▲
by
mbrubeck
11y ago
Back in 1998 the "Java Ring" from Sun Microsystems was designed for this purpose, and though it never became a mass-market product it got a fair amount of hype when it was new: http://www.javaworld.com/article/
229.
▲
by
mbrubeck
11y ago
It would be great if this could also show diffs to previous versions!
230.
▲
by
mbrubeck
11y ago
Related tip: If you click the arrow that appears when hovering over any of the example code in the Rust book [1] or other Rust documentation, it will open the example in the playpen. [1]: http://doc.rust-lang.org/book/
231.
▲
by
mbrubeck
11y ago
Yes, it does, though for slightly different reasons. Mainly, it can break pages with first-party scripts that depend on blocked third-party scripts. I've encountered and reported a few of these while testing the feature.
232.
▲
by
mbrubeck
11y ago
I agree. I personally found these two blog posts to be useful introductions to ownership and borrowing: http://blog.skylight.io/rust-means-never-having-to-close-a-s... http://arthurtw.github.io/2014/11&
233.
▲
by
mbrubeck
11y ago
This should be doable for well-written trackers like Google Analytics that use script tags with the "async" attribute. In fact, those are probably already likely to load after the main content. For ads or trackers that are embedde
234.
▲
by
mbrubeck
11y ago
And in case anyone is wondering, turning on Firefox's experimental Tracking Protection feature does block Google Analytics on Mozilla's own web site.
235.
▲
by
mbrubeck
11y ago
The two projects are independent; work on Electrolysis (multi-process Firefox) actually predates Servo. Old versions of mobile Firefox used Electrolysis, for example. But converting desktop Firefox and supporting its whole add-on ecosyste
236.
▲
by
mbrubeck
11y ago
Currently, Firefox Nightly uses one process for the browser UI and a separate process for web content. However, one web content process is shared by all tabs. So slow JavaScript in one tab won't block the browser UI, but it will bloc
237.
▲
by
mbrubeck
11y ago
In C the order of declaration and destruction doesn't matter as much, because C has no destructors. C++ would have similar issues, though.
238.
▲
by
mbrubeck
11y ago
Doug McIlroy (the inventor of Unix pipes) included this in his description of "the Unix philosophy": > Write programs to handle text streams, because that is a universal interface. ESR expanded on this in the "Unix Philo
239.
▲
by
mbrubeck
11y ago
> "[Define some quirky DSL hackery] [Implement a bunch of code using it]" This is the use case for macros, and Rust macros are at least as good as C macros for my common use cases. It's true they are more limited than Sc
240.
▲
by
mbrubeck
11y ago
Well, you can still have your syntax extension live in the same repo as the rest of your code. For example, the Servo repo has a "components/plugins" directory that contains our custom lints and other extensions. And other
More ›