13,583 karma · joined Apr 23, 2011 (15y ago) · 4,497 submissions
Currently working as a principal engineer for a unicorn supply chain startup.
learc83@gmail.com
https://github.com/learc83/
comment 5y ago · link · parent
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
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
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
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
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
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
comment 5y ago · link · parent
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
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
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
comment 5y ago · link · parent
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
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
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.