-
-
Hi!
Is there any reason the the bindings need to be generated at every build time? It seems to take around three seconds for *every build*. Crystalline, the best and only Crystal IDE supporting tool …
-
I'm learning & playing with SPARQL on a local ttl RDF dump, and noticed the following two queries. They are only different in a pair of braces, but the performance differs greatly.
This query used …
-
Yarn and web brick
-
Inside a `lib` declaration you can use `type` similar to an alias but making its own type:
```crystal
lib LibSomething
type Foo = Void*
fun some_function : Foo
end
```
The idea behind…
-
Similar to what is done for LibC bindings on other plataforms. The source could be `windows.h` and related files from some C compiler, could be extracted from the MSDN documentation itself (page scrap…
-
```cr
require "./web"
window = Web.window
console = window.console
document = window.document
# I had to do this to compile:
console.log JS::String.new("Width: #{window.inner_width}")
conso…
-
Hello,
consider this demo code which simply adds 100 buttons:
```crystal
require "gobject/gtk/autorun"
window = Gtk::Window.new
window.connect "destroy", &->Gtk.main_quit
fixed = Gtk::Fixed.…
-
I was playing with `fun` and found something. I try to show you a minimal example:
```crystal
fun print_chrray(value : Char[5])
puts value
end
print_chrray(StaticArray(Char, 5).new('x'))
`…
-