crystal 是一门采用类 ruby 语法的编译型语言。如今终于发布了 1.0.0 版本。
# A very basic HTTP server
require "http/server"
server = HTTP::Server.new do |context|
context.response.content_type = "text/plain"
context.response.print "Hello world, got #{context.request.path}!"
end
puts "Listening on
http://127.0.0.1:8080"
server.listen(8080)
https://crystal-lang.org/
--
FROM 110.81.41.*