Julia programming language: Difference between revisions
Line 23: | Line 23: | ||
===Mux.jl=== | ===Mux.jl=== | ||
#https://github.com/JuliaWeb/Mux.jl | #https://github.com/JuliaWeb/Mux.jl | ||
<code> | |||
function myapp(req) | function myapp(req) | ||
return "<h1>Hello, $(req[:params][:user])!</h1>" | return "<h1>Hello, $(req[:params][:user])!</h1>" | ||
end | end | ||
In principle this should say "hi" to our lovely user. But we have a problem | In principle this should say "hi" to our lovely user. But we have a problem | ||
</code> | |||
indeed, since Hello != hi | indeed, since Hello != hi | ||
===WebIO=== | ===WebIO=== | ||
#https://github.com/JuliaGizmos/WebIO.jl | #https://github.com/JuliaGizmos/WebIO.jl |
Revision as of 2020-06-22T02:18:27
Speed
Speed comparison
Popularity
Redmonk
TIOBE
https://www.tiobe.com/tiobe-index/
- 2016-09 : Julia enters the Top 50 - http://silvaetechnologies.eu/blg/223/julia-enters-tiobe-index-top-50-for-the-first-time
- 2018-08 : 50 Julia 0.156% , "Julia re-entered the top 50"
PYPL
- http://pypl.github.io/PYPL.html - not in Top 22
Web
HTTP.jl
Mux.jl
function myapp(req)
return "
Hello, $(req[:params][:user])!
"
end
In principle this should say "hi" to our lovely user. But we have a problem
indeed, since Hello != hi
WebIO
- https://github.com/JuliaGizmos/WebIO.jl
- https://travis-ci.org/JuliaGizmos/WebIO.jl build failing ...
Dance
Manual
https://docs.julialang.org/en/stable/manual/strings/
- Input of Unicode character in single quotes
- \u followed by up to four hexadecimal digits or
- \U followed by up to eight hexadecimal digits
Cc: Other, control Cn: Other, not assigned In: Invalid, too high Ll: Letter, lowercase Lu: Letter, uppercase Ma: Malformed, bad data Po: Punctuation, other Sm: Symbol, math Zs: Separator, space
Not in the doc: the classes are from https://www.unicode.org/versions/Unicode11.0.0/ch04.pdf#G134153
https://docs.julialang.org/en/stable/manual/variables/#Allowed-Variable-Names-1
- must begin with a letter (A-Z or a-z), underscore, or a subset of Unicode code points greater than 00A0; in particular, Unicode character categories Lu/Ll/Lt/Lm/Lo/Nl (letters), Sc/So (currency and other symbols), and a few other letter-like characters (e.g. a subset of the Sm math symbols) are allowed. [WHICH?]
- Subsequent characters may also include ! and digits (0-9 and other [WHICH?] characters in categories Nd/No), as well as other Unicode code points: diacritics and other modifying marks (categories Mn/Mc/Me/Sk), some punctuation connectors (category Pc), primes, and a few other [WHICH?] characters.