Hacker Newsnew | past | comments | ask | show | jobs | submit | mtmmtm's commentslogin

All of this is just a clone of features of java. They even copied the name from java: "escape analysis". https://en.wikipedia.org/wiki/Escape_analysis


.NET JIT developer here.

What else would we call it? It is what it is.

I believe there are some differences between what .NET does and what mainstream Java does. For instance, objects can be stack allocated even if they can't be turned into collections of scalars. This allows the JIT to stack allocate small known-sized arrays.


bzr is superior to git in most ways. The only problem is that it is not used by many people today.


I live in Sweden. I have a large house. It consumes 14 MWh/year. I have not sacrificed anything. I use a heat pump (using energy from the ground).


I wish someone would setup neighborhood geothermal heat pumps as a heating utility or coop model. It's so expensive for everyone to bore into the ground for this.


Modern new builds of housing do this, at least in some countries. At that stage you can not bother installing gas pipes and come out financially ahead.

Though air source are getting so good that places that require ground source are getting smaller.


Similar situation here, but in Finland. I use 14 MWh of /electricity/ each year (medium-sized house, three-person household). That excludes the firewood that we use for heating the sauna, and to keep the house warm during winter, when the cold is too much for the heat pumps to manage. Oh, and travel.

In order to reach the goal in the article, a three-person household would need to restrict energy use to 52560 KWh/year, /including/ all those things AND the production of everything that household consumes.

I can't see how it's even remotely possible with today's technology and societal climate. That being said, there's no harm in researching and developing more efficient technologies. I don't even want to think about how bad the energy crisis would be if we were all still using 60w/40w lightbulbs.


The article quotes a very old capacity-factor for wind-energy (30%). Today it is 60-64%. https://www.ge.com/renewableenergy/wind-energy/offshore-wind... Also read this report regarding new types of nuclear power (a summary is that these new versions is probably a waste of money): https://www.ucsusa.org/sites/default/files/2021-05/ucs-rpt-A...


In the US in 2020, decommissioned nuclear generating capacity was replaced by six times as much wind and solar capacity. That only accounts for grid-scale capacity, not commercial projects like rooftop systems on large warehouses, or residential systems.

That tells you all you need to know. The people who make money off selling electricity are buying wind and solar.

Attention is focused on grid infrastructure improvements like HVDC, and battery storage systems. Battery systems are even being deployed privately; for example, it's a lot easier to locate an EV DC fast charging station if it sucks down a continuous ~20kW to charge its own power reservoir, than if it needs 300-400kW to directly charge two EVs at full speed.


I skimmed the summary of that UCS report and it seems very thorough and balanced. I would be interested in a rebuttal if an effective one is possible.

I was especially encouraged to see that they didn't advocate the complete dismantling of nuclear, only focusing efforts on improving proven light water reactor designs.


Monthly averages vary between 20% and 45% in the USA. As the most windy sites are built on first, these numbers could fall in deep decarbonization plans that rely on building in areas that have less wind.

https://www.eia.gov/electricity/monthly/epm_table_grapher.ph...


It uses RDP (much faster than VNC).


I have also written some shellscripts in java (i did not smoke anything). If startuptime would be an issue (normally it is not) i would just use graal-vm to compile it. Just do this: "native-image script"


Java is faster in almost any way (compared to C#). Do you have benchmarks showing i am wrong ? It also has multiple AOT compilers and a much larger eco-system.


C# can be faster due to exposing lower level constructs. But for complex applications/not-heavily-optimized code, the JVM will likely perform better, eg. in GC throughput definitely.

There is an interesting issue on benchmarkgame’s repo, where C# is ahead a bit using a clever trick. It basically halves the required allocations. And Java is insanely close with double the allocations.


You did not give me a link to something saying that C# is faster (it is still not). Choosing C# only is only good if vendor lockdown is something you like (or benefit from). I have been involved in a project where C#-developers where involved (MS lockdown). The funders asked me if i could take care of the project (rewrite it in java). C# is complete garbage.


https://benchmarksgame-team.pages.debian.net/benchmarksgame/...

I am as much of a Java fanboy as it gets, but football team level love-hate of languages is stupid. Also, this benchmark is not necessarily applicable to reL world programs.

The CLR provides some access to low level primitives, while the JVM rather hides them. The first choice allows for more optimization by the developer, but that will be explicit and will potentially disallow some automatic ones.

Java on the other hand hides most of these details and depends on a very advanced JIT compiler for most optimizations (like escape analysis), in which way even a decade old program will get magically faster. Of course it is only a crude difference between them, with Java getting primitive types, and CLR continuously improving in JIT and GC.


> There is an interesting issue on benchmarkgame’s repo…

No.

There was an interesting issue.

The clever trick was disallowed and the programs that used the clever trick were removed.

> … insanely close with double the allocations…

No, what you see is not with double the allocations.

The clever trick was disallowed and the programs that used the clever trick were removed.

Read the program source code.


I didn’t know that those results were removed, but nonetheless, at the time with double the allocation Java was insanely close to the “cheating” C# program.


I doubt that your allegation of dishonesty is welcome in this forum.

https://news.ycombinator.com/newsguidelines.html


What allegation? I put cheating into quotes, indicating that I by no means mean bad-faith behind it. My point was to point out how great Java’s GC is.

Especially that my whole comment was actually defending C#, even though I’m not particularly fond of it.


> I put cheating into quotes

That only works when you make little quoting gestures with your fingers.


Then feel free to read them visualizing me doing just that


There is now J2CL which translates java into javascript (superfast). gmail and google sheets is written in GWT.


How do you connect a big harddrive with all your music (in flac) to phone ? A phone would require some kind of service (not free) for streaming the songs. I prefer to have everything on my harddrive (i do not like to lose audio when the network is down).


If you alter the volume, you alter the bits (which means not bitperfect playback). It reduces the available bits.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: