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

The 3x speed increase is interesting. Do you have any further details?


Only 3x speed increase feels like either did PHP a very good job or the port is not optimized for rust yet.


A bit of one, a bit of the other. It's fairly well-optimised. I think the big remaining optimisation will be to de-allocate memory less frequently — the program creates and destroys millions of structs representing types. 20% of the runtime is taken up iterating over and dropping collections of type-related structs.


Yes — that's after a ton of Rust-centric optimisation. About 25% of the runtime is currently consumed with deallocating memory (there are a lot of heavily-nested data structures getting cleaned up), so there's definitely some more work to be done to reduce cloning.


what's the total running time? ms/sec/minutes/hours? is it heavy IO bound?


A few minutes.

It's not heavily IO-bound — it's mostly memory-bound (it's a type-checking tool for very large codebases).

Further (painful) optimisations will likely involve the use of arenas to prevent so many atomic de-allocations.


If you already know the language, try the standard library. it's very good to read.


It's often hard to follow though. It's probably easier for a new rustacian to read smaller repositories.


agree with this. the whole situation is just bonkers.


facebook's credibility is 0.


what about vertical turbines in the water & bolted to the sea floor?


All engineering at sea costs more. Seabed anchoring is a thing, and a higher degree of wind offshore is a thing, but if you do the linear optimisation of the different cost benefit lines I suspect scaling up traditional fan style 3 blades just wins.

It's a "perfect is the enemy of good enough" thing. Better designs along one axis with a multi axis problem won't be best overall.


Doesn't change a thing on how stresses damage the turbine.

Vertical still only makes sense in limited space.


Interestingly, vertical designs have been proposed for Mars, because space for shipping them is at a serious premium, and the much lower atmospheric density reduces the stress considerably. (Hollywood depictions of destructive Martian sandstorms are quite exaggerated for effect.)


Mars is a good example of differing constraints leading to choice of different technologies, indeed.


what are the stressors? mechanical failure, too much kinetic energy in the waves?


The pole in the center of the VAT generates a turbulent wake that the blades pass through once every rotation. This wake shakes the blade and causes extra stress. The blades themselves make a wake also, though not as much as the pole.

The horizontal turbines put the pole behind the blades. The pole does make a bow wave, but it is not as bad as the VAT wake. The pole/blade interaction is not as severe.


thank you


back of an envelope would be fine also


it would also make sense to build new command line tools to complement coreutils...


Dude it’s really good


CRUD yes, algorithms no


Windows Odyssey


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

Search: