Live data from Hacker News

Show HN: Imba – I have spent 7 years creating a programming language for the web

news.ycombinator.com

281–290 of 354 posts

Re: Show HN: Imba – I have spent 7 years creating a programming language for the web

#282
It’s a double take to see scrimba as a YC company because I used them a while back so feel like they are an established company not a startup. In any case the experience of learning React on that platform is wonderful and gave me the best long term recall performance of any course I have done.

Re: Show HN: Imba – I have spent 7 years creating a programming language for the web

#283
post #243

Earlier quoted context omitted.

Asynchronous code can sometimes be difficult to write efficiently so having implicit awaits might help with avoiding accidentally made fire and forget calls. An interesting concept might be to explicitly call a function as asynchronous with a new keyword flipping the typical usage of ‘await’. I’d still advocate for the usage of ‘async’ in function signatures though as it helps when reasoning through an asynchronous c…

I started working in node around version 0.8, before both native Promises and async/await. I worked with guys that started after async/await. The new guys just think of everything like it's synchronous. They don't understand Promises. They never look at code and think "I can run this in parallel with Promise.all and a reducer". They just await each thing one at a time. So, I'm not sure the async/await annotations are…

I'm new to NodeJS but it was my understanding that using await like that would help by not blocking the thread, leaving node free to process other requests.

Re: Show HN: Imba – I have spent 7 years creating a programming language for the web

#284
post #271

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.

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?

Firefox 91 on Windows. 2011 CPU. Radeon RX 570 GPU.

I have a low spec PC, and it is running just fine.

Maybe some extension slows down your Firefox? I don't use an anti-ads and anti-spam extension, I deal with that via hosts file.

Re: Show HN: Imba – I have spent 7 years creating a programming language for the web

#285
post #274

Hi Dan, I noticed that the links in the post are actual links here, unlike usual and what https://news.ycombinator.com/formatdoc says. Is this new? Is it just for Show HNs?

We linkify text submissions for Show HNs and other interesting text posts where it's clear that the feature isn't being misused. I did that on the OP.

See also https://news.ycombinator.com/newsfaq.html:

Q: How do I make a link in a text submission?

A: You can't. This is to prevent people from submitting a link with their comments in a privileged position at the top of the page. If you want to submit a link with comments, just submit it, then add a regular comment.

Re: Show HN: Imba – I have spent 7 years creating a programming language for the web

#286
post #271

Earlier quoted context omitted.

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?

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.

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.

Re: Show HN: Imba – I have spent 7 years creating a programming language for the web

#287
post #180

Earlier quoted context omitted.

Typescript will cover this!

Typescript lets you call into un-annotated libraries or annotate things as `any` or whatever.

You can cover this with eslint: https://github.com/typescript-eslint/typescript-eslint/blob/...

Re: Show HN: Imba – I have spent 7 years creating a programming language for the web

#288
post #276
post #270

Earlier quoted context omitted.

> 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.

No that's not what good is, I in fact love languages with concise syntax, Java is probably the worst in that department.

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.

Re: Show HN: Imba – I have spent 7 years creating a programming language for the web

#289
post #266

Earlier quoted context omitted.

lack of types and it used to be ignorant of perf in the generated code (creating IIFE unnecessarily)

Regarding types, you're right, though JSDoc can get you very far Regarding perf (performance, I guess?) - are you speaking of the single, global one? As CS takes care of variable scoping automatically, I think it makes a lot of sense (and is deactivatable anyway)

no coffeescript desugars into functions things like switch statements, do statements and some other things (that have nothing to do with functions)

Re: Show HN: Imba – I have spent 7 years creating a programming language for the web

#290

Earlier quoted context omitted.

> The distinction between HTML, JS and CSS always made perfect sense to me. Really? HTML is already heavy on syntax, and the whole point of SGML-style angle-bracket markup is to invisibly structure text hierarchically and sneak in rendering properties or other "metadata" not rendered to the user, via attributes. In which universe, then, has it ever made sense to write rather than in a document representation language…

> The end effect is that CSS isn't approachable for even seasoned graphic artists let alone laymen; another effect being browser complexity resulting in monopolies. This is so true. CSS has become a multi-headed Hydra whose parts appear completely unrelated to each other. I've been a developer and designer for more than 20 years and I have no idea what the parameter names and orders are for position, versus grids, ve…

> To do any real work with CSS means you have memorize a bunch of conflicting weirdness and/or keep a reference page open at all times.

I agree with CSS being complicated, but this statement is true for pretty much everything. Not a day goes by I don’t close 20+ reference tabs at the end of the day, not counting what I closed throughout the day. It’s simply impossible to be a polyglot and not use references.

Post reply on HN