-
When installing Crystal through `snap`, it will default to the latest stable version. Snap has an option to specify a "channel" which will install a different version. Currently Crystal only has these…
-
Note: I've successfully got bindgen to work under macos. I had to modify the scripts a bit, but I was able to compile clang and everything. I just couldn't get `-ltinfo`, I just removed it for now.
…
-
In gtk we have gobject-introspection. Many language bindings are available
based around gobject-introspection. Even in crystal!
https://github.com/jhass/crystal-gobject
Would it be possible for…
-
This code fragment triggers the internal compiler BUG check for "has no type" at semantic/bindings.cr:13
```crystal
class AnyValue
end
class MyValue(MyValueType, DataType)
def set_data(value)…
-
Trying to build Qt5 bindings for Qt 5.5 with Crystal 1.1.0 resulted in this:
```
...
[ 92%] Linking CXX executable parser
[100%] Built target parser
qt5.cr
In lib/toka/src/toka.cr:339:9
33…
-
https://play.crystal-lang.org/#/r/8kjf
```cr
require "http/request"
abstract struct Param; end
abstract struct Parameter(T) < Param
getter name : String
getter default : T?
getter t…
-
-
If you want to use some special JSON operators https://www.postgresql.org/docs/14/functions-json.html like
```sql
metadata->'value' ?| array[1, 2]
```
The code will assume the `?` is a bind o…
-
The main purpose of the `Void` type is for C bindings where it represents no value. In Crystal's type system it maps to `Nil`. The philosophical difference is that a `Nil` value is still a value and n…
-
This is a recap of a side conversation started in #11876:
@asterite [commented](https://github.com/crystal-lang/crystal/pull/11876#issuecomment-1061705850):
> A bit unrelated to this PR, but I t…