News for hackers. Stuff that matters.
Re:Swift and Go: Building a Fast Future by melling on Tuesday November 18, 2014 @04:37PM (#8626518)
They haven't written the optimizing compiler yet. They are waiting.
Re:Swift and Go: Building a Fast Future by masklinn on Tuesday November 18, 2014 @05:11PM (#8626707)
Wouldn't an optimising compiler run contrary to go's goal of fast compilation?
Re:Swift and Go: Building a Fast Future by orbifold on Tuesday November 18, 2014 @06:00PM (#8626973)
They could use the same front end and enable optimisation passes in the backend with compile flags / heuristics. GHC for example uses for certain flow optimisations "fuel" once it runs out it stops doing further optimisations. For long running applications, ideally the runtime would profile the application during its execution and JIT / optimise based on the live state of the application. The JVM demonstrates that this can have major benefits over AOT compilation.
Re:Swift and Go: Building a Fast Future by MetaCosm on Wednesday November 19, 2014 @05:37AM (#8629236)
No, going fast is about not doing work twice. It is about the dependency graph. Go was developed to make dependency analysis very simple, so you recompile a tiny number of files even on massive, complex apps... and don't spend massive amounts of time deciding what to compile, or building stuff up just to tear it down (include all the things, use macros to exclude, etc).
Re:Swift and Go: Building a Fast Future by melling on Tuesday November 18, 2014 @05:24PM (#8626781)
Unless they had a flag... I would think so.