buckedunicorn / mantas-cli-tool

A cli tool written for mantas (a.k.a. @coolemur) showcasing the speed of the go compiler.
Other
0 stars 0 forks source link

This is still not a real-life example, only 376 lines of GO code in 15 files. Not surprised, it will compile fast 😁 #1

Open coolemur opened 2 months ago

coolemur commented 2 months ago

Language files blank comment code

Go 15 66 9 376 Markdown 1 23 0 34 YAML 1 2 0 23 make 1 6 0 18 INI 1 4 0 14

SUM: 19 101 9 465

buckedunicorn commented 2 months ago

What would make this a real-life example?

258369556017211

coolemur commented 2 months ago

Erhm... definitely not a few hundred lines of code to be compiled.

Imagine a service that was built in few years by many people which were changing in company overtime. So imagine a huge codebase with dirty code, non-refactored legacy code (I am pretty sure not all code compiles in same amount of time because of complexity).

Also, not just some example file operations or something, but something that you would actually use in real app.

Because now you have "this works fast, in comfort-zone sandbox..."

Another thing - this is fast? Relative to what?

If you want to prove your point, create same algorithms with as similar code as possible in other languages too, then create a table of language / codebase size / compile speed / etc. to show the real results.

Because now you have "this works fast, on it's own", "this works fast, but we don't have a point of reference".