Ask HN: If you could only code with one language which would it be?
11–20 of 53 posts
Re: Ask HN: If you could only code with one language which would it be?
#12By having the widest array of hardware devices to build on, I’d have the opportunity to solve the widest scope of problems.
Re: Ask HN: If you could only code with one language which would it be?
#13Or Stackly, a language I've been writing for nearly two years now. Like C, it's performant, compiles to tiny binaries (it maps fairly close to assembly under the hood), but unlike C it has a ref-counting GC, compile-time and runtime type safety.
set [hello] fn 'displayln [Hello, World!]
hello
I did used to care a lot more about community adoption or libraries, but less so today. If you're not dealing with protocols or encryption, and there is no library, and you can spare a month or two, then writing the library isn't a hard task. First fortnight to implement, six weeks to fuzz n fix.But then, I've been forced to work with all sorts of estoric languages in my work, from PL1 to FORTH to Brainfuck, so my experience is unlikely to be the norm.
Re: Ask HN: If you could only code with one language which would it be?
#14Re: Ask HN: If you could only code with one language which would it be?
#15Re: Ask HN: If you could only code with one language which would it be?
#16[0]: http://p-cos.blogspot.in/2014/09/why-i-like-common-lisp.html
Common Lisp / Scheme are great to learn about programming languages themselves. think learning about closures in CL vs in ObjC and you will realize how simple concepts become awkward and secondarily builds your taste so you know engineer who prides in knowing C++ complexity is a fucking idiot.
Personally, CL has helped me quickly learn hard subjects (3D graphics), prototype software for open ended problems, etc etc.
And any given day, give me a language with live editing and updates, I hate the edit/compile/test cycle.
Re: Ask HN: If you could only code with one language which would it be?
#17Re: Ask HN: If you could only code with one language which would it be?
#18If I had actual time limits, python.
Re: Ask HN: If you could only code with one language which would it be?
#19Re: Ask HN: If you could only code with one language which would it be?
#20If you know Java, it takes a week or so before you're comfortable, and after that it's magical. All of the boilerplate, all of the tiny little frustrations and bad ergonomics, are just gone.
IntelliJ is a fantastic IDE, too, and I didn't bother picking it up until I started playing with Kotlin.
Kotlin compiles to JVM bytecode, and it runs everywhere I'm currently deploying applications. It can be mixed in with existing Java baselines, and interoperability is almost perfect.
Kotlin also cross-compiles to Javascript, and there's a new Native target, which I haven't played around with yet, but seems like a decent answer to Go's statically compiled, platform native, single binary output.
Lastly, there's an experimental feature that allows you to write one source base and target native, the JVM, and browsers. That finally gives me a single language that I can run anywhere that isn't Javascript.