Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
oleganza
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
22 ms
·
181.
▲
by
oleganza
6y ago
Rust has an operator for "re-throwing" error: question mark. fn foo() -> Result<int, SomeError> { let result = bar()?; let result2 = baz()?; let result3 = bazz()?; Ok(result + result2 + result3)
182.
▲
by
oleganza
6y ago
another offence is using sigma (∑) as a stylized "E" or uppercase lambda (Λ) as "A" (see NASA logo).
183.
▲
by
oleganza
6y ago
Bitcoin is being used by everyone who held long enough to see over 5x return. Both as savings account, an investment, and a checking account for occasional purchases. It is also being used by all sorts of international freelancers being p
184.
▲
by
oleganza
6y ago
Interestingly, past performance of the last 9 years did not change much in terms of perception: 1. People who believe that Bitcoin can eat the world, do not care when it goes up and down. Periodic rallies are unsurprising and upper limit is
185.
▲
by
oleganza
6y ago
Lol. Except no Russian ever would say "drovorub". It's either "drovokol" (firewood + chop) or "lesorub" (wood + cut). Seems like only Ukranians say "drovorub".
186.
▲
by
oleganza
6y ago
Hopefully proper implementation of CPFP (child-pays-for-parent) on the miners' side and in the wallets would bring fully decentralized solution to the problem. So you could simply "bump" your transaction by sending a child on
187.
▲
by
oleganza
6y ago
A few notes to those who are not familiar with how Bitcoin works: 1. If you think tx A appeared before B, that's not necessarily the order a particular miner saw them. The whole point of the mining is to agree on order. 2. That said, a
188.
▲
by
oleganza
6y ago
They loan up to 30% of the BTC value. So as long as it does not crash more than 70%, everything's fine [1]. [1] Which happened every time after the peak of a big bitcoin run-up ;-)
189.
▲
by
oleganza
6y ago
isn't talking about 100K/coin in 2017-2020 is as unrealistic as talking about 10K/coin in 2013-2015?
190.
▲
by
oleganza
6y ago
Because real Windows 95/98 had BSOD every 10th click or so and people could not get work done at all. Funnily, in last few months on macOS Catalina i've got more kernel panics than in prior 13 years on Mac and 8 years of Windows c
191.
▲
by
oleganza
6y ago
they use "M" for Motion coprocessors: https://en.wikipedia.org/wiki/Apple_motion_coprocessors
192.
▲
by
oleganza
7y ago
I disagree that there's waste. People do not participate in winner-takes-all contests very often. When you have 10 competing approaches, you still try to have a plan B and a plan C for when you are not finding the best-for-everyone sol
193.
▲
by
oleganza
7y ago
Wait, it's a double pay. Here are saner options for "gov pays": 1. Gov pays employees for missed days, biz closes for unpaid vacations. 2. Gov pays biz for missed revenue, biz extends paid vacations. Also don't forget th
194.
▲
by
oleganza
7y ago
"Merchants at Macy's can only sell at Macy's". There are many options for you as an app developer. You can enjoy the scale and tooling provided by Apple, at one cost. Or you can write apps for any other computer at some
195.
▲
by
oleganza
7y ago
Here is updated link to the original article on MPC by Cathie Yun: https://medium.com/@cathieyun/bulletproof-multi-party-comput...
196.
▲
by
oleganza
7y ago
You can do session types already in stable Rust without const generics. Each "enum variant" can be its own separate type, and such types can only be instantiated by a method on the type representing the previous state, which also
197.
▲
by
oleganza
7y ago
> figuring out process that are repeatable and result in high velocity and code quality, but I'd imagine that this is what an organization like Google is good at! Seems like Go is manifestation of such process. Because something lik
198.
▲
by
oleganza
7y ago
I recommend scrolling down to Babylonokia.
199.
▲
by
oleganza
8y ago
To the downvoters: I moved to SF/BA 3 years ago after living 8 years in Paris (France) and before that 20 years in St. Petersburg (Russia). There is noticeably more culture and diversity in both Paris and SPb than in SF/BA.
200.
▲
by
oleganza
8y ago
I'm using `.ok_or(SomeError)?` which converts Option into Result and opens Ok() for the rest of the scope, short-circuiting on Err(). I know about Swift's `guard` statement, but I never had a case yet when I didn't want to re
201.
▲
by
oleganza
8y ago
If your type system is powerful enough (like in Rust), then you can use it to express relations in your problem domain and have compiler enforce them for you before the code even runs. Example: https://blog.chain.com/bulletp
202.
▲
by
oleganza
8y ago
"Pixel-accurate" might be an obsolete term today when you have 9 or more pixels where previously there was 1. (I know, that isn't what you meant ;-) See how Autocad was using a command line for ages to implement precise contr
203.
▲
by
oleganza
8y ago
After recently (1 year) learning Rust I noticed that Rust teaches about low-level CS concepts of passing by value vs passing by pointer a lot better than C. Because you not just have references and values, but also have to think about riche
204.
▲
by
oleganza
8y ago
Because, contrary to what the OP is saying, writing normal Rust is actually easy and straightforward. So you don't have to "box everything" by default. You only need that when you do some asynchronous work via generic interfa
205.
▲
by
oleganza
8y ago
A team of three people including me have used Rust _daily_ for almost a year now for at Chain[1]. Rust is _by far_ much easier to use than C or C++ and lets us get things done with clear design, record-breaking performance[2] and utmost saf
206.
▲
by
oleganza
8y ago
Considering that US is getting into debt on an accelerated schedule and runs wars all over the world non-stop since WW2, and has biggest military budget, and otherwise resembles the roman empire at its peak, do you think that musical chairs
207.
▲
by
oleganza
8y ago
Bitcoin does not maintain the higher value due to "more gamblers", it only has value due to "more holders". Gamblers can come and go and affect only the volatility. But people who stay and hold for years and sell only a
208.
▲
by
oleganza
8y ago
Bitcoin has been through at least 3-4 major "run ups" already. Those who do not look at the log chart think that "this time it's different" and Bitcoin will surely die for good. Later it'll crash from $250K to
209.
▲
by
oleganza
8y ago
So you are saying, fractional reserve, paper money indistinguishable from IOUs and subsequent credit expansion blessed and coordinated at the federal level (with creation of the Fed) are totally not among the reasons that caused market dist
210.
▲
by
oleganza
8y ago
(1) BTC _always_ goes up. It did not annihilate after 4 giant bubbles with dramatic corrections. Only people with strong irrational denial who finally buy during the maximum frenzy have to wait a couple of years to return to black. Everyone
More ›