crystal
crystal copied to clipboard
The Crystal Programming Language
We can check the famous find alternative tools [fd](https://github.com/sharkdp/fd), following is it build script. https://github.com/sharkdp/fd/blob/master/.github/workflows/CICD.yml#L208-L209 We can check those tools differentiate the auto-completion for bash, fish etc with a extension...
As you can see in [this sample](https://github.com/crystal-lang/crystal/blob/master/samples/sudoku.cr#L7) from the repo, it pretty common to need nested eachs, wouldn't it be nice to have a method this like showed below? ```crystal...
Detecting the OpenSSL version using pkg-config is prone to bugs when a libssl.pc or libcrypto.pc definition aren't available, or pkg-config itself isn't available. Using a C preprocessor to extract the...
Implements the Digest methods in Digest::CRC32 and Digest::Adler32. Fixes #10343
The `::Digest` abstract class represents an API for calculating/updating/finalizing digests (originally based off of Ruby's `Digest::Base` class). However, `Digest::Adler32` and `Digest::CRC32` do not inherit from `::Digest`. However, `OpenSSL::Digest`, `Crystal::Digest::MD5`, `Crystal::Digest::SHA1`...
We're currently using the `macos-10.5` image in GHA which is deprecated and expected to be removed by end of August (https://github.com/actions/virtual-environments/issues/5583). I have started the infrastructure update at https://github.com/crystal-lang/crystal/compare/master...straight-shoota:crystal:feature/ci-upgrade-macos?expand=1 Besides...
When running std_spec, `spec/std/gc_spec.cr` currently fails with ``` 1) GC raises if calling enable when not disabled GC is not disabled (Exception) from src/gc/boehm.cr:174:5 in 'enable' from spec/std/gc_spec.cr:10:7 in '->'...
All of the expressions at the top should return `true`, and the `NoReturn` at the bottom should be `B(Int32)` since it simply swaps the order of the operands to `&&`...
```sh $ crystal -v Crystal 0.36.1 (2021-02-02) LLVM: 11.0.1 Default target: x86_64-apple-macosx $ uname -a Darwin 18.7.0... ``` ```crystal class Strategy1(T) def initialize(@item : T) end def find(&block) : T?...
To reproduce: ``` $ ls crystal/ $ ln -s crystal cr; cd cr $ bin/crystal spec spec/std/dir_spec.cr Using compiled compiler at /home/user/crystal/.build/crystal ......................................................F................. Failures: 1) Dir .current Failure/Error: Dir.current.should eq(`#{{{...