Hacker News new | past | comments | ask | show | jobs | submit | krisajenkins's comments login

A coding video that walks you through building a Neovim plugin that can do some interesting Docker actions.


We ran out of good names years ago. Then Java came along and we used up all the words beginning with J. Then the dotcom years scooped up all the domain names and all the twsted up wrds like flickr. Then npm took all the variationsofpunctuation, varations-of-punctuation and variations_of_punctuation. Now there are no virgin words left in the English speaking world.

TBH, I'm amazed that Proton wasn't already taken.


An in-depth interview about Zig with Loris Cro of the Zig Foundation.


An interview with the creator of Gren, a new functional, fullstack programming language that branches off from Elm.


This is marvellous. IMO Functional has always been a bigger deal than Reactive. Great to see more of that pursuit of simplicity paying off.


Writing JavaScript and feeling you're surrounded by errors is pretty normal. It's a hastily-designed language. There's no getting away from the fact that everything is going to feel a little bit fragile. Just accept it and don't expect perfection.


Hastily designed for version 0.0.1, this is simply not the case if you are using modern EMCAScript


Is equality still broken? Are maps still broken? Is it still a sporadically whitespace-sensitive language?


not AFAIK, but I am not an expert.


Leading questions, I'm afraid. Yes, equality is still broken, maps are broken (and in new & interesting ways in EMCAScript 6), and the language is occasionally whitespace-sensitive.

JavaScript was hastily designed, has never recovered, and shows no sign of ever fixing the fundamental problems. :-(


Case sensitivity i'm assuming you mean the automatic semi-colon insertion due to a line break after a return statement? I have a hard time seeing this as being a reason to dislike an entire language.

Most languages have features to avoid, JavaScript is no different. Many JavaScript developers use linters to avoid the poor `==` feature. I'm unfamiliar with the argument of the `Map` datastructure implementation being broken. Do you have a reference to that claim?


Equality isn't really as broken as people seem to think. And if it bothers you that much, use ===. Yes, it can be annoying, but it works.

What do you mean about maps, and whitespace sensitivity? I've never heard anything about that.


"locally stateful, globally pure-functional"

Can you expand on that, please? Because it seems to me that state fulness propagates up through the system. I can't imagine a system that was pure in the large but side-effecting in the small. I'd be interested to hear how that works...


One way is to use local mutable state within functions that are implemented so as to be not rely on external state, which are then indistinguishable to calling code from pure functions.


Yes, that's what I had in mind.

If only there was an effect system that could guarantee purity and at the same time not be in the way (i.e. allow full or Scala-like type inference). Then purity would be guaranteed by types, like it is in Haskell. (N.B. I'm not asking for Haskell's purity by default. I advocate impure as default, with a type guarantting purity.)


Anyone know how the compilation times compare with regular Scala?


Scala's compile times (along with other aspects of its development experience) are among my biggest annoyances with the language. It just seems like it should be way better than it is for such an intellectually advanced language.

I've been investing a lot of time in learning Scala because I think that it's at the head of the vanguard of a software engineering revolution, but with some of its ergonomic issues, I can't help thinking it's eventually going to lose out to something that's more elegant from a design standpoint and has better tooling.


Take a look at Kotlin (http://kotlin.jetbrains.org), it was designed to address the issues you mention.


Fascinating, thanks! For anyone else interested, I found this to be useful: http://confluence.jetbrains.com/display/Kotlin/Comparison+to...


Kotlin seems like a lightly stripped down Scala.


Lightly? I'd say one of the most important features were removed - implicits and most of the typesystem magic. Kotlin feels just like Java with lambdas, better null checking. slightly improved generics and some minor syntactic refinements. Most of its "features" will be obsoleted by Java 8.


It's basically equivalent to Scala for the compilation itself (no noticeable difference). But the browser refresh in dev mode can take up to 5 seconds (or down to under 1 sec, depends on the machine). There is a tool that helps with this by using clever tricks to refresh the browser without reparsing the standard lib: https://github.com/lihaoyi/scala-js-workbench


Love it. This is brilliant fun.


You're assuming that all the visits are evenly distributed over the day. I doubt that assumption will hold...


No, I explicitly assumed peak loads about 10 times the average, 100 reqs/s instead of 12 reqs/s..


Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: