skysight-inc/HackerNews huggingface dataset:
I think the most important lesson of this article is in this sentence:

Why this code was written this way instead of just checking against the ID by linearly iterating over the Components, I have no idea.

There's another comment here that shows their JPEG decoder only supports 1 or 3 components. Using a hash table for at most 3 entries is astronomical overkill! The field for the number of components in a JPEG file is only a byte - so even if you were to support more than 3 components, it would be 255 at most, and sane JPEG files are unlikely to have more than 4 in practice. So fixed-size arrays are the perfect solution. I have a very good idea why it was written like that, however: the mere availability and ease of use of abstract data structures naturally leads to their overuse by what seems to be an overwhelming majority of developers, and the eagerness to "futureproof" and add unnecessary complexity is also very common.

Overcomplexity creates bugs, and (leaky) abstractions hide them. Even if the complexity (and bug) isn't visible in your code, it's still there. If the initial code had been reviewed by me, it most certainly would not pass.

I am saying this as someone who has actually written a JPEG decoder --- it is not as difficult as it may sound, and I highly recommend giving it a try --- and also witnessed (and fixed) the messes that people get in with overcomplicating things. Perhaps that slight "architecture astronaut" mentality comes from starting with a higher-level language; I started with Asm and my preferred language is usually C, and I haven't seen the tendency to overcomplicate much in others who did the same.

The reason the Components were in a hash table was that they would then be checked against the component ordering in a “Start of Scan” section to make sure all the components in the SOS section are in the expected order.

For comparison, this is the corresponding code in my JPEG decoder. I didn't even bother using a loop:

if(read_byte()!= cids[0])
data_error("SOS scan first component must match");
hts[0] = read_byte(); /* high nybble: DC table index; low nybble: AC table index */
if(read_byte() != cids[1])
data_error("SOS scan second component must match");
hts[1] = read_byte();
if(read_byte() != cids[2])
data_error("SOS scan third component must match");
hts[2] = read_byte();
My work pays for my food.

Also, I’m busy working, so I don’t actually have time to cook my lunch, so it’s either eating something frozen, which is unhealthy and gets old, or get delivery, so that $30 for a meal.

Also, my commute is a fifteen minute walk, because I absolutely optimized for not having to drive anywhere. The only benefit to wfh was seeing my kid more often, but that had its own caveats because it is hugely distracting. So, it’s cheaper and more productive for me to be in the office.

The only reason I’d want to work from home was if I wasn’t actually working, and my bet is many people see it as exactly that.
It was removed from the Oxford Learner’s Dictionary, but is still in the real deal, the Oxford English Dictionary.
I don't disagree. But it is what it is, and part of how things get done these days for better or for worse.
its ~$1 if you do them in bulk.
I philosophically agree with your comment, but honestly my income over the past 20 years hasn't really followed what you're saying in any meaningful way. I've had places I didn't work very hard that paid me a ton, and places I worked like crazy and made little. In my experience, the factor that matters far more than anything else is the prevailing economy and, really, the stock market.
The F-35 was developed to be used until 2070. It was done so at a time where it was clear that stealth could not be relied on past 2025 at the most.

Many compromises were made in the pursuit of an advantage known to become greatly diminished 10 years into a 50 year lifespan. I don't think this can be written off by the arms race argument.
If you're going to bring averages into it, the average 18 year old has ~9 moves remaining in their life, meaning that they'd only move an extra 3 times.

https://www.census.gov/topics/population/migration/guidance/...
I recently learned that 19th century literature was often released one chapter at a time. This lead to substantial "filler" chapters which were required for the author to keep the story going.

I sometimes wonder if at least some portion of literary analysis is equivalent to teaching contemporary fan theories while waiting for the next episode/sequel/release.
For people who read SO (rather than ask and answer), SO is useful in the places where the documentation is lacking.

The way to integration that content into an existing project would be to document it better - possibly with a FAQ for development questions. That doesn't really need CC licensing (its helpful, but not essential) in that people who want to contribute documentation can already do so.

Just pull up a SO tag for the library, find the top voted question, and figure out where it goes in the docs.

Q&A shouldn't be used as an alternative to documentation.
It depends on the person for sure.

BUT as a business owner, employees focus a LOT more when they are in the office and working with peers.

The focus is actually quite dramatic.

There are just too many distractions in the modern home. Today's world, where we are at the moment, was built on people going to work every day. It worked. Look at how we have advanced.

Sure, now that we have reached to this point, some people can work at home. But the sustained work is done with your colleagues beside you.

The internet. The vast, vast majority of companies that are the backbone of any country. The financial system that runs credit and capitalism. All these things were built in the office or it's equivalent.
For me, going back to the office means going back to eating microwaved leftovers, or spending $15-20 a day on lunch out.

