Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
Yurii Rashkovskii
@yrashk
My current list of languages I am considering is JavaScript (Duktape VM), Lua 5.3, Gluon (http://gluon-lang.org/)
this way the next version of CLI commands can be developed in a language that is easier to write & maintain
this also leads to exposing those languages into the reduction framework so one won't be limited to JavaScript VM we have now.
Yurii Rashkovskii
@yrashk
preview RFC (no real content yet) http://sit.fyi/rfc/CORE-1.pdf http://sit.fyi/rfc/CORE-1/
paullucas
@paullucas

I'm not a Windows user, so this question may be slightly flawed. But if a user has Git installed, it would include programs like Bash and Sed.
Is that still incompatible with a typical Windows development workflow?

Interesting, I'll have to look into Gluon. I tend to be using Lumo for scripting lately. But that most likely introduces additional dependencies (Node).
Go also comes to mind, but is compiled. Then again, a module could distribute cross-compiled binaries (with compilation of them being optional).

Yurii Rashkovskii
@yrashk
Git is not a requirement (I mean, it is for sit-mr, but not in a general context for SIT)
Yurii Rashkovskii
@yrashk
Yeah, Lumo doesn't look very embeddable
Compiled stuff is an option, especially with the upcoming module manager, but then I'd rather prefer Rust for that :)
But people can obviously compile their CLIs with whatever they want.
Yurii Rashkovskii
@yrashk
another option for documenting specs is to use something like ReSpec http://bitcoin-wallet-api.github.io/spec/
but those are more closely tied with W3C
paullucas
@paullucas
Yes, Rust definitely makes more sense.
One more scripting language I'm curious about is Chibi.
It's typically used as an extension language in C programs, but it seem others have attempted to use it Rust as well.
https://github.com/ashinn/chibi-scheme
Yurii Rashkovskii
@yrashk
this is nice
Yurii Rashkovskii
@yrashk

was just looking at my previous hook sketch
the exit results I designated there were: Continue, Postpone, Stop(OkOrError)
thinking if this is sufficient or even good
paullucas
@paullucas
That seems comprehensive. I can't think of any use-cases not covered by those 3 options.
Yurii Rashkovskii
@yrashk
I am trying to drill down into this a bit... trying to understand what makes hooks hooks -- it feels like they are something else but they are hooks because they are executed at some point (before/on/after...)
just trying to flesh out the definitions
to have a cleaner design
They are kind of like... chained operations?
Yurii Rashkovskii
@yrashk
is it effectively something like a state monad? (I am no Haskeller so I don't know what I am talking about :D )
paullucas
@paullucas
It definitely feels monadic. It's been a minute since I've worked in Haskell though, so can't say much on state monads.
Yurii Rashkovskii
@yrashk
I never really wrote much Haskell at all
I am just trying to extract the base primitive here in an effort to avoid writing a lot of overspecialized code
paullucas
@paullucas
I'm still working through the (excellent) book by Chris Allen & Julie Moronuki (http://haskellbook.com/).
But, from looking at some docs/examples, I do think a state monad could encapsulate what's happening here.
Yurii Rashkovskii
@yrashk
I have that book, I believe
I tried to express this as a reduction but this doesn't work well with hooks taking control of the execution pipeline (postpone/stop)
so it does feel closer to a state monad
Yurii Rashkovskii
@yrashk
@paullucas just wanted to check in with you to see if you had a chance to play with the temporary workaround idea for hooks (fs watch) or if you have any other questions/thoughts?
Yurii Rashkovskii
@yrashk
Big day! I finally managed to finish up the more-or-less-working version that switches sit to flat records namespace
Liaizon Wakest
@wakest
was just reading about SIT and downloaded the binary and have no idea how to get it to run. Seems to assume I understand what to do with a file that has no .filetype ending on it. Am on macOS
Yurii Rashkovskii
@yrashk
@wakest hi!
rename them to sit and sit-web (to drop the name of the plaform), then runchmod +x sit sit-web to make them executable
can also put them into something like /usr/local/bin to be able to access them from anywhere
there will be a better installer for OSX later :)
Yurii Rashkovskii
@yrashk
@wakest let me know if this was helpful at all or if I can help in any other way!
Liaizon Wakest
@wakest
hey thanks, managed to get sit to run earlier after rereading your about page, I had totally missed the section called "Obtaining SIT" that has the curl install line in it. Maybe just renaming that section install would help...
Yurii Rashkovskii
@yrashk
@wakest great!
Any suggestions on what to rename it to?
Liaizon Wakest
@wakest
maybe just "Installing SIT"?
Yurii Rashkovskii
@yrashk
@wakest perhaps
maybe I'll move it to a more prominent location
Yurii Rashkovskii
@yrashk
(btw, next version will only have one executable, sit, as opposed to two that the last release has [sit and sit-web] -- I made a decision to merge sit-web into sit)
Joseph Buchma
@josephbuchma
Hi,
I installed sit on Ubuntu using bash script, cloned sit repo and ran sit-web 127.0.0.1:9000 in it.
All I see at localhost:9000 is "No web overlay defines an application.". What I did wrong?
Paul Kretschel
@paulkre
I'm getting the same error. Would file an issue but the error is preventing me from doing that. 😄