Julia programming language: Difference between revisions

From annawiki
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

  1. https://redmonk.com/sogrady/2018/08/10/language-rankings-6-18/ #36

TIOBE

https://www.tiobe.com/tiobe-index/

  1. 2016-09 : Julia enters the Top 50 - http://silvaetechnologies.eu/blg/223/julia-enters-tiobe-index-top-50-for-the-first-time
  2. 2018-08 : 50 Julia 0.156% , "Julia re-entered the top 50"

PYPL

  1. http://pypl.github.io/PYPL.html - not in Top 22


Web

  1. https://discourse.julialang.org/tag/web

HTTP.jl

  1. https://github.com/JuliaWeb/HTTP.jl
    1. 2017-02-12 ANN https://discourse.julialang.org/t/ann-new-http-jl-package/2048

Mux.jl

  1. https://github.com/JuliaWeb/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

  1. https://github.com/JuliaGizmos/WebIO.jl
    1. https://travis-ci.org/JuliaGizmos/WebIO.jl build failing ...

Dance

  1. https://github.com/DanceJL/Dance.jl
    1. 2020-05-01 https://discourse.julialang.org/t/dance-jl-python-flask-equivalent-web-framework/38560

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.

Criticism

Comparison