ocaml-community / ocamlscript Goto Github PK
View Code? Open in Web Editor NEWWrite an OCaml script, run an optimized executable
License: Boost Software License 1.0
Write an OCaml script, run an optimized executable
License: Boost Software License 1.0
Hello.
Just out of curiosity, since the subject of my question seems completely out of the scope of this project, but have you any plan to take it further to an interactive shell (like sh, csh, zsh, fish etc.)?
Would be great to have a complete OCaml solution for UNIX-like shells.
Great work! Thanks!
I've been writing some scripts which share some common code in a separate module. When I edit the script itself and run it, the code is recompiled as expected. When I edit the separate module and run the script again, it is not recompiled and the old code runs instead. I was hoping it would magically notice that the separate module had changed and recompile, like traditional scripting languages would. (I'm trying to encourage people used to python to try this)
Error I get if I try to run an ocamlscript under a 5.1.0 ocaml switch.
It does not happen w/ earlier versions of ocaml.
Ocamlscript looks like it would be incredibly useful for a nixos user.
If ocamlscript is intended to eventually be built with dune, I could help out once that is done by adding a flake.nix to add an easy installation option (including spawning a shell that temporarily has the git master version of ocamlscript and cleans up & removes it once you are done).
Camlp4 is deprecated for a long time, Camlp5 as well. It makes sense either migrate to mehrir, or extension points for preprocessing and parsing capabilities.
See discussion about Camlp4, Camlp5, Ulex and modern OCaml here: https://discuss.ocaml.org/t/camlp5-and-ocaml-4-08/3985
Also it makes sense to switch to Dune build system as well, plus adding a CI scripts.
for the no-merlin-errors to work I think ocamlscript.cmi/std.cmi must be installed.
nice to see this old project revived/advertised - it's great.
revision: I see ocamlscript.cmi now in for v3.0.0 ! leaving std.cmi
A .travis.yml file should be added to the repository and the CI system should be turned on by an administrator. Generally, builds should be tried on the latest several versions of OCaml, on both Linux and on MacOS.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.