Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 31 2019 12:51
    pushqrdx edited #176
  • Jan 31 2019 12:51
    pushqrdx edited #176
  • Jan 31 2019 10:18
    pushqrdx opened #176
  • Jan 31 2019 07:20
    pushqrdx commented #169
  • Jan 31 2019 01:04
    iamtirado commented #169
  • Jan 29 2019 22:04
    shreeve commented #175
  • Jan 29 2019 13:09
    somebee closed #173
  • Jan 29 2019 13:09

    somebee on master

    Reset Stack.tag before each com… Bump version to 1.4.2 (compare)

  • Jan 29 2019 12:24

    somebee on master

    Lookup event handlers up the ow… (compare)

  • Jan 29 2019 12:23

    somebee on master

    Reset rewriter between runs Merge branch 'master' of https:… (compare)

  • Jan 29 2019 07:40
    shreeve opened #175
  • Jan 28 2019 21:26
    shreeve closed #174
  • Jan 28 2019 21:26
    shreeve commented #174
  • Jan 28 2019 21:24
    shreeve edited #174
  • Jan 28 2019 21:24
    shreeve opened #174
  • Jan 27 2019 14:37
    darcyturk opened #173
  • Jan 27 2019 10:04
    darcyturk commented #128
  • Jan 26 2019 11:56
    Alhadis opened #172
  • Jan 22 2019 01:29
    CassianoSF closed #171
  • Jan 22 2019 01:29
    CassianoSF commented #171
Sindre Aarsaether
@somebee
Expert def fuzzy...
And import {fuzzy...}
See import/export on MDN. The syntax is basically the same
Cassiano Surdi Franco
@CassianoSF

Have you seen this? https://externos.io/

I think this could be a good showcase for imba, going to try it this weekend.

Eric Vida
@ericvida
thanks @somebee. I had a misspelling in import.
and missing curly braces
Fedor Leschinsky
@altteo
@somebee watch from 5:30 https://youtu.be/c0oy0vQKEZE about private class properties. There are interesting things also after that.
Also just found out that a month ago Microsoft Edge (previosly known as IE) fully switched to chrome stack (blink + v8) and now they work the same. Minus one compatibility headache.
André Kaufmann
@akaufmann
Hi, is there a way to see the compiled output on Scrimba like in the Svelte repl? If not can fill an issue somewhere - https://github.com/scrimba/community/issues?
Bildschirmfoto 2020-02-22 um 11.42.11.png
Sindre Aarsaether
@somebee
‘cmd+j’ is a secret shortcut for compiling the imba code and adding the compiled output as a comment below
André Kaufmann
@akaufmann
Ah, nice :smiley: Thanks Sindre!
Alexander Alemayhu
@scanf
GitBook looks mostly fine but two things do suck. i) No syntax highlighting ii) Forgetting to hit the save button when editing.
I think the first one we could solve by using a server app that can render imba code examples as images. Similiary to what imba.io does with markdown but is this overkill?
I can get used to black and white but does it give a bad impression for beginners?
Eric Vida
@ericvida
i think using the ruby syntax highlighting is somewhat better than none. I felt like it gave a mostly consistent highlighting for imba.
Fedor Leschinsky
@altteo
You can also try python
Sindre Aarsaether
@somebee
It seems obvious that we’re going to move the docs to our own thing in a couple of months. Lets use gitbook until we’re satisfied with the content, and then roll our own thing :)
Eric Vida
@ericvida
oh yeah
cstffx
@cstffx

This code

while true
    const a = 10
    break

while true
    const a = 10
    break

compile to

while(true){
    const a = 10;
    break;
}

while(true){
     a = 10;
     break;
}

I expected the second "a" to be const a = 10 too. Is this normal?

This was on imba 1
Sindre Aarsaether
@somebee
are consts block scoped_
cstffx
@cstffx

They are inside a function. Is this what you mean?

But withlet it is as I expected

while true
    let a = 10
    break

