Better HN
topnewbestaskshowjobs
Log inSign up

l1ambda

401 karma · joined Apr 16, 2015 (11y ago) · 121 submissions

Submissions

comment 2y ago · link · parent

Tangent: anyone else remember the https://news.ycombinator.com/item?id=33217395 post? A handful of HN people were on the CB radio on https://4m3ric4.com and were voice chatting and musing about what if something like that were added to HN.

comment 2y ago · link · parent

Similarly, don’t start or end sprints on Mondays or Fridays (Wednesday is best?), to make it easier to get back into flow after weekends.

comment 5y ago · link · parent

https://torontosun.com/news/provincial/ontario-now-recommend...

"Ontario now recommending against Moderna vaccine for men 18-24 years old...This comes after public health officials determined there is a 1 in 5,000 risk of myocarditis — a form of heart inflammation — following a second dose of the Moderna vaccine."

comment 6y ago · link · parent

The Reducks pattern https://github.com/erikras/ducks-modular-redux fixes the boilterplate problem by keeping your action types, action creators, and reducers in the same file.

comment 7y ago · link · parent

I post something like this every time the congestion pricing subject comes up. We have congestion pricing in Minneapolis / St Paul and it just works. If I'm in a hurry, I have the option to choose to use the priced lane. We're rolling it out to all of the major highways (it's on 3 of them so far). I wish we had it on more lanes on all highways already, because what is the point of having a 60mph road if most of the time you are barely going 20mph, or trip lengths are otherwise completely unpredictable? It's also particularly important to people who might have to travel to multiple jobs, or people with children in school/day care, when consistency in travel time is extremely valuable to them.

There is a concept in economics called spontaneous order. Once the cost of congestion becomes apparent through the price mechanism, then society can reconfigure itself to adapt to it. You just have to have the price mechanism in place to signal it. People will figure it out and adapt once you have implemented congestion pricing. Practically every medium size or larger city in America has terrible traffic congestion problems.

Importantly, you have to resist the temptation to set a price ceiling (like Houston did at $8), as it will not work effectively because it will not allow the price mechanism to work and will cause a shortage of road capacity and you end up with no material change and basically a bad tax. (E.g., the true cost of congestion spurs demand for apartments and transit options near the city center, which in turn reduces traffic congestion.) Also important that it is purely congestion pricing and not resulting in crony government. Changes in laws and zoning and public transit will occur subsequently.

I am excited for NYC to pilot this and hope it becomes a success for that city.

comment 7y ago · link · parent

Yes. One can workaround it with the throw-as-unchecked pattern: https://stackoverflow.com/questions/14038649/java-sneakythro...

comment 7y ago · link · parent

This. We have this in Minneapolis / St Paul. It just _works_. We're rolling it out on most of the highways. I wish we had it on _all_ lanes on all highways already, because what is the point of having a 60mph road if most of the time you are barely going 20mph, or trip lengths are otherwise completely unpredictable?

There is a concept in economics called spontaneous order. Once the cost of congestion becomes apparent through the price mechanism, then society can reconfigure itself to adapt to it. But you have to have the price mechanism first. People will say, what about this, what about that. It doesn't matter. People will figure it out and adapt, but you need to implement congestion pricing right now, because practically every medium size or larger city in America has terrible traffic congestion problems. Importantly, you cannot set a price ceiling (like Houston did at $8), as it will not work effectively because it will not allow the price mechanism to work and will cause a shortage of road capacity and you end up with no material change.

Changes in laws and zoning and public transit will occur. Given a little bit of time, the emergence of various kinds of social order from a combination of self-interested individuals will occur.

comment 7y ago · link · parent

https://wiki.mozilla.org/Oxidation#Rust_Components

comment 8y ago · link · parent

You used to be able to apprentice for just about any profession at all, often earning money while doing so. Perhaps social norms need to adjust and bring back apprenticeship. Perhaps we are on that course now having reached the tipping point of student loan debt and with the death of the 4 year degree.

Education is free (MIT has free courses, and there are lots of opportunities nowadays for self-study); it's a degree that's expensive.

comment 8y ago · link · parent

That's a completely fair question. I believe it's mainly just that Java bytecode is optimized to run on the JVM whereas WASM is optimized to run on CPUs. https://github.com/WebAssembly/design/issues/960

comment 8y ago · link · parent

Microservices typically have two goals, performance and modularity. However, porting a typical webapp to a fast, modular compiled language will typically achieve at least one (often two) orders of magnitude performance improvement over a typical interpreted language. We are seeing this to be true more often than not, and a large performance gain off the bat like that may even obviate a lot of the desire to move to microservices.

Furthermore, if one uses modules (as one should), one can arbitrarily and somewhat trivially run those modules either in-process (compiled in) or out-of-process (via REST, gRPC, Cap’n Proto, or another RPC system), e.g., in a separate service/microservice/whatever you want to call it. This gives you a best of both worlds approach where code can be arbitrarily run in a monolith or a separate service as-needed. This changes the thought dynamics from a rigid "monolith vs. microservice" decision to a more fluid process where things can be rather easily changed on a whim. When modularity is the goal, then services become something of a secondary concern.

Microservices are used as something of a sledgehammer to force modularity and performance in languages that lack proper modularity and/or are innately slow or otherwise inefficient, while suffering orchestration costs and the performance penalties of copying data across multiple processes and networks as well as making it harder to derive a single-source of truth in some cases.

Probably a good approach for a typical webappp looking to improve performance would be to first port core logic to a modern, fast, compiled language with modules, then evaluate the performance from there, and then determine if any modules should be split out into separate processes or services.

Like NoSQL, microservices can be (but not always are) a case of the cure being worse than the disease; however, they can also be useful in certain situations or architectures. Like anything in engineering, there are tradeoffs and it depends on your situation.

comment 8y ago · link · parent

It's not so much about immediate performance, but about headroom.

The blog post https://www.techempower.com/blog/ puts it better than I:

> I argue that if you raise the framework's performance ceiling, application developers get the headroom—which is a type of luxury—to develop their application more freely (rapidly, brute-force, carefully, carelessly, or somewhere in between). In large part, they can defer the mental burden of worrying about performance, and in some cases can defer that concern forever. Developers on slower platforms often have so thoroughly internalized the limitations of their platform that they don't even recognize the resulting pathologies: Slow platforms yield premature architectural complexity as the weapons of “high-scale” such as message queues, caches, job queues, worker clusters, and beyond are introduced at load levels that simply should not warrant the complexity.

comment 8y ago · link · parent

The US corporate tax rate is now more in line with the OECD average: https://taxfoundation.org/us-corporate-income-tax-more-compe...

comment 8y ago · link · parent

KeepassXC browser integration actually works well.
12345