book | rlua | |
---|---|---|
18 | 13 | |
1,160 | 1,677 | |
0.4% | 0.6% | |
2.7 | 8.2 | |
3 months ago | 3 months ago | |
OCaml | Rust | |
GNU General Public License v3.0 or later | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
book
-
OCaml: a Rust developer's first impressions
Some of your questions might be answered in this book (free online version): https://dev.realworldocaml.org/
- Compiler Development: Rust or OCaml?
-
Nix-Powered Development with OCaml
I don't think they're wrong
the Jane Street side are quite prolific with blog posts etc
as a newcomer to OCaml one of the first, and nicer-looking, intro resources you'll likely encounter is the Real World OCaml book https://dev.realworldocaml.org/ which unfortunately does everything using Base instead of the stdlib
Personally that didn't sit right to me and I prefer to use the stdlib by default (which seems fine and not in need of a wholesale replacement)
-
Comparing Objective Caml and Standard ML
This is an oldie but a goodie.
OCaml has, unlike Standard ML, grown quite a lot since this page was made.
In particular, the section "Standard libraries", I'd recommend looking at:
https://dev.realworldocaml.org/
A couple of places where the comparison is outdated:
- OCaml using Base [1] allows for result-type oriented programming
- OCaml using Base uses less language magic and more module system
While there was and is truth to the distinction that SML is for scientists and OCaml is for engineers, this dichotomy is getting dated: OCaml is under active development, which means that scientists who want better tooling will choose OCaml. For example, 1ML [2] by Andreas Rossberg was built in OCaml.
[1]: https://opensource.janestreet.com/base/
-
Resource recommendations for a beginner.
Real World OCaml (version 2 is finally out) is also pretty good.
-
OCAML HELP!
Real World OCaml is also a good resource, geared more towards people who already have some programming experience and want a more industry/practical focused learning experience.
-
Teach Yourself Programming in Ten Years
ocaml.org’s new website is packed with lots of great early intros.
most learners eventually gravitate towards Real World OCaml https://dev.realworldocaml.org/ for additional learning.
Unfortunately, the learning resources for different domains out there isn’t as highly curated or prolific as, say, rust. If you do web dev like me, it takes a bit more work to find the tools and put them together. But the language itself lends itself well to systems level programming.
Fortunately, the forum is a great help.
-
Help getting started with Ocaml
In general, better read the second edition which is updated to use current Core versions. A print version was published recently.
-
learning ocaml this semester.
I recommend https://dev.realworldocaml.org/ and https://cs3110.github.io/textbook/cover.html
-
Functional Reactive Programming
Elm is not dead. It just prefers a slow release schedule but is still actively worked on in the background.
That said, you might want to check out OCaml for general purpose programming. Super fast compiler, great performance, can target both native and JS.
It is easier to use than Haskell due to defaulting to eager evaluation (like most languages) strategy instead of laziness and being generally more pragmatic, offering more escape hatches into the imperative world if need be. Plus great upward trajectory with lot's of cool stuff like an effects system and multi-core support coming.
Real World Ocaml is a decent resource: https://dev.realworldocaml.org/
rlua
-
Rust and Lua api
There's the rlua package for running lua in your rust app: https://github.com/amethyst/rlua
-
What is your favourite Rust specific feature that you miss in other languages?
Some sys crates do embed the source files, like rlua for example.
- Hey Rustaceans! Got an easy question? Ask here (9/2022)!
-
Lua: Good, Bad, and Ugly Parts
[1] - https://github.com/amethyst/rlua/blob/master/examples/guided_tour.rs
-
I hate automod and have a question
Yes though, given that a CCleaner/BleachBit-style situation is going to be I/O-bound, I'd probably go with rlua, PyO3, or rust-cpython for plugins.
-
Ketos: Lisp dialect scripting and extension language for Rust programs
I wrote up some rust low-level bindings for guile [1]. The problem is that Guile liberally uses setjmp/longjmp, which breaks rust destructors. It might be possible to fix this by wrapping every call the way rlua does [2], but I'm not familiar enough with Guile to know.
1: https://github.com/ysimonson/guile-sys
2: https://github.com/amethyst/rlua/issues/21
-
Rust's interface to the Lua programming language is called 'mlua'. not Lust. This should get fixed.
And.. another binding finally called rlua https://github.com/amethyst/rlua
-
Does rust have function works like eval?
hlua or rlua are what you want for Lua, rust-cpython or PyO3 for Python, rutie for Ruby, and possibly deno_core for JavaScript.
- Embedding Lisp in C++ – A Recipe
-
I open sourced a game I just released on Steam, written in Lua
Janet is what introduced me to Fennel. Conjure [1] sold me on Fennel over Janet. The Neovim community is rallying around Lua.
(And in fact, what sold me on Rust was its truly excellent Lua FFI support [2].)
[1]: https://github.com/Olical/conjure
[2]: https://github.com/amethyst/rlua
What are some alternatives?
swift-async-algorithms - Async Algorithms for Swift
mlua
awesome-ocaml - A curated collection of awesome OCaml tools, frameworks, libraries and articles.
hlua - Rust library to interface with Lua
reason - Simple, fast & type safe code that leverages the JavaScript & OCaml ecosystems
janet - A dynamic language and bytecode vm
learn-you-a-haskell - “Learn You a Haskell for Great Good!” by Miran Lipovača
kaboom.js - 💥 JavaScript game library
ocaml-containers - A lightweight, modular standard library extension, string library, and interfaces to various libraries (unix, threads, etc.) BSD license.
bincode - A binary encoder / decoder implementation in Rust.
onelinerizer - Shamelessly convert any Python 2 script into a terrible single line of code
msgpack-rust - MessagePack implementation for Rust / msgpack.org[Rust]