Totaling up gas and mileage and food and tolls, commuting to the office is going to cost me on the order of $500-1000 a month that I'm not spending now. Just the extra time that I'd need to spend getting ready to go to work and then commuting works out to an entire extra work week of time over the course of a month.
Learn english & programming, get a CS degree, emigrate into the US asap and get a job at FAANG & co.

I don't foresee it stopping being a viable recipe for (Fat)FIRE for at least another decade.
This is going to backfire hard as soon as one disgruntled employee decides that, when faced with the choice of being forced to come into an office they can't stand being in or losing their source of income and ending up homeless, takes the third option of bringing an AR-15 to work, shooting up their workplace, and turning the gun on themselves.

Desperate people do desperate things, and mark my words, we will see a massive uptick in workplace mass shootings as a result of reckless CEOs forcing people back into the office.
While that argument is more nuanced than "silence is violence", it has its own share of issues. Death is egalitarian but its judgement isn't based on Rawlsian principles. Rather, it is firmly staked in Darwinian ones. Suggesting one's "silence" or lack thereof has an effect on that is a false correlation.

The problem with these arguments as a whole is that they ascribe a two-dimensional zero-sum game to what is in fact a more complex issue with millions of variables involved. Remember that slogans exist as signaling for likeminded people and a publicity attractor to the rest of the crowd. They don't exist to persuade others of a point or provide a workable method for achieving an aim. The best way to obtain the latter is to present your case in full to a legal society.
Eventually you choose "Sign-in with Google"
There's an evo-psy theory which says that humor originated in the relief we feel when something we perceive is threatening turns out not to be. The boggart turns into something innocuous, and we laugh at the thing that started to scare us but failed.
Humans evolved to cooperate within their tribe. Everyone else is an outsider, who you might trade and cooperate with, but you might also fight. All depends. At any rate, the history of civilization has lots of conquests and empires. Once an empire is established, forced cooperation also happens, until it doesn't.
The Great Gatsby and that light. Grrr.

I actually read it again 30 years later and it's a pretty good book. Terrible people in it though.
will to power, something somewhat gravely lacking in much of the world. so many people brainwashed by stromem into drinking the "everything the government does is bad" kool-aid. disbelief is the new belief.
Wyoming to house first-of-its-kind advanced TerraPower nuclear project
It's even cheaper if you go with an AE Modular. A starter kit is like $500, versus Eurorack where a single module can be $500 :P. I've got one and have had a blast with it so far.
>this recent winter they were effective enough to reduce influenza-related deaths by over 95% compared to the year before.

A little hard to chalk that up to masking alone given all the other drastic societal changes. What about WFH and distancing?
I'm let down on every article about Etsy lately. They used to be an engineering powerhouse during the StatsD days. Are they doing anything notable in OSS or engineering today?
You're correct about Zenz. Not only is Zenz a far right Evangelical but he also has made statements that he is "guided by God" and on a "mission" against China. His work is full of cherry-picking and distorting source material and sometimes creating his own shoddy data. For example, he only interviewed 8 people to come up with the 1 million in internment camp figure.

A good read: https://thegrayzone.com/2021/02/18/us-media-reports-chinese-...
If there was some single piece of advice that everyone could follow to be rich everybody, and therefore no body would be rich.

To start with I would probably remind them that to be rich you’ll probably need to do things differently to some extent.

The reason most people aren’t rich isn’t because they’re not smart enough, but because unless you’re lucky enough to be born to a rich family or win the lottery building wealth requires decades of discipline in executing a strategy that will get you there. Most people are not willing to do this but you have to be that person who is. You’ll also find you can’t just copy some playbook. You’re not going to build Amazon because it already exists and you’re not going to invest in TSLA or Bitcoin when it was trading as $20. You need to identify the next big thing before anyone else and have the self belief to stick with it for years while everyone thinks you’re crazy and going to lose everything.

Large amounts of wealth are almost always amassed by finding some method of generating exponential value. It is a common misconception that a good job can make you rich. Linearly trading time for money can give you enough money to have a good life, but rarely will provide a pathway to true wealth.

Building a company or investing in appreciating assets are generally the only two pathways to generate large amounts of wealth. However these both come with high risks and as previously mentioned typically require deferring gratification for years to decades while growing a business or compounding an investment portfolio. And at the end of it all your business could go bankrupt or your investments to zero.

In many cases people don’t want millions of dollars, rather just a good standard of living with job security and money to spend in the present. In this case a good education in a STEM is probably a decent shout, otherwise find something you truly believe will be huge in the future and take your slice early on either by building a business in that niche or investing in one.
> I am a paranoid schizophrenic [...] At least I would include instructions that indicate Tor exit nodes as viable terrorist strikes.

