News for hackers. Stuff that matters.
Re:Rebooting a 15 year-old game written in D – Part 1 Compiling by pjmlp on Sunday December 20, 2020 @11:24AM (#25487317)
Additionally C# and Java have been getting better AOT compilation story, value types support and native memory handling, so metaprogramming is the last big feature standing.

Which is quite unfortunate, as the language is quite appealing and the community always has interesting discussions.

Re:Rebooting a 15 year-old game written in D – Part 1 Compiling by WhoCaresLies on Sunday December 20, 2020 @11:51AM (#25487566)
dotnet and Java stand no chance in the modern world

They are heavy, bloated, and try to do everything, at the end of the day they pick the lowest common denominator, for everything, and they ship it

They want compile to a small executable, they are stuck and ended up just zipping everything and calling it a day

They want to interop with native world, but they introduce runtime overhead and their GC/memory model is a barrier

They want to AOT compile, but their runtime and libraries rely a lot on runtime reflection

They want to be tiny, but they have ton of legacy package that makes them very heavy

Just look at the success story of go, it invalidates any attempts to make both dotnet and java attractive, it is too late, even more too late in an ARM world where relying on a JIT is a weakness

Re:Rebooting a 15 year-old game written in D – Part 1 Compiling by vips7L on Sunday December 20, 2020 @12:17PM (#25487787)
> They are heavy, bloated, and try to do everything, at the end of the day they pick the lowest common denominator, for everything, and they ship it

What does this even mean?

> They want compile to a small executable, they are stuck and ended up just zipping everything and calling it a day

Both can compile executables the same size as go? See core-rt or the graalvm native-image compiler.

> They want to interop with native world, but they introduce runtime overhead and their GC/memory model is a barrier

Java's GC's are probably better than any on the market, including go's. And I will agree that currently native interop from the JVM is more expensive than it should be, but they're working on it.

> They want to AOT compile, but their runtime and libraries rely a lot on runtime reflection.

Easily solved by just declaring what you reflect upon or using runtime agents to find it. It's more difficult than a language than was designed to do it from the start, but eventually all of the big libraries will have it declared already. Hibernate already does [0][1]

[0] https://github.com/hibernate/hibernate-orm/blob/5eedda9a467f...

[1] https://github.com/hibernate/hibernate-orm/blob/5eedda9a467f...

Re:Rebooting a 15 year-old game written in D – Part 1 Compiling by pjmlp on Sunday December 20, 2020 @02:05PM (#25488670)
I should resist to answer trolls, but then again, I can offer a presence to the audience.

Java has had AOT compilation since around 2000, in fact the free beer AOT compilation and JIT caches now available on OpenJDK originate from BEA J/Rockit.

Likewise in what concerns the free beer AOT and JIT cache on J9, it originates from WebSphere Real Time JVM.

As most FOSS people weren't willing to pay for them, so urban myths about Java compilation support models get cargo culted, while those of us that don't have any issues working for the man got to enjoy them.

Likewise .NET has had support for AOT compilation since the beggining with NGEN, then Windows 8 adopted the Bartok compiler from Singularity and Windows 8 .NET Native steems from Project N based on Midori learnings.

And then there are the older ones from CosmOS, Mono, IL2CPP and the upcoming CoreRT.

The success stories of Go are called Docker and Kubernetes, it hardly matters for anything else, while Java, .NET, alongside C++ and JavaScript, own the enterprise.

Even Google has decided to replace the Go written parts in Fuchsia with either C++ or Rust.

Re:Rebooting a 15 year-old game written in D – Part 1 Compiling by WhoCaresLies on Sunday December 20, 2020 @08:29PM (#25491227)
I should also resist to answer to delusionists

Java AOT story is all over the place, and it's not even good, remember the 300+mb executable from Excelsior? AOT low profile? yeah sure it invalidates the whole language features

Dotnet AOT? i don't call experiments, products, and they have the same limitations as Excelsior AOT, they produce insanly large executables, or if you want to target something like GO, you need to give up on the language features, i don't call this a good experience

Il2CPP, it's a transpiler; and same story as Excelsior AOT, it produces insanly large executable, the GC, and the code produced is very poor quality due to the nature of the language (lot manipulations at runtime, including reflection)

Go success story is that it now go beyong docker and k8s, people write cli tools in GO (github cli one good example), they write all their servers in GO (Riot for example), and some start to do gamedev with GO (ebiten)

Google is still using GO, it's not a system language it has a GC

And since the Rust guy left, their rust effort vanished, at least publicly https://github.com/google

oh and BTW, we'll see wich one get flagged, the one who call someone a TROLL because he give valid arguments, or someone who call someone a delusionist

Re:Rebooting a 15 year-old game written in D – Part 1 Compiling by pjmlp on Monday December 21, 2020 @01:33AM (#25492611)
Yeah, just the fact that you talk about the Rust guy at Google shows how much you understand about programming languages.

XBox, Windows 8, 8.1 and Windows 10 aren't experiments, rather products used by more people than any software that you have probably ever produced.

So what that IL2CPP is a transpiler? So were Objective-C and C++ on their early days, and yet they have a market share that Go is yet to achieve.

Also it shows there is some learning required on the compiler design front.

People also write CLI tools in almost every language, hardly a measure of success of any form.

And for Go not being systems, that is actually something that it definitely is, as proven by F-Secure and Google.

https://www.f-secure.com/en/consulting/foundry/usb-armory

https://blog.arduino.cc/2019/08/23/tinygo-on-arduino/

Which still isn't the same as PTC Perc, Aicas JamaicaVM or Meadow.

Re:Rebooting a 15 year-old game written in D – Part 1 Compiling by bobthebuilders on Monday December 21, 2020 @12:05AM (#25492274)
I'm not sure where you're seeing this Rust data, but Rust development on Fuschia is alive and well. And I wonder why Go isn't more popular than, checks list, Python, JavaScript, Java... Oh wait.