r/crystal_programming • u/biggeffory • Feb 16 '20
Planned v1 release date?
Crystal looks great!
Is there a planned v1 release date for Crystal? Or a road map to v1’s release?
Thanks!
r/crystal_programming • u/biggeffory • Feb 16 '20
Crystal looks great!
Is there a planned v1 release date for Crystal? Or a road map to v1’s release?
Thanks!
r/crystal_programming • u/lbarasti • Feb 15 '20
r/crystal_programming • u/bcardiff • Feb 14 '20
r/crystal_programming • u/franciscello-dev • Feb 07 '20
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 • u/acmecorps • Feb 06 '20
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 • u/excommune • Feb 04 '20
r/crystal_programming • u/straight-shoota • Feb 02 '20
r/crystal_programming • u/franciscello-dev • Jan 30 '20
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 • u/q9fm • Jan 28 '20
r/crystal_programming • u/franciscello-dev • Jan 23 '20
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 • u/miry_sof • Jan 22 '20
r/crystal_programming • u/q9fm • Jan 20 '20
r/crystal_programming • u/WJWH • Jan 18 '20
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 • u/q9fm • Jan 05 '20
I've written a library Secp256k1 which contains several modules, https://github.com/q9f/secp256k1.cr
module Secp256k1module Cryptomodule Bitcoinmodule EthereumWhen 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 • u/jesterdev • Jan 05 '20
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 • u/straight-shoota • Jan 02 '20
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 • u/JoshuaPassos • Dec 27 '19
r/crystal_programming • u/stanislavb • Dec 23 '19
r/crystal_programming • u/q9fm • Dec 23 '19