Code Monkey home page Code Monkey logo

particlebench's People

Contributors

danielhams avatar dom96 avatar feepingcreature avatar logicchains avatar renesac avatar

Watchers

 avatar  avatar  avatar  avatar

particlebench's Issues

Rust version is ridiculously unidiomatic

It looks like it's basically a straight line-by-line port of the C. A more idiomatic version would be using methods on structs. Would you accept a PR that updates this to be more sane?

Exclude coments when comparing size in Benchmarker.go

Source code comments shouldn't be counted on the program size. Of course, the benchmark would need to parse each file knowing the language's comment syntax to remove them. But it is better than to force people to remove the comments of the source files themselves.

Other indicators like LOC or number of characters would be interesting, but maybe overwhelming. I'm just afraid that things like "public static final int, public static final int, public static final int" will compress too well. But of course, if I were to chose only one metric, the compressed size is better.

Not directly related, but it would also be interesting to know the executable file size, with notes if it requires external VMs and such or is standalone.

Simplification in movePts?

Why write:

Pts[i].VX += windX * 1 / Pts[i].R;

and not simply:

Pts[i].VX += windX / Pts[i].R;

(in all source files, and for Y and Z dimensions too)? It got me thinking about operator precedence... but of course it don't matters... :/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.