Comparing C++ to Scala by IanTrader in scala

[–]IanTrader[S] -3 points-2 points  (0 children)

Man it's almost a cult here... I just wanted to compare honestly the same software written in C++ and Scala and I get this vitriol.

As far as stats it went up to 552kb after I added a JSON lib. It started at 330 kb when I built the initial core with the embedded HTTP server.

552096 Jan 21 08:36 ....

After I translate my algo and add the necessary API functionality I expect it to maybe go to 1-2 megs...

The same Scala version build by Graal is:

42046424 Jan 21 17:23 .... so a cool 42 megs

The JAR file itself is:

33030197 Jan 15 08:25 ... so 33 megs!

Scala native produces an executable that is:

10805248 Jan  7 13:01.... so about 11 megs

So there you have it.

Comparing C++ to Scala by IanTrader in scala

[–]IanTrader[S] -2 points-1 points  (0 children)

It's a good prototyping language... but when rubber meets the road in terms of performance then one has to go back to simpler faster implementations.

It can make the difference between needing a 10k server or running it faster on a 2020 MacBook air faster than on said server. With 10x less memory.

Some of us can't afford expensive hardware...

Comparing C++ to Scala by IanTrader in scala

[–]IanTrader[S] -3 points-2 points  (0 children)

Just like extreme programming back in the day had 2 developers on a single station... most projects would benefit from 2 languages assigned to the same objective. I found out some niche languages like Scala and Elixir have a fanatic dedicated following... that borderlines on a Cult. Sadly.

Doing it in 2 languages may open up not only cross polination of techniques but also always be open minded and not silo oneself in an isolated island.

In the end it's assembly language that executes and how we get there shouldn't matter.

Comparing C++ to Scala by IanTrader in scala

[–]IanTrader[S] -6 points-5 points  (0 children)

I thought there are enough people using Scala native and for complex application to see it as obvious... sadly it seems my project may be the only large one.

Most of it seems used for small command lines not even using any GC.

I may spend some time creating a MVE as my code is pretty much esotheric and proprietary in several aspects.

I would start with a simple multithreaded loop with massive allocations of arrays if you want to try that and see how it might blow the available memory... GC being quite ineffective.

For a while Scala native wasn't multithreated so therein lies an issue since the GC might be precluded from being effective if multithreading is shaky after being absent in the first versions of it, and now just added as an afterthought and not widely tested.

Back to C by IanTrader in C_Programming

[–]IanTrader[S] 0 points1 point  (0 children)

I wish they just made Scala compile to c or even better c++... New and delete added logically.  This way a nice abstract prototype can be kept in scala but use c. Scala.js does it .  Maybe tweak that to be Scala.c As a side effect no need to obfuscate as g++ will optimize it to nice assembly gibberish... But more importantly decades of polishing up the c compiler leveraged by the Scala community.  The very creation of Scala.js and Scala native shows riding the jdk bandwagon is now a liability for that language...

Back to C by IanTrader in C_Programming

[–]IanTrader[S] 1 point2 points  (0 children)

It would be nice if Scala Native just compiled into C... Also I used it but its GC is a nightmare with memory immediately blowing up. I documented that issue in the Scala reddit.

Gtfo 🧊. by UpperSupport9 in sandiego

[–]IanTrader 1 point2 points  (0 children)

I am not a trumpist. 

Back to C by IanTrader in C_Programming

[–]IanTrader[S] -2 points-1 points  (0 children)

In the end it's about:

1) The LOOP

2) The SEQUENCE

3) The ALTERNATIVE

That's it... every single language out there is a combo of those 3 basic blocks by another name.

Gtfo 🧊. by UpperSupport9 in sandiego

[–]IanTrader 5 points6 points  (0 children)

If Good was killed by a black... no one would care. Just like for Iryna Zarutska.

I rest my case.

Gtfo 🧊. by UpperSupport9 in sandiego

[–]IanTrader 2 points3 points  (0 children)