while true
    let a = 10
    break

Compile to

while(true){
    let a = 10;
    break;
}

while(true){
    let a = 10;
    break;
}
Fedor Leschinsky
@altteo
I have an unhealthy desire to rewrite compiler from scratch. @somebee What would you say?
Sindre Aarsaether
@somebee
I say it is needed :P but not something I have time to do :)
It might be better to start thinking about it when v2 is released and stable. We ought to rewrite the compiler itself to v2 at some point anyways :)
Fedor Leschinsky
@altteo
At the moment i have all time in the universe. And there are a lot of things to be done: compiler, online repl, components library, components playground, documentation, some stunning examples.
but there are things that i would change in the language itself and in the render engine.
the only thing i still have no opinion is state managment. I mean whether we should have some special declarative syntax for describing state.
@somebee i meant that i could do it.
Fedor Leschinsky
@altteo
@somebee if you support me, i will do it all, but you will need to spend time with me (so i don’t cut things that are critical for you)
cstffx
@cstffx
Why don't work in a language specification before any next step?? Like the ISO 16262 but for Imba.
Sindre Aarsaether
@somebee
I'm very time constrained (even more than usual), so I probably won't have too much time to follow up. But before we/you start rewriting it all I think we ought to discuss and look at proposed user facing changes. Even if the compiler is pretty messy I'm extremely satisfied with the tag compilation in v2 :)
Alexander Alemayhu
@scanf
How about starting off by cranking out a few blog posts about Imba internals on your own? This can be useful for you and others :+1:
@altteo ^
Would be amazing if you did it in the same style as Fabien http://fabiensanglard.net/quakeSource/index.php
Eric Vida
@ericvida
@scanf I see a lot of docs pages that had content are now blank? I used those everyday, Are you planning to replace them soon? Why not leave them until you get around to updating them?
Fedor Leschinsky
@altteo
@scanf That is the problem - the internals of imba never been readable and understandable. It is more a proof of a concept than an open source project with community. That was an internal tool made and used by Sindre. And than just opensourced. So it’s time to make it shine. But the first thing to do is to set goals of the language and its major features. So when there will be a dispute we could choose that point of view which is more relevant to the principles.
Fedor Leschinsky
@altteo
My vision is that imba should be the 5-th gen language. The first was machine codes. The second was asm. The third was C. And the fourth is JS. Each next generation was closer to humans than to bare metal. And starting from js we could code without thinking of computers at all. So imba should become more clear and friendly.
And though js is very universal it was designed (pretty good) in 10 days in times that a lot of concepts does not exist. I mean interface and state management. And Sindre’s approach to interface is brilliant (custom syntax for modeling interface and that interface is a function).
Fedor Leschinsky
@altteo
If we could figure out how to make state management clear and easier than with universal language (i mean its a good idea to design specific syntax for state management) it will be i think the first 5 gen lenguage.
Fedor Leschinsky
@altteo
Ideas i came to for the moment is that state could be changed from two different sides - from user through the interface and from other computers (like requests or realtime dbs). And when it is changed functional programming again come into place - all other stuff could be calculated automatically (mobx approach). And with special syntax we could make some garanties (like elm) on compiler level.
So we could do two gateways - one from the interface and other from requests. Set “quarantine” for side infuantion.
Fedor Leschinsky
@altteo
Maybe i went too deep. But i faced an exponential growth of complexity when I tried to handle events from ui and from db in one place (through event bus).
Maybe it is not a matter of special syntax but a proper architecture. But it is a good thing to be opinionated in such things and force them.
Alexander Alemayhu
@scanf
@iamtirado making your old pages blank are not intentional. I have no idea why GitBook keeps doing that. I thought it was due to a save / merge issue. Do you know why it does that?
I was actually telling Sindre about this yesterday too. Hopefully I will get a chance today to read through the GitBook manual.
Eric Vida
@ericvida
Hmm. Is it synced with github?
might be able to chat with support.