Add that to the list of reasons not to run a Tor exit node from your home Internet connection: Your house will be targeted for a terrorist attack by a self-admitted paranoid schizophrenic.
https://www.washingtonpost.com/graphics/investigations/polic...

According to this, 405, which is 405 too many.
I was among the first who wore a mask in my area (before it was mandatory) and I recognize the benefit of masks as one of the interventions with the best cost-benefit tradeoff.

Nevertheless, I 100% agree with that post, and think "religion" is the most accurate word to describe the situation, especially in the US.
Honest question - do you know all this for fact, or are you assuming this based on the collective evidence, etc? It just feels so anti-Amazon for a function specifically designed to ensure that certain things happen not to have a KPI that they are evaluated against.
I think this will ultimately lead to a bifurcation of workplaces into remote-first and office-first (a divide which already existed, but was probably 5% vs 95% pre-pandemic), and this diversity will be a good thing.

Some company cultures are better adapted to remote working, while others stand to benefit more from in-person, and the same thing can be said for individuals. People who thrive more in one than the other will gravitate toward companies whose remote/office emphasis matches their preference, and recruiters will start considering it, too.
> This is probably a valid criticism

No it is not. The poster is appears to mistakenly believe that F-35B's would hover for purposes of close air support. It would never do that because the VTOL capabilities of the F-35B are exclusively for short range take off and landing.

The US has around 10 Amphibious Assault Ship which now thanks to the F-35B's are among some of the most capable carriers in the world. Factor in the ability to take off from rapidly constructed airbases throughout the pacific and the F-35B is one of the most dangerous airplanes currently in production. A squadron could sneak up from completely unexpected directions from bases which had not existed in your satellite reconnaissance just a day ago.
Is this really that surprising?

With the current infections rate in CA and even less in SC county, you have to be really bury your head in the sand to pretend this is not going to happen.
cannabis is already "normal".

i think rather people are cheering for freedom to choose to do or not do it, in the land of the free. you know that stuff we are always promised?
Clever analogy!
F-35 is what happens when you try to apply the agile method to planes.

They all shipped incomplete and have been continually pulled back to be upgraded piece at a time at a huge cost.

Insult to injury is that they wound up with 3 variants that aren't super compatible anyway.
still more people will probably be working from home on a permanent basis; he says 'Most employees will be asked to return' not 'all employees...' Also google is saying that '20 percent are expected to work from home permanently' https://www.theverge.com/2021/5/6/22422518/google-hybrid-wor...
(trying to read between the lines)

A different question is if those working from home will have a greater chance of being shoved out with the next review cycle, but that's another story.
Good news! I hope other companies (including mine) open up soon. Two people living in a 1-bedroom apt whose living room is an office, dining area, gym, and living room is cramped.
Bring your own equipment. It works for rock stars and counter terror teams because there's no excuses. It increases demand and education. There's a breach, or a hack, next man up. You messed up? Liability is yours. Best to hit the road. Worst though, you're not it. You're just not good.

Smart contracts on existing exploits would make a great state backed cryptocurrency. Stopped pipelines make great labs for chemical electricity generation. Attack on the food supplies can be used as tallow. Go ahead world. Wake the sleeping giant.

Stand up for yourself. The USA, you're better. Stop the relativism. The law applies to everyone, or there is no law. Limit the violence, don't add to it. Lessen enemies, don't create them. Don't tell everyone what to do when you're not willing to do it yourself. Walk away. Doing the minimum is a lot easier than ruling the world.

The dead fight with weapons, they dying, tricks and traps and deceipt. Soon they fall into a trap of their own making. Or what they are fighting against wises up and defeats it. We're strong enough to live among bad people, where other people have to outright kill them. They only know barbarism.
Do people join the open calls just for specific reasons? Or do they join all day? An open call is a half decent alternative during forced WFH but it’s not the same. Random hallway conversations are just that: random. An open call wouldn’t be the same unless everyone was in the call all day.
Scientists Discover 'Voids' in the Cosmic Web
> The real test though is when they go to war and whether or not they provide the capabilities that overcome the enemy or not right?

The trouble is that by the time you find that out it's too late. Indeed we may never find out.
I work my job for the paycheck, which includes those RSUs of great value. It’s a fine job, but if I didn’t need the money, I would quit. What kind of commitments should I be making and why?
Software pays less than other FAANGs but there also aren’t constant exec sex scandals like other FAANGs. CPUs pay slightly better than other places.
Hunger is a strong incentive to wrap up. Serving dinner an hour after most people would leave otherwise is an incentive to stay an hour longer. And some people eat dinner and go back to their desks.
Yes: every dollar spent on this instead of building out solar and wind sets back progress fighting global climate disruption. No matter how clever your nuke is, solar and wind cost much less.