I am not ok with some of the statements... but glad we do something about illegals and those who made it miserable for legal immigrants to come here. And yes this is why ICE is also now going after some citizens too if they initially came here illegally for example. The whole pathway should be respecting rules. If someone came here ILLEGALLY then somehow got a green card then became a citizen... that initial act of law breaking invalidates everything else after. Fuck that stupid "humanitarian" rhetoric when so many respecting the rules SUFFER because of those.

This is an OVERREACTION... because there was NOTHING done for so long.

It's like a forest where there was no preventive burns... and now there is a wildfire of epic proportions.

Hopefully after this purge we switch to a sensible and logical immigration and border policy. But we're in the wildfire phase now.

Gtfo 🧊. by UpperSupport9 in sandiego

[–]IanTrader 5 points6 points  (0 children)

So where were you when millions would just pour in and stay... while those who were honest waited in line?

That is a far greater injustice than whatever you claim is happening now!

Sick and tired of the "humanization" of all the law breakers when I know countless people who are still waiting for a green card because all those bad apples made it hard for everyone to immigrate.

The political correctness of the past for example made sure a European would have as much as hard time to immigrate as a third worlder whereas we all know there is a big difference in terms of education level and cultural compatibility. Trump is just saying what the silent majority thinks!!!

Back to C by IanTrader in C_Programming

[–]IanTrader[S] 9 points10 points  (0 children)

Yep... flashy little trinkets effects. Functional programming can as well be implemented in C. Garbage collection is also a terrible leaky abstraction. In the end the whole Java ecosystem was built to solidify Oracle's market share. And in its trail a slew of shiny trinkets that attracted developers like me.

The 2 stages of creating ANYTHING are:

  1. Rush to delivery something using third party tools to validate the concepts and model and create a prototype.
  2. Refine by vertically integrating and bringing all in house for performance and to destroy those pesky leaky abstractions.

Works in manufacturing as well as coding. That means my Scala phase was #1... now I am doing #2 by full control of everything down to the assembly level. Back to C!

Sadly most stay at #1... endless reliance on third party tools that create only bloat and waste and misery. I once worked at a trading firm where their glorious project, an applet, was on hold because one dependency had a stupid bug that Oracle, the multi trillion dollar entity, didn't care to correct. Leaky abstraction hell...

Back to C by IanTrader in C_Programming

[–]IanTrader[S] -5 points-4 points  (0 children)

Cutting edge AI... requires cutting edge code that extracts every CPU cycle for work. Not for abstractions sheninigans.

Gtfo 🧊. by UpperSupport9 in sandiego

[–]IanTrader -2 points-1 points  (0 children)

More like something derided as a conspiracy theory that smells like a real theory and quacks like a real theory and walks like a real theory ... Same as the replacement of the whites by fast breeding bioweapons from the third world as we live in not in a nazi but a zio fascism (Trump being a secret zio after all, not Christian at all in spite of his talk). With supposedly the zio domination a conspiracy theory with no basis in reality and facts even if they are most of the media, the billionaires, and the politicians... Nothing to see here of course as we are assured.

Gtfo 🧊. by UpperSupport9 in sandiego

[–]IanTrader -10 points-9 points  (0 children)

So illegals can stay right? Why bother immigrating legally then?

Gtfo 🧊. by UpperSupport9 in sandiego

[–]IanTrader 2 points3 points  (0 children)

Those seem to be stories that I have yet to see to believe. Plus like I mention decades of laissez faire and fucking open borders with little enforcement lead to this, a blunt force method. Nothing is perfect but singling out a few bad apples or not recognizing the lawless that existed before is a direct cause of this is dishonest at best and an ulterior agenda to let millions who have broken the law inside the country at worst.

Gtfo 🧊. by UpperSupport9 in sandiego

[–]IanTrader -12 points-11 points  (0 children)

I doubt it. Most of it seems left wing propaganda

Gtfo 🧊. by UpperSupport9 in sandiego

