5 ms·
Observations: 1: Amazing that Javascript is the most popular language, despite nobody has yet managed to write a fast FizzBuzz in it :) https://codegolf.stack
by mg 4y ago
Observations:
1: Amazing that Javascript is the most popular language, despite nobody has yet managed to write a fast FizzBuzz in it :)
https://codegolf.stackexchange.com/questions/215216/high-throughput-fizz-buzz https://codegolf.stackexchange.com/questions/215216/high-thr...
2: SQL and Bash both went up a percentage point! Yay! The art of terse and efficient code is not yet dying.
3: Strange that "Web frameworks" mixes backend and frontend frameworks. Why is "node.js" listed here? Isn't node.js a runtime?
4: Docker made a big jump from 49% to 64%. I consider that a good thing. I don't believe in "containerizing" applications. But I prefer to have Docker stay around for the long term. Because containers on their own are so darn useful.
5: Git is at 94%! Really? 94% of developers use Git? Or do they use some tool that is using abstracting Git away, like GitHub? Anyhow. Thats great, because Git (like vim) is one of the best pieces of software out there and I love that it will be around for a very long time.
- bluedino 4y agoThere is no way that 94% of programmers know how to use Git. Most of them barely know how to program.
- GlitchMr 4y ago> 1: Amazing that Javascript is the most popular language, despite nobody has yet managed to write a fast FizzBuzz in it :) The reason for that is that standard output implementation in Node.js is very slow. When the challenge is to write as fast as possible to standard output that's not ideal.
- silentguy 4y agoRegarding Git being 94%, if you see the table just below about interacting with the version control system, you'd see 83.57% users using command-line. 28.44% are using version control hosting service web GUI. 83.57% is still a big number of people who are using git with fewer abstractions on top.
- speedgoose 4y agoIt’s because it’s not possible.
- shepherdjerred 4y agoWhy not?
- trinovantes 4y agoThis fizzbuzz competition specifically requires the solution to work up to 2^63 which is not possible as the largest int in JS is 2^54-1. You would have to use BigInt which would greatly reduce your performance. So not impossible but kinda pointless for JS
- shakna 4y agoThere's ASM and C answers, without going near BigNum libraries. You wouldn't necessarily have to implement or use a BigNum library.
- Taywee 4y agoASM and C have access to native 64-bit integers. Javascript does not.
- shakna 4y agoJavascript does [0]. Shipping in Chrome v67, and rolling out elsewhere. [0] https://chromestatus.com/feature/5371603852460032 https://chromestatus.com/feature/5371603852460032
- Taywee 4y agoThat's not native 64-bit integers. That's BigInt, and it's already out everywhere, and unless the situation has changed, it's significantly slower than just 64-bit integers would be. I'm not actually attacking JavaScript for this, note. I don't think it's really all that much of a problem given the purposes of JavaScript, and I think it could really be better fixed by doing something similar to what Lua did, and have all numbers transparently either a 64-bit floating point number or a 64-bit signed integer. If you are using JavaScript and something like specifically needing 64-bit integers is an issue for you, there's a good chance you should just be using WebAssembly.
- capableweb 4y ago> Amazing that Javascript is the most popular language, despite nobody has yet managed to write a fast FizzBuzz in it It's almost like "Best performance of all languages!" is not that important of an requirement for a language to become popular :)
- runarberg 4y agoBeing the native language of the most popular information sharing standard in the history of humanity surely must account for something.
- polishdude20 4y agoI don't think it's a surprise honestly. It's the language used for creating programs that can be shared with anyone who has a browser. You don't share the code or the software and tell your friend to run it. You share a link to a webpage and it runs there. It's the language that underpins the most shareable form of software out there.
- waylandsmithers 4y ago> Why is "node.js" listed here? Isn't node.js a runtime? In this context this almost always means node.js with express
- MattGaiser 4y agoI so rarely hear of Express in the context of backend JS. People always just say Node. Curious convention.
- AnimalMuppet 4y agoRe 2: Bash can be terse, yes. Efficient? Depends. It can be efficient in terms of developer time to get something running. Efficient in terms of CPU time? Maybe not.
- kaba0 4y agoIt is efficient in neither. No 3+ lines bash code will be without a bug, I assure you. That “language” should be buried deep.
- thunderbong 4y ago> Git is at 94%! Really? 94% of developers use Git? I think this means that 94% of the people using Git have questions!! IMHO, this means that a simple Distributed Version Control System is really required.
- _ZeD_ 4y agolike mercurial?
- kwertyoowiyop 4y agoAll the Git users took a break from reading tutorials and googling for solutions, and took this survey.
- layer8 4y ago> a simple Distributed Version Control System is really required Right, it would be nice to have a simple one.