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
We'll take a look. Maybe @scanf can get it running :smile:
Fedor Leschinsky
@altteo
I could do it. The only thing I could not figure out where and when you remove all "\" from OPTS.imbaPath
Oh, it is removed later. The thing is that you should use path.join for cross platforms.
Sindre Aarsaether
@somebee
Yeah, we definitely need to fix this
Eric Vida
@ericvida
Are svg's working in imba2? I'm not sure if it's been discussed.
<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg width="100%" height="100%" viewBox="0 0 520 524" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;"><rect id="head" x="0" y="0" width="519.66" height="523.399" style="fill:none;"/><g><path d="M223.621,10.151c149.911,-22.108 266.464,79.957 286.166,217.906c19.702,137.95 -76.299,265.942 -214.248,285.644c-137.95,19.702 -265.942,-76.299 -285.644,-214.248c-18.56,-129.947 63.815,-267.194 213.726,-289.302Z" style="fill:#ffe676;"/><path d="M77.282,85.164c-25.295,48.055 -35.282,103.874 -27.494,158.407c19.702,137.95 147.695,233.951 285.644,214.249c58.857,-8.406 110.079,-36.525 147.935,-76.72c-36.456,69.27 -104.487,120.698 -187.828,132.601c-137.95,19.702 -265.942,-76.299 -285.644,-214.248c-11.067,-77.488 13.756,-157.571 67.387,-214.289Z" style="fill:#ffd95e;"/></g></svg>
Alexander Alemayhu
@scanf
Yes, SVG seems to work. I can make you a nice example.
BTW, if anyone else is struggling with inconsistent indentation on Scrimba. Sindre added the cool SHIFT+ALT+I to make it obvious.
Alexander Alemayhu
@scanf
What do people think about moving to a self-hosted version of Mattermost?
We could run it on chat.imba.io, https://mattermost.com/
Sindre Aarsaether
@somebee
I think discord is the best alternative to gitter actually. Slack done right :j
Alexander Alemayhu
@scanf
Maybe discord is better.
Has anyone else experienced this? I am trying to port an old OpenGL example
Error: TypeError: node.c is not a function
    at Object.eval (VM2234 exe1.bundle.js:2)
    at a.execute (VM2224 cached-__sw__tracker-e3d9fade408155f32abb.js:1937)
    at a.finalExports (VM2224 cached-__sw__tracker-e3d9fade408155f32abb.js:1941)
    at s.moduleResult (VM2224 cached-__sw__tracker-e3d9fade408155f32abb.js:1972)
    at ModuleLoader.import (VM2224 cached-__sw__tracker-e3d9fade408155f32abb.js:1883)
    at async https:/scrimba.com/assets/cached-__sw__tracker-e3d9fade408155f32abb.js:1572
Sindre Aarsaether
@somebee
Oh, this is a compiler infernals error. Startes to improve these error messages yesterday
I might be able to take a look around lunch
Alexander Alemayhu
@scanf
The weird thing is that it compiles fine locally with the latest Imba.
Alexander Alemayhu
@scanf
Actually it's just imbac that works, seeing the same error with the rollup hello world template.
Sindre Aarsaether
@somebee
May be because rollup uses older version of imba?
You could try updating to the latest v on scrimba
Alexander Alemayhu
@scanf
Hmm, I will look at it again later.
I will get a windows machine later today, so hopefully going to experience new issues there :D
Alexander Alemayhu
@scanf
What should the Imba v2 slogan be?
Fedor Leschinsky
@altteo
The web-language you will love :)
Alexander Alemayhu
@scanf
:+1:
Eric Vida
@ericvida
@scanf I figured out svg's http://chico.tirado.app
Can I bind an input value to a parent's prop with
<input[#context.search]>?
Sindre Aarsaether
@somebee
Nope - I dont think so, but you can send it in using a special bind syntax.
Will whip up an example
Sindre Aarsaether
@somebee
@iamtirado you can bind props using this syntax: https://scrimba.com/c/c4Pa8ysL
Might change though
but this allows us to use the form bindings in wrapped components etc
Eric Vida
@ericvida
that's perfect.
Eric Vida
@ericvida

Can anyone help me convert this fuzzy search function to imba syntax? I'm getting too many errors. Maybe someone can help me do it well. I'm not sure how to get around the outer part.

'use strict';

function fuzzysearch (needle, haystack) {
  var tlen = haystack.length;
  var qlen = needle.length;
  if (qlen > tlen) {
    return false;
  }
  if (qlen === tlen) {
    return needle === haystack;
  }
  outer: for (var i = 0, j = 0; i < qlen; i++) {
    var nch = needle.charCodeAt(i);
    while (j < tlen) {
      if (haystack.charCodeAt(j++) === nch) {
        continue outer;
      }
    }
    return false;
  }
  return true;
}

module.exports = fuzzysearch;

```

Here's my attempt: https://scrimba.com/c/cD7QnBuv
Sindre Aarsaether
@somebee
We dont support labeled loops ATM - but it could be implemented with a slightly different approach. Will post when at my computer
Sindre Aarsaether
@somebee
Not sure if it works - i found quite a few errors :) But you can at least check it out
Not sure if we will support labeled loops and continue/break (label name). Much more powerful to be able to continue and break with values (see bottom examples here https://www.imba.io/guides/language/loops#loops)
Eric Vida
@ericvida
Thanks for the example. I had never seen that the labels being used in Imba. I thought that might be it.
But i didn't know how to work around it.
Great examples in the docs too. i need to understand those better.
useful stuff
Eric Vida
@ericvida
What's the proper way to export and import a module? I can't get it to work.
Shouldn't I be able to do
---- fuzzySearch.imba
export fuzzySearch needle, haystack
        ...
---- app-root.imba
import fuzzySearch from './fuzzySearch.imba'
console.log fuzzySearch("one", "two")
using the imba2-hello-world example
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.