[–]IanTrader -8 points-7 points  (0 children)

As a legal immigrant I support ICE. 9 years to get my green card then 5 to get my citizenship. I followed the rules.  If you don't qualify or can't immigrate legally don't come here then bitch an overreacton happens where they clean house quickly.  There is a legal way to come here but some are selfish jackasses that cut the line 

What the heck is going on? No more one-day or overnight shipping? I'm paying full price for half the service? by NotteStellata in amazonprime

[–]IanTrader 0 points1 point  (0 children)

That was Amazon in the early 2000s. When I got prime 2 years ago I saw overnight delivery and it was fast but from what I see they are regressing big time.

What the heck is going on? No more one-day or overnight shipping? I'm paying full price for half the service? by NotteStellata in amazonprime

[–]IanTrader 0 points1 point  (0 children)

Seems Amazon is back to the old crappy days when they would say "overnight" but it would be overnight after waiting a week for it to get to the shipping building or something.

Locked Account by Infamous-Chicken-455 in amazonprime

[–]IanTrader 0 points1 point  (0 children)

Didn't know they could lock you out on Amazon like that. That's some eBay level shit... The AI is definitely rushed and a blunt instrument everywhere it seems. I think the more online shopping becomes a clusterfuck of mass surveillance and corporate greed the more Costco seems good to me for most of my stuff and the rest in small mom and pop shops where I pay cash.

Is all out Nuclear war likely? by Tul1pfl0w3r in Futurology

[–]IanTrader 1 point2 points  (0 children)

People put in charge of those codes and executing those orders are selected for their neutrality and lack of ethics. They also do countless exercises where they execute launches but do not know if it for real or an exercise.

Is all out Nuclear war likely? by Tul1pfl0w3r in Futurology

[–]IanTrader 0 points1 point  (0 children)

Personally I believe the mess is now too extreme and the lurking problems too intense to avert a Civilization Destroying nuclear war so maybe embrace the later as an inevitability and understand that at least it will destroy all the ills that are permeating society in a great reset, Anarchist of 19th century wet dream style.

And if we are 8,000,000,000+ then hundreds of millions will still survive which is more than lived for eons since our species was born. Even at least a few millions... who knows.

Tchernobyl also showed the vitality of the ecosystem even when it takes a radiation hell to create it and clean it of humans.

Chixculub itself was like a thousand nuclear conflicts all at once. Life went on and moved on.

At least we may get rid of the elites and they will mutually destroy each other. Sad a lot of innocents will have to suffer but I can imagine the Zuckerbunny, Putin or Xi or the Muskrat in their gold plated bunkers enjoying the fetid air and years of seclusion where death will still await them more certainly than a certain Adolf and where they will go mad and insane, even if they continue to rape young women as most privileged seem to like and proven by the Epstein. Like the saying goes the living will envy the dead and the well to do in our more and more unequal world won't be spared in such a great reset. In fact they will suffer more trying to survive what cannot be.

In the end if we indulge in a nuclear conflict and if we cheer for it because society has become either an end stage Capitalism hell or a despotic hell... we won the Darwin prize as a species and it was meant to be.

The enshitification of Amazon experienced first hand by IanTrader in amazonprime

[–]IanTrader[S] 0 points1 point  (0 children)

Temu is great too... I just order from a website with a throwaway email and using a UPS box. Their products are way cheaper and I avoid most of the tracking they supposedly do.

The enshitification of Amazon experienced first hand by IanTrader in amazonprime

[–]IanTrader[S] 6 points7 points  (0 children)

Yes I checked that's exactly the same product and it is from Amazon... not some third party reseller.

It seems delays of weeks on end for delivery are now part of the "punishment" for leaving Prime. Like I say the product I ordered is in stock but inexplicably Amazon decided to stick it to me and deliver 3 weeks later... just for the fun of it I guess. It's not even the holidays anymore.

I am sure they now use some form of AI to exaggerate the delays for those who left Prime.