Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mbrubeck
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
42 ms
·
151.
▲
by
mbrubeck
9y ago
And if you are willing to depend on Rust code, there's also a C++ symbol demangler written in Rust... :) http://fitzgeraldnick.com/2017/02/22/cpp-demangle.html
152.
▲
Elon Musk's Tesla will eventually crash – and scientists think they know where
(businessinsider.com)
2 points
by
mbrubeck
9y ago
|
1 comments
153.
▲
by
mbrubeck
9y ago
The blog post by nikomatsakis describing the specialization breakthrough has now been published: http://smallcultfollowing.com/babysteps/blog/2018/02/09/maxi...
154.
▲
by
mbrubeck
9y ago
And, as a bonus, there's the other URL standard, which describes what browsers actually do: https://url.spec.whatwg.org/
155.
▲
by
mbrubeck
9y ago
You can go to "about:crashes" to get some more information about reported crashes. If you open a crash report and click the "Bugzilla" tab, you can find out if a bug is on file for that specific stack trace.
156.
▲
by
mbrubeck
9y ago
The Seattle metro area is 15th in size on that chart; it's much lower than (44th) that if you sort by growth rate. By absolute growth (which isn't in the chart, so I had to copy the data into a spreadsheet) it is 9th: M
157.
▲
by
mbrubeck
9y ago
Use string_view, but beware of use-after-free bugs like https://github.com/isocpp/CppCoreGuidelines/issues/1038
158.
▲
by
mbrubeck
9y ago
There are a couple of Native-owned food trucks in my area serving frybread[1] and other foods. [1]: https://en.wikipedia.org/wiki/Frybread
159.
▲
by
mbrubeck
9y ago
Uridium and Paradroid are included, at least.
160.
▲
by
mbrubeck
9y ago
Hi, I'm a Servo developer who worked on some of the Rust code that's in Firefox. Calls between C++ and Rust code in Firefox all go through "extern C" functions. Some of the code involves reference-counted smart pointer
161.
▲
by
mbrubeck
9y ago
In a web browser, typically the layout engine generates a "display list" which is a list of drawing commands that includes all of the rectangles, borders, text, etc. It hands the display list to a graphics engine to be rasterized
162.
▲
by
mbrubeck
9y ago
A simple but wrong proof of "P = NP" is easier to write in some ways, since you "just" need to provide a single algorithm for one NP-hard problem, and show that it runs in polynomial time. It looks like many or most of
163.
▲
Rust and CSV parsing tutorial
(blog.burntsushi.net)
16 points
by
mbrubeck
9y ago
|
0 comments
164.
▲
by
mbrubeck
9y ago
And the initialization needs to conditionally throw an exception based on user input.
165.
▲
by
mbrubeck
9y ago
It is possible that adding two str slices like ("a" + "b") could be implemented in the future to produce a new owned String, but there is a technical obstacle to doing this in the near term: https://www.reddit
166.
▲
by
mbrubeck
9y ago
Both Mastodon and GNU social are implementations of the OStatus suite of protocols.
167.
▲
by
mbrubeck
10y ago
And a little bit of Rust, too! https://github.com/wireapp/wire-server/tree/master/libs/libz...
168.
▲
by
mbrubeck
10y ago
Further update: I now have a Rust program that is 100% safe code and is also faster than any of the unsafe programs (including the C and C++ entries): https://github.com/TeXitoi/benchmarksgame-rs/pull/55
169.
▲
by
mbrubeck
10y ago
As an update, this pull request now removes most of the unsafe code: https://github.com/TeXitoi/benchmarksgame-rs/pull/46
170.
▲
by
mbrubeck
10y ago
> Is burntsushi's Rust implementation of memchr notably slower than libc's? Not as far as I know. A lot of this benchmarksgame code has evolved slowly over time and hasn't been cleaned up yet to use "modern" cr
171.
▲
by
mbrubeck
10y ago
For what it's worth, this alternate implementation has only one line of unsafe code (a call to the libc "memchr" function) and is only 9% slower than the fastest unsafe version: https://github.com/mbrubeck
172.
▲
by
mbrubeck
10y ago
Note that in many of the other benchmarks, the fastest Java program takes 2x to 4x longer than the fastest C program. Still not bad! But knucleotide shows Java in a better light than most: http://benchmarksgame.alioth.debian.or
173.
▲
by
mbrubeck
10y ago
Oh, that's a good idea. (It's unfortunate that neither my code nor yours is portable to non-Unix platforms like Windows.) UPDATE: Pushed a commit to my latest PR to replace the unsafe `File::from_raw_fd` with your `File::open`. T
174.
▲
by
mbrubeck
10y ago
The first-place Rust program uses this very simple low-security hash function: impl Hasher for NaiveHasher { fn write_u64(&mut self, i: u64) { self.0 = i ^ i >> 7; } } The second-place C pr
175.
▲
by
mbrubeck
10y ago
In other Rust/benchmarksgame news, I just submitted a simple fix to the Rust program for "reverse-complement" that makes it faster than the fastest C++ program, on my computer. The old version was spending 2/3 of its ti
176.
▲
by
mbrubeck
10y ago
And it's not right. Rust programs can use epoll directly or through abstractions like mio and tokio. Thread-per-connection is the simplest way to do concurrent networking in Rust using only libstd, but it's not the way that most R
177.
▲
by
mbrubeck
10y ago
But there are some crates like https://crates.io/crates/typenum that implement type-level integers on top of the Rust type system, and quite a few other crates that then use these for things like array operations...
178.
▲
by
mbrubeck
10y ago
You can sign in to a Firefox Account to sync your bookmarks, passwords, history, etc.: https://www.mozilla.org/firefox/accounts/
179.
▲
by
mbrubeck
10y ago
`#[no_mangle]` is currently a bit overloaded; there's discussion of whether this is correct or not: https://internals.rust-lang.org/t/precise-semantics-of-no-ma...
180.
▲
by
mbrubeck
10y ago
Almost all changes are effectively "staged" like this whether intentionally or not, because people upgrade at different times, and some fail to get updates completely. Making it easy to figure out depends more on writing clear er
More ›