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://127.0.0.1:8080"
server.listen

Status

Top Sponsors

Community

Crystal wouldn't be the same without the great community that gathered around it. And you can be part of it, too.

You can check here how to get involved.

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