Lurker News
Hey all

My name is Sindre, and I am the CTO of Scrimba (YC S20). For the last 7 years, I have written all my web apps in a full-stack programming language called Imba. It compiles to JavaScript and its main goal is to make web developers more productive.
I just launched a major overhaul of Imba, so I wanted to share it here on HN, in case anyone are interested in learning more about it. It is very opinionated, so some of you might not like it, but I would love to hear anyones feedback regardless. Constructive criticism appreciated!
The backstory:
Imba initially started in 2012 as an effort to bring the elegance and conciseness of Ruby into the browser, and also because I felt that JavaScript and the DOM should be more tightly coupled together. Over the years, I have taken inspiration from React/JSX, and also Tailwind.
Since 2013, I have built several business-critical apps in Imba, so this is not a toy project or an academic exercise, it is extracted from a real project trying to solve real problems. Today, we are currently a small but passionate community of devs who use Imba all over the world.
The nitty-gritty details:
As mentioned, Imba compiles to JavaScript, and it works on both the frontend and backend. The quickest way to get a feeling of how it works is by checking out this video: https://www.youtube.com/watch?v=8XS5q9xhaMc
Alternatively, here is a list of the main benefits of the language:
* Clean syntax with built-in tags and inline styles
* Imba's Memoized DOM approach is *an order of magnitude* faster than Virtual DOMs (Vue, React). Learn more here: https://www.freecodecamp.org/news/the-virtual-dom-is-slow-me...
* Imba works with Node and the npm ecosystem, and integrates tightly with both JS and TypeScript
* Blazing-fast dev/build tools based on esbuild
Each of the benefits above are explained more thoroughly in our docs here, so please check it out if any of the above points spark your interest: https://imba.io
With this version I feel that I am very close to my vision for what Imba should be. In other words; it is finally ready for public consumption. I'd wholeheartedly advice you to look into it and give it a whirl if you are interested in web development :)
Hope you like it, and please share any feedback you might have in the comments!
PS! We're also hiring Imba developers at Scrimba - see https://jobs.scrimba.com/. We don't expect you to be a seasoned Imba developer, but we expect you to pick it up fast :)

Comments (345) 91 threads

Show all comments

Showing thread 1 of 91

micheljansen8 replies#
I just want to compliment the OP on a very clear and comprehensive website at https://imba.io/. It clearly explains (by showing and telling) what Imba is, why I should care, how it works and how to get started. The floating demo applications even work well on mobile. Rare to see this level of polish for these things.
nailer3 replies#
One piece of feedback: it took me a moment to work out what 'pt', 'o' and 'fs' were. Single character variables are fine for algorithms but for demos you really want to use actual words.
linux26471 reply#
I’d agree If I’m using css daily I might know what these mean, but I only edit css once in a while, so most of these properties are lost on me
greggturkington#
I write CSS everyday and I had no idea what "fs" meant.

"fz" is the typical shorthand used for font-size (at least by Emmet-style autocompleters). "fs" is used for font-style instead.

scotty791 reply#
Those shorthands are optional.
nailer#
Great but they shouldn’t be used in demos.
rawoke083600#
Oh YES ! 100% - or if the demo spans "multiple files" but the code-snippets doesn't include a filename comment.

I.e //app.js ...
//my-todo.js ....

dtagames#
Very true! It's a great landing page for a language that gets into the meat of it right away with clear examples in code blocks. Nice work.
gregsadetsky#
Very true!

One small note to the author: the “We are hiring” at the very top, on mobile, is a bit broken. It appears on three lines. It looks great in mobile landscape, but not in mobile portrait mode.

antattack1 reply#
One thing that site does not specify is the Imba's license (MIT)
Bellamy1 reply#
What does it mean for projects build using imba?
lhorie2 replies#
Nothing you should worry about. MIT is a very permissive license.
knidoyl#
On side note, if you ever wonder what a licence means or do there is this website that help clarify this : https://tldrlegal.com/
Noumenon721 reply#
You have to worry about including the copyright and license in your software. I've never seen a project do that so I'm not sure how to do it or if MIT is actually usable.

Continue this thread — 1 reply

system21 reply#
Exact opposite of Elastic.co.
meepmorp2 replies#
Every time I consult their docs, I feel like I have less of a handle on the topic than when I started.
ziftface1 reply#
Hate to pile on, but I'm glad it's not just me. When I read their docs, I just get the feeling that I'm kind of dumb, or I just don't have the context they expect me to have.

Continue this thread — 1 reply

vosper1 reply#
I think this might be partly due to the query language being JSON? It makes every example huge and hard to understand. JSON is a serialization format that's human-readable, it's not a human-first language. So it's a pity that's how you're expected to write searches (I know they have some SQL support now, but I've never seen it in the docs)

Continue this thread — 1 reply

lhorie2 replies#
I've noticed that some projects being complimented for having good docs come from CTOs (esbuild is another example). I'm hoping that by pointing out this little correlation, people might feel more inclined to spend more time on writing docs for their projects if they aspire to climb in the career ladder :)
vijaybritto1 reply#
Thats a very good point. In my company whoever writes the most valuable and extensive docs are looked up by people automatically. Either for clarifications or just networking. For the past couple of months I have been making devtools for QA and documenting them and just recently found out that every single team uses them and got recognized for it in the all hands!!
peakaboo9 replies#
Any extra salary? No of course not. Lol.

Continue this thread — 9 replies

jbverschoor#
PostgreSQL, FreeBSD, Debian, rails all have superb docs.

Also, the software quality is high. This used to be the case for Apple and windows sdks. Not anymore.. now it’s “read the code“ or stack overflow

fwip1 reply#
I love the font chosen for the demo code, the descender on the f is very charming.
cutemonster#
I thought so too
js6i2 replies#
Is it just me? This website is super laggy on my PC (which can run modern games just fine). Hardly hits 50 fps when scrolling. How slow can one get and still claim to be fast?
p1necone1 reply#
Not just you, I have a pretty beefy desktop and it's noticeably laggy when scrolling for me too.

EDIT: ah - butter smooth in edge (and presumably chrome too), but laggy in firefox.

p1necone1 reply#
Further update - it turns out I'd turned off Hardware Acceleration in FF to avoid issues that Windows has when you have GPU accelerated content on two separate monitors with different refresh rates.

It's really bad with Hardware Accel turned off, but it's still a bit laggier with it on compared to chrome/edge.

Continue this thread — 1 reply

Continue this thread — 1 more reply