The Programming Language

Language Goals

How it looks

# A very basic HTTP server
require "http/server"

server = HTTP::Server.new(8080) do |context|
  context.response.content_type = "text/plain"
  context.response.print "Hello world, got #{context.request.path}!"
end

puts "Listening on http://0.0.0.0:8080"
server.listen

Status

Top Sponsors

Community

Post a question or suggest something in our Google Group or join our IRC channel #crystal-lang at irc.freenode.net

Entries from our blog

??

Auto

A smarter compiler

&.

to_proc

Shortcut syntax for writing one-argument blocks

Hi

Hello World

The famous Hello World program written in different ways in Crystal