Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Simon Meskens
    @SimonMeskens
    from then on, it acts just like any old TS type
    something in that vein at least
    Nathan Ridley
    @axefrog
    so, compile SimonScript to TypeScript to JavaScript? Or vice versa?
    Simon Meskens
    @SimonMeskens
    I'd rather say extend TypeScript to allow defining custom type-checking functions that act like types?
    Nathan Ridley
    @axefrog
    But haven't you been describing a process where the types don't end up in the final output?
    hence some kind of transpilation step.
    Simon Meskens
    @SimonMeskens
    I think I can do it without an extra transpilation step, if TS just treats them like any old type, it's just that when it checks them for correctness, it uses the type-check function you provide instead
    I'll have to go digging into the TS code to see how it works, which I dread
    Nathan Ridley
    @axefrog
    better you than me :smile:
    Simon Meskens
    @SimonMeskens
    yeah, I tried in the past to see how it works, didn't get very far, I'm not very good at comprehending mature codebases
    Nathan Ridley
    @axefrog
    That's pretty normal, and is often the reason people write their own stuff - digging into an existing codebase (not to mention figuring out the code boundaries between legacy decisions and current ideals) is generally no fun.
    Simon Meskens
    @SimonMeskens
    I seem to recall that someone I know has posted PRs for TypeScript
    I just can't remember who
    Simon Meskens
    @SimonMeskens
    hmm, seems like Tycho has made some PRs in the past, maybe he can help
    Simon Meskens
    @SimonMeskens
    I'm half-tempted to just switch to ClojureScript
    my idea would be easy there :)
    Nathan Ridley
    @axefrog
    @SimonMeskens What do you think about pre-currying the collectable API? I have a feeling the performance hit would be too small to be an issue. It would mean some of the overloads would need to be broken apart into differently-named function permutations though.

    e.g. just now I wrote:

    HMap.update(activeEdges => HSet.add(edgeId, activeEdges), 'activeEdges', state);

    And found myself wishing I could instead write:

    HMap.update(HSet.add(edgeId), 'activeEdges', state);
    Low importance really, just pondering, really...
    Simon Meskens
    @SimonMeskens
    @axefrog Hah, I forgot to check in
    the advantage of currying is that it also allows for more complex typing
    I'm in favor
    Patrick Michalina
    @patrickmichalina
    Are you guys still developing this repo?
    I want to fix the typescript typings, the are not correct as far as I can tell
    Nathan Ridley
    @axefrog
    Hey Patrick
    Project is "active", I just haven't had a chance to work on it much this year
    Patrick Michalina
    @patrickmichalina
    Oh glad its still active, really interested in the repo
    for high performance immutable work, instead of just spreading everything and using copying like I have been.
    Nathan Ridley
    @axefrog
    The typings are TS-generated, but TS has had new releases since the last commit, so it's possible that a breaking change is invalidating the defs that are in the package
    sure thing
    Patrick Michalina
    @patrickmichalina
    So in TS 3.1
    Nathan Ridley
    @axefrog
    out of curiosity, most people jump on the Immutable.js bandwagon - what made you look elsewhere?
    Patrick Michalina
    @patrickmichalina
    the only methofds are Internal @@ that intellisense picks up
    Nathan Ridley
    @axefrog
    ah weird
    Patrick Michalina
    @patrickmichalina
    for 1, I try not to follow the bandwagon if I can help it
    Nathan Ridley
    @axefrog
    If you want to jump in and fix it, I'll process the PR
    Patrick Michalina
    @patrickmichalina
    I haven't audited performance but from repo layout it looks like you guys are serious
    Also, the curried portion of code is not included, even though it was in the documentation
    Nathan Ridley
    @axefrog
    I made it because nothing else suited my needs - I've never really heavily promoted it though
    Yeah the intention was to autocurry the API, but I never got that far.
    Patrick Michalina
    @patrickmichalina
    It comes off as more functional than the facebook one
    Nathan Ridley
    @axefrog
    Yeah that was the intent :)
    Currently swamped... 70-80 hrs/week on my main project, hence PRs more than welcome
    Patrick Michalina
    @patrickmichalina
    Ok awesome, I wanted to confirm PRs are welcome
    Nathan Ridley
    @axefrog
    bbiab, hit me up if you have any questions, I'll keep an eye out on Gitter
    Patrick Michalina
    @patrickmichalina
    I am swamped too, but fixing TS to 3.0 shouldn't be too hard
    Nathan Ridley
    @axefrog
    Thanks for the interest :-)
    Patrick Michalina
    @patrickmichalina
    on the path to cleaner code
    :)
    Nathan Ridley
    @axefrog
    :+1: