Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
peterhunt
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
91.
▲
Dead ends of information technology
(github.com)
46 points
by
peterhunt
5y ago
|
70 comments
92.
▲
by
peterhunt
5y ago
Intermingling business and presentation logic is fine - even preferred - when they are tightly coupled. Lots of “business logic” is actually just presentation logic anyway. I don’t think the JS community is going to make the same mistakes R
93.
▲
Facebook whistleblower warns ‘dangerous’ encryption will aid espionage
(telegraph.co.uk)
4 points
by
peterhunt
5y ago
|
4 comments
94.
▲
by
peterhunt
5y ago
1. Buy some bowflex adjustable dumbbells and put them next to your desk. You can almost do a complete full body workout with them in minutes, even without a bench. 2. If it’s weight loss you’re after, diet is way more impactful than exercis
95.
▲
by
peterhunt
5y ago
Well, this post is in the context of an e2e encrypted DB, but it's subject to the same constraints: https://medium.com/@ZeroDB_/scalable-full-text-search-over-e... If you understand btrees you understand the harde
96.
▲
by
peterhunt
5y ago
You can also get efficient FTS with this method if you implement indexing in user space and avoid BM25. The Lucene practical scoring function works well with this method in my experience: https://www.elastic.co/guide/en
97.
▲
Web worker meets worker threads – threads.js
(threads.js.org)
91 points
by
peterhunt
5y ago
|
16 comments
98.
▲
by
peterhunt
5y ago
It doesn't have to be this way. If you're going to go all-in on the monolith approach like FB and Instagram did for their product code (at least when I was there), you need to have a central team whose entire job is scaling the co
99.
▲
by
peterhunt
6y ago
There’s definitely a use for js based parsing for tooling that runs in the browser (autocomplete, documentation browsing etc). Integration with the Monaco editor is a common use case.
100.
▲
by
peterhunt
6y ago
yes, this is why you need a dedicated team who owns the quality and scalability of the monolith once you reach a certain size. many companies call this team "product infrastructure".
101.
▲
by
peterhunt
6y ago
proof of work really doesn't work well in practice. spammers have huge farms of compute, often on residential ips, and legit users are accessing the service from a device that is often power-constrained (like a phone). you end up eithe
102.
▲
by
peterhunt
6y ago
there's also a lock icon that keeps the tool selected which i think is the behavior you want
103.
▲
by
peterhunt
6y ago
there's a lock icon that changes the behavior to what you want :)
104.
▲
by
peterhunt
6y ago
I don't think it's that simple unless I misunderstand how GCP Pubsub works. I don't think GCP PubSub will give you deterministic delivery order within a partition the way Kafka will: https://cloud.google.com/p
105.
▲
by
peterhunt
6y ago
sure, but it gives you the list of packages to look at in the dependency visualizer
106.
▲
by
peterhunt
6y ago
Wow, that React Native dep graph is crazy! But as I browse it, most of the dependencies seem to be build-time, not runtime dependencies (i.e. it seems like most of them are related to Babel). The React comparison doesn't include dev de
107.
▲
by
peterhunt
6y ago
We use it a lot at Twitter, though it's a fairly recent addition to the stack.
108.
▲
by
peterhunt
7y ago
That hasn't been true in my experience. For example, German has a lot of compound nouns that aren't breakable over multiple lines, so you often have to tweak your navigation layout to account for this vs languages that are more li
109.
▲
by
peterhunt
7y ago
It became really error prone when elements had intrinsic size. A great example is when you have to lay out elements based on how text wraps. Designs back then didn't need this as often, but most designs today do need to take it into ac
110.
▲
by
peterhunt
7y ago
VB classic didn't have a layout engine, so you had to do everything yourself. Making the window resizable required a huge amount of error-prone code that you had to change every time you updated the UI, and it often didn't work we
111.
▲
by
peterhunt
7y ago
I manage managers and engineers at twitter. Most weeks are 25-30 hours of meetings.
112.
▲
by
peterhunt
7y ago
they aren't. private pensions like this are rare and generally pay a few hundred dollars a month [1] while social security, run by the government, pays much more [2] and is what most people exclusively rely on. 1. http://www
113.
▲
by
peterhunt
7y ago
The article doesn't mention that open-plan offices let you allocate much less square footage per employee. In high-rent markets like American tech hubs, this is a very real priority for tech companies (especially cash-strapped startups
114.
▲
FB's Engineering Culture
(twitter.com)
3 points
by
peterhunt
7y ago
|
0 comments
115.
▲
by
peterhunt
8y ago
There is a big difference between Cog and the C preprocessor -- the generated code actually lives within the file, and your IDE / type checker / linter will process it. Sure, they aren't hygienic, but for lightweight macros (
116.
▲
by
peterhunt
8y ago
I thought your choices in Australia were Telstra or rebranded Telstra?
117.
▲
by
peterhunt
8y ago
For good reason. It gives you more flexibility for when to throw login challenges to mitigate credential stuffing attacks.
118.
▲
by
peterhunt
8y ago
a lot of codebases don't support hot reload, but even the ones that do often require multi-second incremental compile times during hot reload if they're big enough [1]. [1] current project is very slow w/ 250kloc (2.5mm kloc
119.
▲
by
peterhunt
8y ago
certainly won't guarantee bug free code, but exhaustive pattern matching really helps when you're building compilers (as it does in other languages that have this feature).
120.
▲
by
peterhunt
8y ago
I bet if you compared single threaded performance you’d still blow Babel out of the water. Even with the best JITs, idiomatic js code is so much harder/impossible to optimize than idiomatic rust or c/c++ code.
More ›