4 ms·
"True. When your hammer is C++, everything begins to look like a thumb." [1] [1] http://www.anvari.org/fortune/Quotations_-_Random/3041_quote-324-true-when-you
by jfb 13y ago
"True. When your hammer is C++, everything begins to look like a thumb." [1]
[1] http://www.anvari.org/fortune/Quotations_-_Random/3041_quote-324-true-when-your-hammer-is-c-everything-begins-to-look-like-a-thumb.html http://www.anvari.org/fortune/Quotations_-_Random/3041_quote...
- drdaeman 13y agoWhy it's always C/C++ (not even Pascal or Oberon) in another corner of the ring? If hardware is powerful enough to sustain Node.JS, why not use OCaml, Racket or, maybe, some JVM-based language? Or, if the scripting is a requirement, Lua, Tcl or maybe Python.
- jarek 13y agoBecause a lot of people know Javascript and C/C++.
- drdaeman 13y agoOkay, maybe Racket and OCaml are relatively obscure options, but quite a lot of people know Java and Python. And I can't say Lua's not popular, too.
- jarek 13y agoI'd expect Javascript programmers dwarf Lua programmers by a couple of orders of magnitude. At least one OOM if you want to limit to people who only know the language "well."
- kyllo 13y agoIn the game programming industry (PC games, not iOS/Android games), the two most popular languages are C++ and Lua. That's probably part of the reason why these two languages keep getting brought up in this thread to compare against Javascript.
- JoshTriplett 13y agoC/C++ is always in one corner because it's the go-to language (heh) for code that needs to do direct hardware access and manipulation. That said, if I don't strictly have to run C/C++, I'd much rather run Haskell or Python. And you'd be surprised where you can run high-level languages like Python; one project I work on runs Python in the GRUB2 bootloader to test BIOS and hardware, giving Python full ring0 privileges, raw memory access, ACPI method invocation, and SMP support. Some of the Python standard library is missing (an HTTP server, for instance), but quite a bit of it is available. See http://biosbits.org/ http://biosbits.org/ for that project.
- 14113 13y agoI love python. It's nothing like javascript really. It's more like C, but with an approachable wrapper.
- TheLegace 13y agoWell I have been trying to play around with LLVM on ARM Cortex-M4 micro controllers specifically the STM32F4 series of my controllers there is a github project that tries to use Clang. Now if I had the time and experience I wanted to try and compile this library called py2llvm. The library that can compile static variables and python syntax into LLVM bitcode with C like performance. I think that is the best of both worlds.