HNHacker News
TopNewBestAskShowJobs

throwaway_bad

514 karma · joined October 2, 2019

submissionscomments
throwaway_bad··on Rxdb: A reactive database where you can subscribe to the result of a query
Same way you scale replication for any server, by sharding and only replicating the shards you care about.

The "shard" could just be that users own feed in this case. Then you get offline for free where user adds a tweet and it appears immediately, replicating back to server when he goes back online. The server replica side will need to be a lot more complicated to deal with broadcasting but I don't see why it won't work.

throwaway_bad··on Rxdb: A reactive database where you can subscribe to the result of a query
Having client state just be a replica of server state solves so many problems I don't understand why the concept never caught on. Pouchdb/couchdb are still the only ones doing it afaik.

Instead we have a bajillion layers of CRUD all in slightly different protocols just to do the same read or write to the database.

throwaway_bad··on قلب: a non-ASCII programming language written in Arabic
Now that I think about it, languages that aren't subject-verb-object probably find OOP insane.

I tried to find an example of this and found a somewhat related article about how Japanese grammar maps nicely onto ruby: https://thoughtbot.com/blog/learning-japanese-the-rubyist-wa...

throwaway_bad··on Google T5 scores 88.9 on SuperGLUE Benchmark, approaching human baseline
> Big neural nets trained with SGD are unlikely to memorize something if they only see it once over the course of one million training steps

I am not so sure about that. Have you seen this thread: https://www.reddit.com/r/MachineLearning/comments/dfky70/dis...

Apparently lots of sentence fragments were memorized in GPT-2 (including real world URLs, entire conversations, username/emails and other PII).

throwaway_bad··on Google T5 scores 88.9 on SuperGLUE Benchmark, approaching human baseline
Twitter summary: https://threadreaderapp.com/thread/1187161460033458177.html
throwaway_bad··on Google T5 scores 88.9 on SuperGLUE Benchmark, approaching human baseline
Andrew Ng has a great summary on the purpose of human level performance: https://www.coursera.org/lecture/machine-learning-projects/w...
throwaway_bad··on Google T5 scores 88.9 on SuperGLUE Benchmark, approaching human baseline
Possibly dumb question: How do you ensure there's no data leakage when benchmarking transfer learning techniques? Is that even a problem anymore when the whole point is to learn "common sense" knowledge?

For example their “Colossal Clean Crawled Corpus” (C4), a dataset consisting of hundreds of gigabytes of clean English text scraped from the web, might contain much of the same information as the benchmark datasets, which I presume is also scraped from the web.

throwaway_bad··on React Concurrent Mode
Yea you're right, I guess there is a distinction between reinventing and reimplementing. The authors even mentioned that concurrent mode is inspired by "double buffering" from graphics.

I am just trying to support the grandparent comment that the current optimization is at the wrong level of abstraction. React is at the level of a "scene graph" (dom). If it's slow, the first technique to reach for should be stuff like "occlusion culling".

throwaway_bad··on React Concurrent Mode
> If your app is architected to have any rendering operation take long enough that it's perceptible to the user, STOP DOING THAT THING DURING RENDERING.

As is tradition, frontend developers are still slowly reinventing the techniques from other fields.

The neat thing about UI is that your end user is a human and a human can't visually process too many items at once on a screen. This means you should never really need to consider more than O(thousands) elements to render either. That should always fit under 16ms.

This has been known to game developers since forever. Don't spend resources on things that won't be displayed. If you are doing too much work that means you aren't culling invisible objects or approximating things at a lower level of detail.

In practice for frontend developers, this just means using stuff like react-virtualized so that even if you have a list of a bajillion objects, only the stuff in the viewport is rendered.

throwaway_bad··on Ask HN: Are there books for mathematics like Feynman's lectures on physics?
It's easy to gain physical intuition because you can often explain one physical phenomenon in terms of another physical phenomenon that you have much more real life experience with.

But with mathematics, "intuitive" analogies are all in terms of other mathematical objects! You can't build intuition if you don't even know what they trying to abstract over.

In that regards, The Princeton Companion to Mathematics is fantastic because it maps out how the different fields of mathematics are interrelated.

