Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
killercup
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
killercup
9y ago
Or (American) Fuzzy Loop
32.
▲
by
killercup
9y ago
Please reformat your comment so it's more readable. Adding 4 spaces in front of a line will make it monospace.
33.
▲
by
killercup
9y ago
Yeah, that's something I always forget about when talking to people from the US: I don't have any student loans. A semester at a university in Germany costs around 250€ (plus housing and food), so it's hard to get to a point
34.
▲
by
killercup
9y ago
Just a heads up: The numbers for Germany on that page include all social security contributions, including health insurance (4.7k€) and pension contributions (6k€). (Not sure if you accounted for these in your number for Maryland.)
35.
▲
by
killercup
9y ago
Absolutely, yeah. Having a real linker will help with that as well. Until then, you can also compile with [profile.release] opt-level = "s" (i.e., optimizing for size), to get it down to 23kB gzipped.
36.
▲
by
killercup
9y ago
This Rust code [1] heap allocates some things (e.g., a string with `String::from`), and results in this [2] WASM file, which is 65kB, or 25kB after `gzip -9`. [1]: https://github.com/killercup/wasm-experiments/blob
37.
▲
by
killercup
9y ago
Yes, once [1] lands, you can add it with `rustup target add wasm32-unknown-unknown` and then you can `cargo build --target=wasm32-unknown-unknown`. You should note that it's not as simple as that, though. Depending on the context you w
38.
▲
by
killercup
9y ago
There's a difference between having numbers and having specific numbers to commit to… If you want raw numbers, some are tracked at http://perf.rust-lang.org Also, incremental compilation is making very good progress. More f
39.
▲
by
killercup
9y ago
You can write Rust in a quite functional matter, but as a language it works quite differently from Haskell or Scala. There's been a lot of discussion [1] around extending the type system to support something akin to higher-kinded types
40.
▲
by
killercup
9y ago
Good question! It was merged quite close to the release, so it's hard to guess if it landed in beta already. So, let's have a look at [1]! And yep, it's in the beta branch. This means it's in 1.23, which'll be relea
41.
▲
by
killercup
9y ago
I'm a big fan of doing fancy things on CI, so I'm always looking for cool ideas there. This talk seems to mostly be about tooling around dependencies, though, so your comparison to Rust is interesting: Rust's cargo is all-aro
42.
▲
by
killercup
9y ago
From https://wiki.archlinux.org/index.php/systemd-timesyncd : > In contrast to NTP implementations such as chrony or the NTP reference server [systemd-timesyncd] only implements a client side, and does not bother wi
43.
▲
by
killercup
9y ago
There are two NTP parsers already if you want to get started: https://crates.io/search?q=ntp
44.
▲
by
killercup
9y ago
I would assume because their VM/bytecode version is very fast at rendering updates and smaller in size than a "represent the bytecode as JS" version.
45.
▲
by
killercup
9y ago
Interestingly, just yesterday this was trending on HN: https://shitcoin.com/storj-not-a-dropbox-killer-1a9f27983d70
46.
▲
by
killercup
9y ago
Entirely possible: The paper's author has actually given lectures on game theory.
47.
▲
by
killercup
9y ago
It's funny that Lidl, the store in the picture at the top of the article, is one of the stores I always pay with debit card in Germany. They have great NFC support and don't give a damn if I pay my 79¢ bread with card.
48.
▲
by
killercup
9y ago
Yes, I learned about the Weimarer Republik and it's economic issues in school in Germany. (I guess it was in 8th or 9th grade and that history class was mandatory.)
49.
▲
by
killercup
9y ago
There are some details in https://github.com/diesel-rs/diesel/pull/747
50.
▲
by
killercup
9y ago
It's currently dependent on implementing traits for very large tuples, so you could argue it's a language feature we are waiting for (cf. open RFC #1935 [1]). (There was a PR on Diesel to use HLists but it's no longer pursuit
51.
▲
by
killercup
9y ago
If the compiler gives you an error with a suggestion "You probably need to add `extern crate foo;`" (and it already does in some cases), RLS (i.e., your editor plugin) will be able to automatically add it for you (soon™).
52.
▲
by
killercup
9y ago
That was actually specific to the IE 5.5 feature set and that era's Microsoft in general. Microsoft has been doing some amazing stuff in the last years, with many of them being open source and community-driven.
53.
▲
by
killercup
9y ago
https://github.com/dflemstr/rq seems to be something like that
54.
▲
by
killercup
9y ago
Yes. They seem to mean "Rails-style translation files that happen to be in YAML format" when they say "YAML".
55.
▲
by
killercup
9y ago
I don't know about general-purpose, but I've seen Prolog implementations for specific logic problems. Most recently, chalk [1], a Prolog interpreter designed to be used in the Rust compiler's trait system. So I wouldn't
56.
▲
by
killercup
9y ago
There are some crates that add a derive for errors, but most people tend to use error-chain or quick-error. Both give you the boilerplate pretty much for free, with various other advantages. E.g., using error-chain, you can just write the a
57.
▲
by
killercup
9y ago
Very nice: > Zero-copy deserialization > […] The semantics of Rust guarantee that the input data outlives the period during which the output struct is in scope, meaning it is impossible to have dangling pointer errors as a result of l
58.
▲
by
killercup
9y ago
I know many German companies require you to store data on servers also located in Germany. (But I have no idea if it's similar in other countries.)
59.
▲
by
killercup
9y ago
Plugins don't run on the UI thread IIRC
60.
▲
by
killercup
10y ago
One post about how you actually rewrote a thing in Rust (like ripgrep or exa) is worth 50 that suggest this general idea.
More ›