HTTP
Starting an HTTP server looks a lot like node:
using Morsel
app = Morsel.app()
get(app, "/about") do req, res
"This app is running on Morsel"
end
start(app, 8000)
The Package System
Seem to be built into the language
> Pkg.add("foo")
Packages are github repos. They're imported with a git clone
. Therefore you can patch the package in situ and push the changes up straight away.
However, they seem to be installed globally with no versioning, not sure what's quite going on here.
Syntax
Seems easy to understand. C style but without the cruft.
function x(y)
for z in x
print(z)
end
end
Simple type system
type Point
x::Int64
y::Int64
end
point = Point(1,2)
point.x = 3
Other stuff
- Simple install
- REPL support
- No compilation (it looks like a script)
- Sublime Text 3 support (via a plugin)
- Destructing assignment
"a string with a $variable_name"
- coroutines
- It's a bit slow to compile (circa 4 seconds on Windows)
- I can't edit a file while it's running (file is locked)
- Has locked the command prompt from time to time on exit (for about 10 seconds)