HN user

Devid2014

102 karma
Posts0
Comments40
View on HN
No posts found.

1 download limit looks really problematic to me. Some times download just do not start or get aborted and then everything need to be done again.

Something like 3 downloads limit would make this more usable!

Programs in the 90s were written in C and C++. C is impossible to secure. C++ is impossible to secure.

You know that most today OS are written in C or C++ ? Also many higher level languages are it self written in C or C++?

Write secure applications is hard and need a lot of discipline and knowledge that most developers simple do not have. Better tools can and need to help here as well as better languages. But it is still possible to write pretty secure and efficient software in modern C++. Yes it is not easy but possible.

"Apple may be a de facto monopolist for most of the world"

May this is how some peoples from USA see Apple ?

But here in EU Apple is just another smartphone vendor and most peoples are using Android.

For me Rust has a lot of potential to write more secure code in places where it is needed but astrophysics is may be not one of them.

Not sure about language it self, my knowledge about Rust is limited. But st is at least harder because we already have optimized libraries that can do this in C++.

Do some one know such library for Rust ? It would be great too look at it.

https://github.com/marblestation/benchmark-leapfrog

This are not valid benchmarks at all. What is the point to run N-Body sim with all particles set to 0.0 ?

Where is the result of the sim ?

Why it will be not validated at all ?

To make this look like real benchmark one will need to use the same start condition and then validate that result for all languages is the same.

It would be great to have C++ code using Eigen library for example ? To show the difference .

Also this is naive O(N^2) sim that could be speed up using Fast multipole method (FMM), but of course this would be much more complicated to do this in Rust or Go as in C++.

Pixel art is really treble, I just hurt looking at it in some cases.

So some people likes pixels and call it “art” and use such word combinations like “HD fetishism”.

But I would say “Pixels fetishism” and “HD Art”. Of course badly made HD content can be bad too.

P.S.: This is my purely subjective and personal taste. Other will disagree with this because they have other taste.

Is this enough ?

    typedef vector<int> vi;

    typedef vector<vi> vvi;

    typedef pair<int,int> ii;

    #define sz(a) int((a).size())

    #define pb push_back

    #defile all(c) (c).begin(),(c).end()

    #define tr(c,i) for(typeof((c).begin() i = (c).begin(); i != (c).end(); i++)

    #define present(c,x) ((c).find(x) != (c).end())

    #define cpresent(c,x) (find(all(c),x) != (c).end())

Using something else as float or double would decrease performance significantly. Using array sorting would not only be solve too but actually do not improve precision that much at all.

Using double to sum floats has comparable precession as Kahan summation. But of course it is not possible to do the same to summing doubles. Or if there is no proper double precision available at all like on GPU.

Russia bans Reddit 11 years ago

Sounds just like "Russia bans Internet". Because Reddit is just a part of Internet where you can find almost anything. What is the next step to ban Wikipedia ?

"Everyone gets a pocket supercomputer from past century."

One can not compare smart-phones power to modern supercomputer ! And like you say you can not do all the useful things that are possible with supercomputer and PCs !

Smart-phones for me is a looked consumer gadget.