Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 13:47
    straight-shoota closed #12051
  • 13:47
    straight-shoota closed #12050
  • 12:17
    beta-ziliani edited #7318
  • May 15 08:43
    r00ster91 closed #7318
  • May 15 08:17
    r00ster91 closed #7690
  • May 14 17:01
    Blacksmoke16 labeled #11995
  • May 14 13:03
    webhive closed #12055
  • May 14 10:19
    straight-shoota milestoned #12051
  • May 14 10:00
    I3oris edited #12051
  • May 14 08:45
    oprypin review_requested #11977
  • May 13 23:29
    Blacksmoke16 unlabeled #12061
  • May 13 22:56
    Blacksmoke16 edited #12061
  • May 13 22:56
    Blacksmoke16 edited #12061
  • May 13 22:54
    Blacksmoke16 labeled #12061
  • May 13 22:54
    Blacksmoke16 labeled #12061
  • May 13 22:54
    Blacksmoke16 labeled #12061
  • May 13 22:54
    Blacksmoke16 opened #12061
  • May 13 20:14
    straight-shoota labeled #12060
  • May 13 20:14
    straight-shoota labeled #12060
  • May 13 20:14
    straight-shoota opened #12060
Nick Franken
@fridgerator
minimum 2 years
j/k, i dont nkow
From IRC (bridge bot)
@FromIRC
<cerulean> id agree tho
Gavin Ray
@GavinRay97
I'm a fullstack React/Vue + Ruby/Rails dev
been looking at Crystal recently
how hard would it be to port a Rails API to a Crystal project?
Faustino Aguilar
@faustinoaq
@GavinRay97 We have been working on Amber, it is very similar to Rails and is in active development, take a look https://amberframework.org/
Also if you like something minimalist like Sinatra you can try http://kemalcr.com/
Gavin Ray
@GavinRay97
@faustinoaq Thanks! I'm looking for the most lightweight API-only setup with simplistic syntax, essentially.
Faustino Aguilar
@faustinoaq
:+1:
Papierkorb, qt5.cr is amazing :sparkles:
qt5.cr
Faustino Aguilar
@faustinoaq
Hi @bcardiff Can you check bcardiff/crolog#2 ? I think this PR is mergeable I tested on latest crystal version.
Ekrem Karaca
@ekremkaraca
Morning 🌄👋
Faustino Aguilar
@faustinoaq
Morning :raising_hand:
Bar Hofesh
@bararchy
Morning all
imonmyown
@imonmyown
morning guys
Bar Hofesh
@bararchy
@faustinoaq that's really cool
Bar Hofesh
@bararchy
What's the syntax for method alieas ?
or is it only for types ?
From IRC (bridge bot)
@FromIRC
<Groogy> Morning!
<Papierkorb_> Morning
<Papierkorb_> @bararchy, only type aliases. Method aliases are frowned upon. If you meant a delegator, you can use the delegate macro delegate foo, bar, baz, to: @something
Bar Hofesh
@bararchy

I just want to have two names for the same method , let's say I have .destory, and I want it to respond to .close too, and doing

def close
  destory
end

is a little ugly

From IRC (bridge bot)
@FromIRC
<Groogy> huh what does the delegate macro do exactly? Not seen that before
<Groogy> also @bararchy a good question would be why do you want two symbols to correspond to the same functionality?
Bar Hofesh
@bararchy
so that I can conform with the original lib, and also the languge standards
:)
From IRC (bridge bot)
@FromIRC
<Groogy> #destroy is sometihng I usually associate with resources while #close would be something like IO or a window
<Groogy> ah
<Yxhuvud> groogy: it forwards a method call to whatever it delegates to
<Groogy> so it would forward foo.bar to @something.bar?
<Papierkorb_> yes
<Papierkorb_> @bararchy, it looks ugly because aliases are ugly
<Papierkorb_> Ruby has been burnt by it, its stdlib is full of aliases. It sucks.
<Yxhuvud> I kinda like it. YMMV.
Bar Hofesh
@bararchy
is there a way I can know if an object is being called from the main Fiber or from another spawn ?
Bar Hofesh
@bararchy
So, started working on TensorFlow bindings for Crystal, if anyone want's to join in: https://github.com/NeuraLegion/tensorflow.cr, it's MIT licensed ofc
imonmyown
@imonmyown
@bararchy not sure I can be of help, but if I can let me know how
sorry, didn't get to Contributing section
Bar Hofesh
@bararchy
:) @imonmyown you can see what is under development, just pick something you want to add, see the referances, and PR
imonmyown
@imonmyown
Ok, got it :)
imonmyown
@imonmyown

I don't seem to be able to assign to an element of a newly allocated array

    prefix = Array(Int32).new(arr.size.as Int)
    prefix[0] = 1

Getting Index out of bounds...

From IRC (bridge bot)
@FromIRC
<Papierkorb_> As expected. That array is empty. Though your snippet looks like you can #map from it. Otherwise, you can set the initial value to pre-fill the array to the given size.
From IRC (bridge bot)
@FromIRC
<jokke> i was just playing around with crystal to expose c functions to create dynamic libraries
<jokke> for c
<jokke> but i ran into my first problem: crystal redefines main
<jokke> can i circumvent this?