Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 10 2015 14:58

    jiyinyiyong on master

    index minifer and update README (compare)

  • Oct 17 2015 16:57

    jiyinyiyong on master

    add entries to clir and cirru-w… (compare)

  • Sep 26 2015 15:00

    jiyinyiyong on master

    index more index vim-cirru index parser-combinator.clj (compare)

  • Jun 27 2015 11:18

    jiyinyiyong on master

    index moonscript version (compare)

  • Jun 24 2015 17:00

    jiyinyiyong on master

    switching from react to deku (compare)

  • Jun 21 2015 13:10

    jiyinyiyong on master

    index Elixir code (compare)

  • Jun 14 2015 07:59

    jiyinyiyong on master

    update Gitter (compare)

Jon
@jiyinyiyong
vagusX
@vagusX
1
Andrew Nambudripad
@xornand
mmm so is there an analogue to foldr1' of haskell where the accumulator is defaulted to a value

also re: the web assembly support --

_k - is there a write up?

also does the 'return' keyword have the same semantics as haskell
it doesnt look like it's monadic hmm
Jon
@jiyinyiyong
Mar 16.. so 3 days ago..
Cirru is only an AST representation, rather than a language. I'm using Cirru to generate JavaScript and Clojure at this moment, no Haskell yet.
To compile to Haskell, I also need to generate type declarations. My skills is not enough for that. @xornand
Shaun LeBron
@shaunlebron
@jiyinyiyong Hi :)
I'm reading through the webassembly issue WebAssembly/design#617
you mention the string syntax as something you're not happy with
this seems like a limitation of using JSON as the AST target, and this implementation detail has leaked into the language

you obviously know EDN would fix that by providing symbol types, but can't you have meta info added to the AST?

a => "a"
"a" => {type: "string", value: "a"}

Shaun LeBron
@shaunlebron
and sorry, bare with me while I'm still learning the lang :)
Jon
@jiyinyiyong
I read you post this morning. I'm in Beijing time(+0800), did check Gitter last night.
String was a problem somehow. I think current solution is OK to me
blob
blob
I thought about several solutions, "|a string" is one of them
Jon
@jiyinyiyong
previously I tried to use (string "a string") to mark that token is transformed directly into a string
like a constructor. But turned out to be long for writing.
blob
I was trying to fit my code into that syntax tree, and in the meanwhile keep the tree as simple as possible. many restrictions.
and for JSON, it's actually less then JSON. If you read its type, it's only Lists and Strings.
blob
Jon
@jiyinyiyong
hashmap or object can be good for marking the type of a leaf node, but I got the problem of editing it in a tree. By now Cirru Editor is only for Expression and Token, like Lisp. If I want to include hashmaps, it may lead huge work on refactoring my editor
Shaun LeBron
@shaunlebron
hey, no problem on delay in responding. my responses will be delayed too :)
I still don't quite get this string problem, but I'll keep thinking about it today
Jon
@jiyinyiyong
blob
Think about this: I was trying to create a DOM tree to edit Lisp code and generate JSON tree, and I have some restrictions: 1) the editor should be simple, or it could be hard to reuse and build, 2) the editor should be capable of expressing a language, including data types and expressions. What's the best one you can get?
Jon
@jiyinyiyong
And this article influenced Cirru's design a lot http://norvig.com/lispy.html