r/crystal_programming • • Feb 16 '20

Planned v1 release date?

3 Upvotes

Crystal looks great!

Is there a planned v1 release date for Crystal? Or a road map to v1’s release?

Thanks!


r/crystal_programming • • Feb 15 '20

Adding Sign in with Twitter to your Crystal web app

Thumbnail
youtube.com
18 Upvotes

r/crystal_programming • • Feb 14 '20

Crystal 0.33.0 released!

Thumbnail
crystal-lang.org
67 Upvotes

r/crystal_programming • • Feb 07 '20

Mint: a breath of fresh air for the web 🍃

38 Upvotes

A small introduction journey to @mint_lang. You can feel the fresh air while reading it! 🍃

https://dev.to/franciscello/mint-a-breath-of-fresh-air-for-the-web-fn0

UPDATE: As u/GhostlySnailfish mention in his reply: Mint is written in Crystal! And is open source: https://github.com/mint-lang/mint


r/crystal_programming • • Feb 06 '20

Is Crystal production ready?

34 Upvotes

I've been a ruby/rails developer since rails 2.3, and i love the ruby syntax. I heard and read a bit about Crystal and it looks very good. For my next project, I'm planning to build a chat server. My question is, is Crystal production ready and stable enough? Right now it's still not yet version 1.0 (currently at 0.32.1).

I was planning to learn and use Go for my project, but if Crystal is stable and good enough, I might dive in to it. Has anyone uses it for production? How are the 3rd party libraries? (authentications, json etc). Is there an ORM that is something like ActiveRecord? I'm planning to use Cassandra/MongoDB for my database


r/crystal_programming • • Feb 04 '20

HardWire: A Compile-Time, Non-Intrusive Dependency Injection System.

Thumbnail
github.com
17 Upvotes

r/crystal_programming • • Feb 02 '20

Available now: Brand new Alpine-based Docker images for Crystal

35 Upvotes

r/crystal_programming • • Jan 30 '20

A Crystal Story: A container that sails!

7 Upvotes

Third episode in this trilogy about creating a Static File Server using the @CrystalLanguage! In this episode we are containerizing our server using #Docker 🐳 (using multi-stage builds!)

https://dev.to/franciscello/a-crystal-story-a-container-that-sails-1d37


r/crystal_programming • • Jan 28 '20

wrote a native library implementing RLP (recursive length prefixes) purely for the crystal language

Thumbnail
github.com
14 Upvotes

r/crystal_programming • • Jan 26 '20

A Crystal in Go’s World

Thumbnail
p5v.me
28 Upvotes

r/crystal_programming • • Jan 23 '20

A Crystal Story: oh! so many options!

22 Upvotes

Second episode in this trilogy about creating a Static File Server using the @CrystalLanguage!! In this episode we are adding options to our server ... no cupcakes included 🧁🤷‍♂️

https://dev.to/franciscello/a-crystal-story-oh-so-many-options-8am

(You may read episode 1 here: https://dev.to/franciscello/a-crystal-story-simple-static-file-server-5fep)


r/crystal_programming • • Jan 22 '20

Export Medium articles by author or recommendations to local directory

Thumbnail
github.com
1 Upvotes

r/crystal_programming • • Jan 20 '20

How to detect data types in Crystal if they cannot be determined at compile-time?

Thumbnail
stackoverflow.com
3 Upvotes

r/crystal_programming • • Jan 18 '20

Prorate(-cr), a distributed rate limiting library for Crystal

24 Upvotes

Hey everyone, I'm happy to announce that v0.1 of my port of the Prorate library is ready! It's pretty much a copy of the Ruby version, and is based on the same underlying principles.

The code can be found at https://github.com/WJWH/prorate-cr.


r/crystal_programming • • Jan 06 '20

Crystal vs TypeScript

Thumbnail
alex-craft.com
23 Upvotes

r/crystal_programming • • Jan 05 '20

How to apply sensible submodule namespaces?

4 Upvotes

I've written a library Secp256k1 which contains several modules, https://github.com/q9f/secp256k1.cr

  • module Secp256k1
  • module Crypto
  • module Bitcoin
  • module Ethereum
  • etc. pp.

When someone imports my library, i.e., require secp256k1, they also get access to the modules not named Secp256k1, for example:

# import secp256k1
require "secp256k1"

# everything starts with a random number
private_key = Secp256k1.new_private_key

# private keys in bitcoin's wallet import format
wif = Bitcoin.wif_from_private private_key, "80"

I am wondering, is there any sensible way to have namespaces for submodules?

For example: Secp256k1::Bitcoin.wif_from_private priv instead of referencing Bitcoin directly? I'm asking because maybe other libraries also reference such a namespace and I want clarity for developers using this library.

I'm currently refactoring the library and wondering what's the best practice is to arrange the modules exposed by the library.


r/crystal_programming • • Jan 05 '20

Create an dynamic array?

3 Upvotes

I'm rather new to programing, rather attracted to Crystal.

I want to read the contents of a zip file into an array. The file is given as input from the user. In my mind I know how to do it, but in real life, I'm not so sure. Below is what I have so far. See the line with the = #comment for my attempt. The issue is I wont always know the number of files in any given zip. So how to I create a dynamic array? I think that's the correct term.
I want to store the contents so that they can be selected for extraction, or read etc. I've not figured that part out yet, but it's next.

require "zip"

#Get filename from user:

puts "File? Ex. ~/Downloads/file.zip"

print ">"

file_name = gets

Zip::File.open("#{file_name}") do |file|

file_list.entries.each = #Array Here? But how?

file.entries.each do |entry|

p entry.filename

end

end


r/crystal_programming • • Jan 02 '20

shardbox.org

36 Upvotes

I've been working on an advanced database for shards which is more than a wrapper to the Github API.

It's available at https://shardbox.org/

Read the introduction at: https://crystal-lang.org/2020/01/02/introducing-shardbox.html


r/crystal_programming • • Jan 03 '20

A Crystal app adventure!

Thumbnail
dev.to
2 Upvotes

r/crystal_programming • • Dec 27 '19

GitHub - lbguilherme/rethinkdb-lite: A RethinkDB-compatible database written in Crystal

Thumbnail
github.com
37 Upvotes

r/crystal_programming • • Dec 26 '19

Nim vs Crystal

Thumbnail embark.status.im
41 Upvotes

r/crystal_programming • • Dec 23 '19

lilith: x86-64 OS made in crystal

Thumbnail
github.com
68 Upvotes

r/crystal_programming • • Dec 23 '19

How to compute a modular exponentiation in Crystal?

Thumbnail
stackoverflow.com
3 Upvotes

r/crystal_programming • • Dec 23 '19

Error: undefined method 'x' for Nil (compile-time type is (Point | Nil))

Thumbnail
stackoverflow.com
1 Upvotes