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 13 of 91

soheil2 replies#
This read like gibberish to me

   name
Why are we moving away from elegant legible HTML/JS/CSS stack to no nightmares like this and React where everything is smooshed together?

> bringing the elegance and concision of Ruby into the browser
As a big fan of Ruby how does this tap into the elegance of Ruby? Ruby is readable, this is not. In Ruby it's very difficult to write code that makes people suffer greatly to understand, this seems to be the opposite.
> It is very opinionated, so some of you might not like it
As if that's the reason people won't like this. Give me a non-opinionated language and I'll show you as many people not liking it. Create a good language and people will flock.

geenat1 reply#
Thought this at first but it's just tailwind css aliases. They are interchangeable with the full name.

fs = font-size
fw = font-width
ta = text-align
c = color

redbar0n#
what I don't understand is why not have these abbreviations as snippets (text expansions) in the IDE, instead of language primitives?

So that the primitives match what people are familiar with from before, and match the actual web standards/specifications.
So that code which is reproduced and communicated online is also immediately readable for people who are not familiar with the abbreviations.
To gain adoption, reducing onboarding friction is key, and judging from my impression of Imba, as well as others' comments here, I think a lot of that unnecessary friction could be reduced.
On the other hand, if pros like reading very terse code, maybe an IDE plugin could be made to toggle the abbreviations.

nsonha1 reply#
> Create a good language and people will flock.

What a truthfully useless statement. "Good" means having opinions about things that dont matter? Like "I don't like that css uses full words, I prefer these acronyms"
Who gives a shit? Is this language designed to prevent copy pasting? You may be on to something here.

soheil2 replies#
No that's not what good is, I in fact love languages with concise syntax, Java is probably the worst in that department.
nsonha#
yeah who doesn't, except you don't have to make a "better" language with concise syntax but mediocre in everything else (exact same semantic as javascript, we already have python for that). Make a lisp or a haskell.

And this garbage css syntax is not concise, it's stupid, it's concise in the same sense that emoji is concise comparing to English.

hakube2 replies#
Really? Java has the best syntax out there. It's consistent and very easy to read unlike Go, Rust or the modern languages these days
dragonwriter#
> Java has the best syntax out there

De gustibus non est disputandum
> It's consistent and very easy to read unlike Go, Rust or the modern languages these days
Eh, its Algol-style syntax with a bunch of unique flourishes, like...lots of popular languages. Its nothing special, but its not especially consistent.
If your experience is heavily in Java, then it is probably particularly consistent (with your experience) and readable to you, but it doesn't seem to have any features that make it more of either of those than most popular languages in any general, not-experience-dependent, sense.

nsonha#
Go is like java minus semicolons and classes. I'd say the syntax is the almost the same but go's semantics are more simplified.

I dont think there is anything special about java syntax but agree that it's simple and consistent. Java used to not have "var" and looked really dumb by having type and constructer to be the same duplicated thing, but other than that what I hate about it was mostly java beans and accessors. The problem was the idioms, not the syntax.