Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 18:56
    HertzDevil labeled #13028
  • 18:56
    HertzDevil labeled #13028
  • 18:56
    HertzDevil labeled #13028
  • 18:56
    HertzDevil opened #13028
  • 18:11
    HertzDevil labeled #13022
  • 18:11
    HertzDevil edited #13027
  • 18:03
    HertzDevil edited #13025
  • 18:03
    HertzDevil edited #13025
  • 18:02
    HertzDevil labeled #13027
  • 18:02
    HertzDevil labeled #13027
  • 18:02
    HertzDevil opened #13027
  • 17:44
    HertzDevil labeled #13026
  • 14:52
    straight-shoota milestoned #13025
  • 14:52
    straight-shoota milestoned #13025
  • 12:23
    asterite edited #13025
  • 12:21
    asterite ready_for_review #13025
  • 07:55
    Tamnac opened #13026
  • Jan 28 21:02
    Blacksmoke16 labeled #13025
  • Jan 28 21:02
    Blacksmoke16 labeled #13025
  • Jan 28 21:02
    Blacksmoke16 labeled #13024
moe
@moe:busyloop.net
[m]
looks like it hasn't been updated for latest crystal version
From IRC (bridge bot)
@FromIRC
<uncomfy> hello. new to crystal. joined because maybe there are some good advices here. :⁠)
uncomfyhalomacro
@uncomfyhalomacro:opensuse.org
[m]
oh so it's bridged
uncomfyhalomacro
@uncomfyhalomacro:opensuse.org
[m]
@straight-shoota (Johannes Müller) regarding crystal to be packaged in opensuse, i dont want to maintain other distributions except openSUSE since i don't know how other distributions do it. you won't mind if i just add my own spec to crystal to devel:tools:compiler right? thoughts? or should we change some things a bit
From IRC (bridge bot)
@FromIRC
<yxhuvud> it is bridged to some places, but I don't think straight-shoota is on either side anymore.
<yxhuvud> discord is probably more reliable for that
<yxhuvud> or the forum
Wayne Walker
@wwalker

I'm trying to add elements to a json object that is a hash. I'm beating my head against a wall. Here's the simplest I can get it (https://play.crystal-lang.org/#/r/egs1 ) but it just won't let me add an element that will have sub elements....

I've tried at least 30 combinations.... (probably some of them repeats). What am I doing wrong?

George Dietrich
@Blacksmoke16
steppin back, is there a reason you cant use JSON::Serializable?
and actual types versus JSON::Any?
6 replies
moe
@moe:busyloop.net
[m]
oh, looks like element has threads now. fancy schmancy.
@borpzorp:midov.pl
[m]
been like that for a year
From IRC (bridge bot)
@FromIRC
<mps> long time didn't been here. is the crystal ported to arm32?
looks like ARM 32-bit Linux (GNU libc, hardfloat) is a tier 2 platform
From IRC (bridge bot)
@FromIRC
<mps> @Blacksmoke16: I see, there is no musl in a list
George Dietrich
@Blacksmoke16
possible it just needs added? guess you'd have to try and see how it goes
From IRC (bridge bot)
@FromIRC
<mps> well, maybe I will try
From IRC (bridge bot)
@FromIRC
<mps> hm, it could be cross compiled and linked but can't run on musl based arm32
Ramakrishnan Vasantha Gopal
@vgramkris
Not an expert on HTTP stuff. Is there anyways the formdata posting example given here can be implemented with IO::Memory? https://crystal-lang.org/api/1.7.2/HTTP/FormData.html#:~:text=require%20%22http%22%0A%0AIO,body%7D%22%0Aend
Ramakrishnan Vasantha Gopal
@vgramkris
thanks @oprypin:matrix.org will check that
Wayne Walker
@wwalker

I need a VERY simple queue. 1 publisher, a few subscribers. I want to write in crsytal. So far I've found 2 amqp shards, and one zeromq shard.

datanoise/amqp.cr with no commits for 4 years, and apaprently not working with new versions of crystal
crystal-community/zeromq-crystal no commits for 2 years, and seems incomplete
cloudamqp/amq-protocol.cr seems up to date, but no apparent docs/examples

Anyone have a recommendation for a queue that they know has a good working crystal shard?

Ali Naqvi
@naqvis

haven't used myself, but this one seems updated recently.

https://github.com/cloudamqp/amqp-client.cr

you can consider using redis as your pub/sub server, and crystal client library https://github.com/stefanwille/crystal-redis
From IRC (bridge bot)
@FromIRC
<mps> did anyone bought book "Crystal Programming" from packt, written by George Dietrich and Guilherme Bernal. is the worth money?
z
@z:uxn.one
[m]
I've been considering it
z
@z:uxn.one
[m]
Can someone recommend a few projects to help me learn Crystal?
1 reply
Rodrigo Mendonça
@ropermen
I did. Yes, It's so worth it.
Wayne Walker
@wwalker
Thanks @naqvis redis would probably work just fine for my simple need.
Truong Hoang Dung
@revskill10
Do you know any good kafka client for crystal ?
From IRC (bridge bot)
@FromIRC
<mps> @ropermen: thanks. I already bought "Programming Crystal" released 2019 written by Ivo Balbaert. Though it is useful to some degree I didn't learned much from it
<mps> I want to by good book for my daughter because she is interested in learning crystal and she don't know ruby. and previous book I bought expect that reader knows ruby to some degree
mane
@mane:arcticfoxes.net
[m]
@mps i know of that one and the one from Packt Publishing (May 27, 2022) "Crystal Programming: A project-based introduction to building efficient, safe, and readable web and CLI applications" by George Dietrich and Guilherme Bernal
It's still on my reading list so can't recommend it yet
But it's about doing project based learning
George Dietrich
@Blacksmoke16
It expects prior programming knowledge, but experience with Ruby is not required
From IRC (bridge bot)
@FromIRC
<mps> @mane:arcticfoxes.net: yes, I saw github examples
<mps> looks like rest of book is promising
<mps> @Blacksmoke16: that's ok, because my daughter know C
Rodrigo Mendonça
@ropermen
@mps
@mps, Just out of curiosity, how old is your daughter?
From IRC (bridge bot)
@FromIRC
<mps> @ropermen: more than 20, she is student at university
Rodrigo Mendonça
@ropermen
That's great.
I think crystal is a very intuitive language. I own a company that has been providing services to the public sector (government) for almost 25 years. The products are implemented in Ruby on Rails. I met Crystal a couple of years ago. Currently we have implemented some new modules in Crystal. I'm passionate about Crystal syntax.
From IRC (bridge bot)
@FromIRC
<mps> in my long programming/computing experience I'm not sure it is great, maybe some other simpler professions are better :⁠)
<mps> @ropermen: yes crystal syntax is very nice, easily readable