-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Garak (hot reloading / REPL) #17
base: main
Are you sure you want to change the base?
Conversation
e.g. `white = Color[255, 255, 255]`
This is great to see! |
- Doesn't need ".rb" suffix on filenames, like normal Ruby - Tracks loaded files in $" array, useful for code reloading
Getting conflicting symbol error on Linux, Windows and Darwin too.
Worked around the conflicting symbol issue from mruby-uri-parser
`configure` no longer autodetects when we want to cross-compile, instead, --host / --build must be passed. Next, it was figuring an incorrect path for the `ar` binary. So we set conf.archiver.command.
- Using `rake docker:build:mruby` - This has updated mruby to version 3.2
Changes have been applied to scripts/mruby/*.rb now
6bfeb18
to
4590da2
Compare
how is this one coming along? |
@HellRok would you like to work on this synchronously together? Over Discord, or VS Code, for instance. That's probably the easiest way to merge this 🙂 Here are some commits that might be easy to cherry pick:
That would help get a smaller overview of the "Garak" part and help to proceed Then we could go from here or there 🙂 Don't worry if timing isn't convenient. Just showing signs of life, lol |
@awfulcooking I finally have some time to reply to this!
|
This project is named Taylor, which made me think of Garak, the Tailor, from Deep Space Nine.
Anyhow.. I liked your work and wanted to quickly iterate on it as a base for my own stuff.
I started writing this module which implements a CLI REPL, and hot reloading.
It's intended to be used as an entry point (e.g.
$ taylor garak.rb
) and renders exceptions on screen until you save the file again, which reloads it.Attaching commits from #16 here. This was developed on top of them, but I think only one or two are necessary.
This PR is to share the idea / offer the implementation, but I don't have the bandwidth to rebase it just now.
I'll try to separate it later.
It implements MawJump, with REPL code adapted from a previous implementation on DragonRuby.
Presenting as an RFC / sample. Cheers.