Better HN
topnewbestaskshowjobs
Log inSign up

learc83

13,583 karma · joined Apr 23, 2011 (15y ago) · 4,497 submissions

I'm a programmer and founder with experience ranging from web development to embedded systems and network programming.

Currently working as a principal engineer for a unicorn supply chain startup.

learc83@gmail.com

https://github.com/learc83/

Submissions

comment 5y ago · link · parent

My stepdad does maintenance for the Post Office. He has some stories.

Someone shipped a small alligator once. It peed in the cardboard box it was in and it got wet enough for it to escape inside a sorting machine. Imagine his surprise when he opened up the machine to see what was causing the errors.

comment 5y ago · link · parent

>The "rule" that C/C++ is always "more performant" is just wrong.

Who said it's a rule? What C/C++ gets you is the ability to manually allocate memory without jumping through hoops.

> Performance optimizing C# and garbage collection is a different art than performance optimizing manually allocated memory code, but it is an art/science that exists. I've even seen some very high performance games written entirely in C# and not "high performance C#" but the real thing with honest garbage collection.

Performance optimizing C# with garbage collection for high performance soft realtime systems (I've done it) relies on tricks like object pooling to avoid triggering GC along with avoiding many of the more advanced language features. Even then you don't get the same level of control. I'm also almost completely certain that the high performance C# games you're talking about aren't using C# for the engine, but feel free to provide examples so I can take a look.

If your game (or parts of your game) doesn't need the performance that comes with a higher degree of memory layout control, then by all means use whatever tools you want to.

I've written game logic in C#, F#, Ruby, Haxe, Python, Lua, Java, JavaScript and Elixir.

>The implication in the discussion above is that a possible huge sweet spot for a lot of game development would actually be a language a lot more like Haskell, if not just Haskell.

There almost certainly is for game logic. Many modern game engines provide higher level scripting languages.

However, if what you are working on is in that sweet spot, you likely didn't need an ECS to begin with and a classic component architecture would have probably been a lot easier to deal with.

>But there are High Frequency Trading companies out there using Haskell in production.

HFT is not game dev. "Performance" in HFT doesn't mean the same thing as performance in games.

I haven't used Haskell specifically, but I've toyed with using Elixir for gamedev. It's reliance on linked lists makes it extremely difficult to iterate quickly enough. There are work arounds of course, but the work arounds remove most of what is nice about Elixir in the first place.

>Performance is a good reason to do things, but I think the videogames industry tends to especially lean on "performance" as a crutch to avoid learning new things. I think as an industry there's a lot of reason to avoid engaging more experts and expertise in programming languages and their performance optimization methodologies when it is far easier to train "passionate" teens extremely over-simplified (and generally wrong) maxims like "C++ will always be more performant than C#" than to keep up with the actual state of the art. I think the games industry is happiest, for a number of reasons, not exploring better options outside of local maxima and "performance" is an easily available excuse.

The average engine coder writing high performance code in C++ isn't a "passionate teen". They are experienced software engineers who want to stick as close to the metal as they feasibly can.

The games industry (outside of AAA games) also has an extremely low barrier to entry, and it's something that nearly every programmer has thought about doing at some point--if Haskell turns out to be a fantastic language for making games, it will almost certainly happen sooner or later.

comment 5y ago · link · parent

>"for performance reasons"

The quotes imply that this is a bad reason, but in soft realtime systems you often want complete control of memory allocation.

Even in the case of something like Unity--in order to give developers the performance they want--they've designed subset of C# they call high performance C# where memory is manually allocated.

In most cases if you're using an ECS, it's because you care so much about performance that you want to organize most of your data around cache locality. If you don't care about performance, something like the classic Unity Game Object component architecture is a lot easier to work with.

comment 5y ago · link · parent

>Needless to say I think the bar staff got a lot of tips that night!

You generally tip based on percentage or the number of drinks, so it shouldn't matter too much unless you're doing it by percentage and rounding up the nearest dollar.

comment 5y ago · link · parent

ECS in this case isn't referring to the general method of using entities that have much of their logic defined in components. As you'd have in classic unity with RequireComponent.

ECS is a specific software architecture where (among other things) there is no entity level property because an entity is just an identifier--all properties are stored in logicless, data only components. Unity DOTS has an implementation of this.

comment 5y ago · link · parent

I didn't have a problem switching over with no professional experience and only a few small hobby projects under my belt. It took me a few weeks before a I ramped up enough to be able to start being productive.

This is coming from a Ruby, C#, F#, C, and JavaScript background.

My company is hiring btw if you're looking for an Elixir job. https://grnh.se/b87ce54f2us

comment 5y ago · link · parent

100g of strawberries is 33 calories. 1 cliff bar is 240.

comment 5y ago · link · parent

Not OP, but we've got some open Elixir positions.

https://grnh.se/b87ce54f2us

comment 5y ago · link · parent

My current company hasn't really had a harder time finding Elixir devs than my last company had finding Rails devs.

comment 5y ago · link · parent

There are also many more legitimate studies (and decades of experience) showing that submarine crews working at an order of magnitude or more of CO2 concentrations experience no cognitive effects.

It’s very likely the study you linked is flawed or there is a confounder.

comment 5y ago · link · parent

>subsequent medieval times relatively light as a percentage of one's wages?

You owed the lord a percentage of what you produced as rent. You owed the church a tithe. You also potentially owed service to the lord and the church. Taxes were also paid on certain goods purchased. Taxes that in many cases nobles were exempt from. Kings and feudal lords could also enact special taxes to pay for specific projects.

If you were a merchant of some kind and you wanted to float your barge down a river, you had to pay nearly every town you passed through.

>it's nothing compared to what we experience today in the developed world.