Wyoming has some of the US's best territory for wind power extraction. Building wind turbines with that money could proceed immediately and be generating power in only months, without interfering at all with the current use of the land, and with no haggling with residents or regulators over safety now or forevermore.

Solar heating of molten salt reservoirs was tried, and failed because it cost more than photovoltaics. Nukes, howsoever innovative, will certainly cost more than solar heating schemes. Also, containing circulating molten salt turned out to be harder than had been expected. I don't know of any reason why containing radioactive molten salt would be easier or cheaper.

A photovoltaic and wind farm driving heat pumps to boil an underground steam reservoir would be overwhelmingly cheaper and easier to get and keep working, requiring no new tech, if the goal is to provide less interruptible power.

There is really no scenario where this project makes economic sense on its own merits. It has to be driven by unexpressed intentions we can only speculate about. In the past, such intentions have typically involved securing public subsidies.
I’m convinced the majority of members of a previous team were secretly rich and could retire at any point if they so choose. Great team but there was a touch of “we are going to work on what we think is important, what are you going to do, fire me?”

It had a really healthy team culture (largely due to the efforts of a few individuals) and I quite enjoyed going to work for that reason. Hated the commute.
This literally made my wife laugh out loud.
please provide scientific proof of these claims. i know many successful potheads that do not have any of those issues.
> The comments sections on these articles tend to receive a lot of projection from people who simply hate their jobs and view WFH as a partial antidote to that.

I resent the implication that I like WFH because I hate my job. I love my job, I'm good at it and I'm a bit of a workaholic by most standards (but wouldn't if I didn't genuinely love it). However, over my career, I found that I'm much more productive when working from home and this is not only for solo work but also for team work.

I believe that remote work works better for a certain type of people, I am good at making friends both in and out of work but I find too many extended social interactions from being in the same place to be draining and that they sap my productivity so I'm pretty much the text book definition of an introvert. That doesn't stop me as a manager from doing one on ones, interacting with my employees and calling or using slack but it does mean that sometimes when I have work where I need to concentrate, it's helpful to be at home. I have noticed in the past though that it takes a certain type of person to work well from home especially for long periods of time.

For context, I work in a remote first company, we were remote before the pandemic and before that I worked as a consultant so I've been remote for the last 10 years.
this article is indeed cool and almost all examples are good, but this example is in my opinion heavily forced or even wrong?

>And you can’t drive as fast when it’s raining, even though your car has windshield wipers and headlights and a roof and a heater, all of which protect you from caring about the fact that it’s raining (they abstract away the weather), but lo, you have to worry about hydroplaning (or aquaplaning in England) and sometimes the rain is so strong you can’t see very far ahead so you go slower in the rain, because the weather can never be completely abstracted away, because of the law of leaky abstractions.
Not even remotely. WASM uses the same sandboxed DOM APIs JS does, that's a huge difference compared to Applets or ActiveX.
Assuming you think the USA should have the "most powerful military" (whether this should be the aim or not is a separate question); how much money is required to achieve that goal and what are your justifications for that amount?

Without answering that question, how can you say that the F35 costs too much? Personally i have no idea what the true US military budget should be and I'm not even sure how you'd begin to calculate that as a civilian. One of the few things that gets passed in a bi-partisan manner by the US legislature is the military budget (apparently for 59 straight years).

It's easy to look at a big number and say it's bad. But it's also easy to lose sight of the bigger picture. The average FAANG team probably costs their company multiple millions of $ per year in just employee costs. It's easy to parachute in and say that you could do it for less, and you'd probably be right. But that also loses track of bigger picture.
Children should not be in in-person school until either the vaccine is widely available to children as young as 5 or SARS-CoV-2 is completely eradicated worldwide.

Since this will take a long time, the government can kill two birds with one stone by bulldozing every school in the country and building 130-story skyscrapers full of affordable housing on their sites, solving both the school question and the housing problem at the same time.
Is there a way to somewhat reliably derive time based on life cycle of bugs? Any particular species that have weird quirks which could be exploited like this?
Apple Park houses a small fraction of Apple's Bay Area employee workspaces.
That is how it was sold, for sure. Unfortunately now it has become 3 jets, that can't do it all (at this point). There was supposed to be > 70% commonality, but currently less than 25%. It can't do interdiction, doesn't have loiter time & is ordnance poor wrt. current platforms, is not a great interceptor (no supercruise launch). It is a significant advancement in sensor technology and integration, for sure. The reduction in type number, and the suggestion of the NGAD (both Air Force and Navy, which suggests that they think that joint acquisition is not the way to go next time) makes me think of the classic procurement death cycle. Very happy to be proven wrong on all of this.