throwaway_bad··on React Concurrent Mode
Throwing promises to emulate algebraic effects seems really hacky.

I wonder if React would've needed to go down this path if they were built by a different company.

For example Google/Apple/Microsoft all have huge influence over browser implementations (chrome/safari/edge respectively). They might've been able to push a ECMAScript proposal for proper language support instead.

It's a very clever hack regardless but it only seems necessary because Facebook doesn't have control over the whole stack.

(it does seems like Facebook trying to fix this by building their own React-optimized javascript engine but only for react native on android right now: https://facebook.github.io/react-native/blog/2019/07/17/herm...)

throwaway_bad··on React Concurrent Mode
The clearest demo that communicates what this solves was given when it was announced last year.

That clock animation is pure genius:

https://youtu.be/nLF0n9SACd4?t=473

throwaway_bad··on The Limits of Science
I was really hoping this would be about "Philosophy of Science"[0]

For example in "The Problem of Induction" you can see a bajillion sunrises but can't infer that there will be another. Likewise you can conduct a bajillion controlled experiments and can't really tell if the result will generalize. Worse yet is that the more conditions you control, the less likely it's to generalize. Infamously, clinical trials wanted to control for the variations caused by periods so they only tested on men and it turns out some drugs affect women differently! In general, if you control for everything, you can't say anything about the real world outside of those precise lab controlled conditions.

[0]https://en.wikipedia.org/wiki/Philosophy_of_science

throwaway_bad··on Ask HN: Do we need Google captcha?
Unfortunately anything screen readers can recognize as invisible, a more sophisticated bot can too.
throwaway_bad··on Don't Use VPN Services
Pretty impressive. Every anime I torrented off nyaa.si / horriblesubs was listed.
throwaway_bad··on How to Make a Great Puzzle Game
Oh my god this runs in my browser! There goes my week
throwaway_bad··on The next big thing will start out looking like a toy (2010)
Augmented reality is a great example. Everyone knows that it will become a "Big Thing" in the future. Like why would smartphones be the final form factor of personal computing? Of course there will be something that will dethrone it.

But despite every big company throwing a couple billions at the problem for the last few years (Facebook's $2 billion acquisition of oculus, Google's $500 million investment into Magic Leap, Apple's acquisition of Metaio/ARkit, Microsoft Hololens), all we have are literal toys!

So now you can't talk about AR as a serious subject anymore. People all dismiss it, saying we are still too early. I imagine it's like that for every "toy to big thing" transition.

throwaway_bad··on The invented Chinese names of the 2019 Canadian federal election – ranked
Yea I probably shouldn't have used a quote there. The number ranges from 20% to 50% depending on which part of vancouver you look at. Point is that they aren't a minority there.
throwaway_bad··on The invented Chinese names of the 2019 Canadian federal election – ranked
I would probably assume he's just really into Romance of the Three Kingdoms or other historical dramas where the 司馬 surname is common. Or that his real name is Zimmerman.
throwaway_bad··on AWS Customers Rack Up Hefty Bills for Moving Data
> every other byte of data striped across

I assume you didn't mean that literally because I can't see how that will ever work out in terms of cpu cost. I think breaking it up into blocks like what RAID4/5/6 would be better but will still impact the performance of reads.

The performance of writes is going to be worse. Not because of the parity calculation but because you will be taking the max latency over all the cloud providers.

I can't see people trading off that much performance for better fault tolerance (in a world where S3 guarantees 11 nines) or ease of switching.

throwaway_bad··on The invented Chinese names of the 2019 Canadian federal election – ranked
Vancouver is special since it's popular destination for rich people from hong kong/china to hide their wealth. They buy up a lot of property:

> Chinese investors bought about 70% of free-standing houses on the west side of Vancouver in a six-month period

And 40% of the population is chinese:

> 40% of the residents of a large portion of Southeast Vancouver are Chinese.

https://en.wikipedia.org/wiki/Chinese_Canadians_in_Greater_V...

throwaway_bad··on AWS Customers Rack Up Hefty Bills for Moving Data
> If there's a compelling case for doing it differently, someone should do it and see if it works.

Cloudflare doesn't charge for bandwidth. I always throw cloudflare on top of anything I do, not because I really need a CDN or anything, but because the bandwidth cost would bankrupt me otherwise. The ceo of cloudflare gave the rationale on why they don't charge:

> There’s a fixed cost of setting up those peering arrangements, but, once in place, there’s no incremental cost. That’s why we have similar agreements to Backblaze in place with Google, Microsoft, IBM, Digital Ocean, etc. It’s pretty shameful, actually, that AWS has so far refused. When using Cloudflare, they don’t pay for the bandwidth, and we don’t pay for the Bandwidth, so why are customers paying for the bandwidth. Amazon pretends to be customer-focused. This is a clear example where they’re not.

https://news.ycombinator.com/item?id=20791563

throwaway_bad··on The most successful people are just the luckiest, a new computer model confirms
You work there so you probably have a better idea than I do but they have a terrible reputation externally: https://news.ycombinator.com/item?id=17062782
throwaway_bad··on The most successful people are just the luckiest, a new computer model confirms
It seems kind of asshole to say this but Amazon is considered low-tier at CMU so people don't choose it unless they got rejected from everyone else. =/

I am looking at MIT's salary survey and they have similar ratios: https://capd.mit.edu/sites/default/files/about/files/GSS2017...

throwaway_bad··on The most successful people are just the luckiest, a new computer model confirms
I think it's pretty typical for schools like CMU. Look at their post graduation survey: https://www.cmu.edu/career/documents/2018_one_pagers/scs/1-P...

Out of 170 graduates, 27 went to facebook, 21 went to google, 13 went to microsoft, 6 went to amazon, 2 went to apple, etc. That's basically half the class including a lot of people from the bottom half of the class (the best people I knew usually didn't choose FAAMG and their outcomes were a crapshoot).

throwaway_bad··on Ask HN: What are the most fundamental books on computer science?
I think you're right that you shouldn't learn from the "fundamental" books but there definitely are such a thing as fundamental books.

They are usually hugely influential in their times but have been refined or made easier to digest since. If you care deeply about your field you should read them at some point to see how ideas evolved historically.

English: Shakespeare

Biology: Darwin's Origin of Species

Math: Euclid's Elements

For OP's topic, I'd say Shannon's "A Mathematical Theory of Communication" is up there for computer science.

throwaway_bad··on Internet Exchange Map
xkcd is always relevant: https://xkcd.com/1138/
throwaway_bad··on Show HN: C++ Implementation of the Paper Median Filter in Constant Time
How does max pool deal with this? It seems similar where you rank all the pixel values and take the max (rather than median). The problem with ties still occurs there, no?
throwaway_bad··on The problem with metrics is a big problem for AI
To clarify, I am trying to say that the only purpose of metrics is for humans in a social context. If an AI optimizing for a metric ends up with unintended consequences, that's a human problem. A human has to go in and redefine a new metric to fix it. There's no way other way around it. The human can't anthropomorphize and blame the machine. A machine can't redefine itself because it doesn't understand human values.

So it's important to understand why humans believe in metrics. Humans by default are multi-objective. We don't care about just one or even a few things, we care about a lot of things, all at once, with nobody agreeing on what they are. Identifying the "true direction" we want to go as a collective is impossible. So we pick a good enough direction so everyone can be somewhat aligned. To make it possible to communicate this vision, we compress the world down to few dimensions even though we know that it is absurd. This works fine for humans because our "distributed system" is composed of beings with enough intelligence to notice/alert/convince the rest of the system whenever we are veering off course.

Whenever we program AI with these metrics, we forget that we can't direct them we way we direct our sentient brethrens. Any simple metrics are necessarily doomed to fail because it doesn't have this self aligning property. So ultimately it is the programmer's responsibly to go and realign the system back with human values. If necessary, with some social pressure (hence this article). It doesn't seem like there will be any other way.

throwaway_bad··on The $10m Engineering Problem
Always interesting to see the scale you have to hit before rewriting from one language to another saves money (relative to engineering cost).

With node.js: 800 containers, with each container processing 250 messages per second

With golang: 340 containers, with each container processing 650 messages per second

Say each one of those containers cost $0.02/hr then that's order of $100k/year saved!

Page 1 of 4Next →