Your overall tax burden could still be tremendous even if it's not paid to 1 central taxing authority.

comment 5y ago · link · parent

In 100,000 years when 12pm is in the middle of the night, no one is going to care. It will have been that way for all of living memory, and the fact that noon used to be midday will be nothing more than a historical curiosity. The drift is far too slow for anyone to notice.

comment 5y ago · link · parent

>They do if the employee sues claiming age discrimination, for example. At least, they have to defend the accusation to show it’s not discrimination.

They don't have to show anything. The employee has to prove that it's age discrimination.

>When someone has been at the company for 25 years like in the parent’s example, and they get fired abruptly without notice for liking the wrong football team, it’s likely the stated reason is untrue and inviting a challenge.

Without a pattern of discrimination this isn't a problem. If there is pattern of discrimination then it is. However, if that's the case it doesn't matter how much documentation they have.

>It certainly helps show that the company isn’t discriminating arbitrarily, and gave the employee notice and a chance to improve the situation.

You can't discriminate arbitrarily. Discrimination in this context means firing someone because they are part of a protected class.

>gave the employee notice and a chance to improve the situation.

Whether you gave someone the chance to correct the situation or not isn't relevant.

>BTW actual legal action isn’t necessary for firing to be getting harder. The fear of legal action is all you need, and that is in fact going up.

The number of charges filed with the EEOC has gone down over the last 20 years https://www.eeoc.gov/statistics/charge-statistics-charges-fi...

https://www.natlawreview.com/article/eeoc-roundup-part-i-10-...

"At the same time, FY2020 saw the lowest number of charges received from workers in more than two decades. The agency received 67,448 charges—continuing the steady downward trend since 2017 in the numbers of discrimination charges filed with the EEOC."

comment 5y ago · link · parent

> result in legal action compelling the company to prove the employee was failing

The company doesn’t have to prove that the employee was failing. It’s perfectly legal for a company to fire an employee because they the employee likes the wrong football team.

The employee or people pursuing legal action on behalf of multiple employees has to prove that the company fires the employee(s) because they were a member of a protected class.

Assuming there are no incriminating emails stating that that was the reason, the only realistic way to do that is to show a pattern.

If an employee decides to sue, whether you had them on a documented performance improvement plan for 6 months or 6 days isn’t going to be the deciding factor.

comment 5y ago · link · parent

Still a bit early to celebrate. You really can’t trust aggregate review scores these days—even if you scan them with a 3rd party tool.

comment 5y ago · link · parent

Average height isn’t the most useful statistic for this. A quarter of men are 6 feet or taller. When you factor in the fact that people aren’t likely to buy cars that their spouse can’t drive comfortably, there are an awful lot of people who just are never going to buy small cars. You could make a smallish car for tall people, but no one does.

The other issue is that modern cars are designed differently because of safety concerns—they have less interior space for the same exterior width. Plus kids have to use car seats until they are much older than they used too. Try putting 2 kids in car seats in a subcompact with a tallish driver with the seat pushed back.

Btw I’m 6’5” and it’s tough to even find an intermediate SUV where my knees fit comfortably.

comment 5y ago · link · parent

It's not just technology either, the character back stories get updated too. There's an episode from the 90s where Homer feels old because he doesn't understand grunge rock. Then, more than a decade later, they made a flashback episode where his backstory was updated to show that he basically started grunge, and Kurt Cobain ripped him off.

comment 5y ago · link · parent

Many states don’t have non-medical exemptions for vaccine requirements.

comment 5y ago · link · parent

> What is "much higher" in a number?

The Pfizer vaccine as I believe 94% effective against severe disease, so around 20x higher.

comment 5y ago · link · parent

They used a nebulizer to spray infected brain matter into the air. There was no aerosolized mouse to mouse transfer.

comment 5y ago · link · parent

The game manuals always were pretty gritty compared to the in-game art.

comment 5y ago · link · parent

I grew up on Warcraft 2, and to me the cartoonish look of WoW was a direct continuation of the art style from that game. I was in the WoW beta. The first time I played it my initial reaction was that it looked exactly like I had stepped into Warcraft.

comment 5y ago · link · parent

The parent edited their comment after I commented.

It originally said

>Did you not remember the Equifax hack?

Of course I didn’t remember it. I explicitly mentioned it as something that didn’t qualify as an Quebec Bridge collapse level event.

They editing to make it seem like they realized that I mentioned it all along.

To your point

>it must be something real and visceral.

I agree that was exactly what I was saying when I started this thread.

comment 5y ago · link · parent

Did you not notice that I referenced the Equifax hack?

comment 5y ago · link · parent

Software engineering hasn’t had our Quebec Bridge collapse yet.

It will take an enormous visible disaster that does more than cost a company a few tens of millions, or exposes a few hundred million social security numbers before we start holding companies and engineers liable for security flaws.

comment 5y ago · link · parent

I grew up in Lithia Springs. They still bottle and sell the water from the spring.

comment 5y ago · link · parent

A former boss used to be a higher up at Kaseya before I worked with him. From his description of their development process, and his general lack of respect for developers, I’m not surprised.

According to him, they outsourced the majority of their development, and he had no clue that there could be any downside to this.

Within a few months of taking over, every single developer in the company left.

comment 5y ago · link · parent

I’m in the US (Chattanooga municipal internet). $67 per month for 1 Gigabit symmetrical.

comment 5y ago · link · parent

A quick google search shows around 5 billion goats, cows, pigs, and sheep, 1.5 billion cats and dogs, and 8 billion humans.

Compared to an estimated 130 billion wild mammals. That’s without the vast herds of herbivores that used to roam the plains of the world.

comment 5y ago · link · parent

There were smaller populations of humans, but not smaller populations of mammals in general.
1
678
150