saityi / a-tour-of-standard-ml Goto Github PK
View Code? Open in Web Editor NEWA Tour of Standard ML (in the style of A Tour of Go)
Home Page: https://saityi.github.io/sml-tour/
License: MIT License
A Tour of Standard ML (in the style of A Tour of Go)
Home Page: https://saityi.github.io/sml-tour/
License: MIT License
Thanks for sharing it.
Also learned something about haskell site generation.
This would be infinitely more useful if you showed how to call the functions. Is that in your plans?
For example below, if we add:
val x = (inc' 1) = (inc 1) (* true *)
to
val _
doesn't show up in the output but x does.
[opening 01-04-functions.sml]
val inc = fn : int -> int
val add = fn : int -> int -> int
val inc' = fn : int -> int
val x = true : bool
Another thought to put this over the top would be to change your filenames so that typing them into the repl is not completely tedious which it is now!
You are the best, friend. Peace to you. Thank you for sharing this work.
This is intentionally open-ended, and more of a request for help --
I don't have much experience with front-end. It's not very pretty and the CSS would likely horrify those familiar with CSS. If someone wants to swing by and pretty it up, you are very welcome to do so! โค๏ธ
With the introduction of an in-page code runner, I removed any syntax highlighting as it would now need to be done on the fly. It would be nice if the in-page editor at least had some keyword-based colour.
This would be a bigger lift, and would require investigation into options. A couple I've explored so far:
I'm not set on an approach yet, but this would greatly improve the usability of the tour, and would allow people to explore SML much more readily.
This could be a 'chapter 4: getting started in 2020 <today>'; possible contents include:
This is an area where I'm lacking in knowledge. I primarily use SML/NJ & MLton, emacs, and do package management manually. A chapter about this, written by someone with experience in these areas, would be very welcome ๐
Currently, the examples files are verified by hand, which is a bit of a tedious process. It would be ideal if it was verified during Travis CI that all of them will load into an SML/NJ repl.
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.