<FromGitter>
<drosehn> I'm not even trying to call openssl from crystal, but what version of macOS are you running on? And do you have a version of openssl installed via macports, or homebrew?
<crystal-gh>
[crystal] jwoertink opened pull request #3606: add match with block method to string. Fixes incorrect usage in docs (master...match_data) https://git.io/v1tdd
vikaton has joined #crystal-lang
Raimondi has joined #crystal-lang
Raimondi has quit [Ping timeout: 244 seconds]
_whitelogger has joined #crystal-lang
pawnbox has joined #crystal-lang
_whitelogger has joined #crystal-lang
Raimondi has joined #crystal-lang
vikaton has quit [Quit: Connection closed for inactivity]
Raimondi has quit [Ping timeout: 244 seconds]
pawnbox has quit [Ping timeout: 252 seconds]
<FromGitter>
<gamebusterz> Hi all, I just saw this project and I am very keen to get a chance to contribute to a programming language at a young stage. I could start by improving the documentation while I familiarize myself with the codebase. Can anyone point me to specific sections/topics which might require addition/improvement to the documentation ?
pawnbox has joined #crystal-lang
pawnbox_ has joined #crystal-lang
pawnbox has quit [Ping timeout: 252 seconds]
Philpax has quit [Ping timeout: 268 seconds]
<BlaXpirit>
gamebusterz, according to a recent comment, the examples in Regex module might not match what's actually possible with its api
<BlaXpirit>
but make sure to look at master branch, because it might have been fixed
<BlaXpirit>
sorry, it has been fixed
muelleme has joined #crystal-lang
jsaak has joined #crystal-lang
<FromGitter>
<gamebusterz> @BlaXpirit Ok, no problem. I'll keep looking for something. Thanks
bjz has joined #crystal-lang
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
bjz has quit [Ping timeout: 252 seconds]
matp has joined #crystal-lang
bjz has joined #crystal-lang
matp_ has quit [Ping timeout: 246 seconds]
bjz has quit [Read error: Connection reset by peer]
Raimondi has joined #crystal-lang
Raimondi has quit [Ping timeout: 244 seconds]
pawnbox_ has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
muelleme has quit [Ping timeout: 268 seconds]
bjz has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
krsh has joined #crystal-lang
vivus-ignis has joined #crystal-lang
A124 has joined #crystal-lang
akwiatkowski has joined #crystal-lang
pawnbox has joined #crystal-lang
olbat has joined #crystal-lang
Philpax has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
krsh has quit [Quit: krsh]
bjz has joined #crystal-lang
Raimondi has joined #crystal-lang
bjz has quit [Ping timeout: 260 seconds]
Raimondi has quit [Ping timeout: 244 seconds]
gloscombe has joined #crystal-lang
bjz has joined #crystal-lang
A124 has quit [Quit: '']
A124 has joined #crystal-lang
vivus-ignis has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
gloscombe has quit [Read error: Connection reset by peer]
Nik736 has joined #crystal-lang
Raimondi has joined #crystal-lang
Raimondi has quit [Ping timeout: 244 seconds]
bjz_ has joined #crystal-lang
bjz has quit [Ping timeout: 260 seconds]
matp has quit [Read error: Connection reset by peer]
matp has joined #crystal-lang
soveran has quit [Remote host closed the connection]
optikfluffel has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
optikfluffel has quit [Client Quit]
optikfluffel has joined #crystal-lang
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
gloscombe has joined #crystal-lang
Raimondi has joined #crystal-lang
Raimondi has quit [Ping timeout: 244 seconds]
Philpax has quit [Ping timeout: 260 seconds]
bjz_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gloscombe has quit [Read error: Connection reset by peer]
gloscombe has joined #crystal-lang
krsh has joined #crystal-lang
<crystal-gh>
[crystal] asterite closed pull request #3606: add match with block method to string. Fixes incorrect usage in docs (master...match_data) https://git.io/v1tdd
<FromGitter>
<luislavena> @jwoertink OpenSSL 0.9.8 will be the main issue. If you inspect Crystal source code, it appears to require OpenSSL 1.0.2 and relies on `pkg-config`, you might want to see how to enable that via Homebrew for Crystal to use it instead.
<rolha>
is there an easy way to do something as scala's 'scanLeft'. It's a fold with accumulator. I've made pastie with my original code logic http://pastie.org/10972592
gloscombe has quit [Ping timeout: 258 seconds]
gloscombe has joined #crystal-lang
<BlaXpirit>
rolha, hm how about you explain what needs to happen, not some comparisons :p
<FromGitter>
<bcardiff> but it is essentially the same.
bcardiff has joined #crystal-lang
bcardiff has quit [Client Quit]
<mgarciaisaia>
A slice would be what C calls an array, right? Like, contiguous memory with one element next to the other, period. Versus a Crystal Array - an object that links to it's elements bla bla?
<RX14>
mgarciaisaia, not really
<RX14>
they both are arrays in the traditional sense
<RX14>
contiguous memory
<RX14>
array isn't a linked list
<RX14>
but array is resizable and more friendly for use as a collection
<mussela>
I'm working on a file format that is basically a filesystem-in-a-file - is using Slices adequate to serialize info?
<RX14>
slice is basically pointer + size in an immutable struct
<RX14>
well yes you might want to read/write from a struct
<RX14>
but don't try and cast memory to structs
<mussela>
hmmm yeah mgarciaisaia that seems a bit more readable
<mgarciaisaia>
You define a struct - so the layout of the bytes are well defined -, and you refer to those field names everywhere instead of doing it byte-per-byte
<mgarciaisaia>
I bet it would read _waaaaaay_ better in Crystal :D
<RX14>
yes, use structs
<mussela>
ok, will do
<RX14>
no, don't cast memory to structs
<mussela>
?
matp_ has joined #crystal-lang
<RX14>
basically, don't try to take a memory location and cast it to packed structs without copying
<RX14>
create normal structs and have an initialize method which takes IO or Slice
<mussela>
so the way I'm trying to get this to work is to read a bunch of files into Slice(UInt8) and then write said slices to a file
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mussela>
with markers in the middle for filesystem bookeeping
matp has quit [Ping timeout: 246 seconds]
<mussela>
creating the normal struct and .new-ing them was how I wanted to go about this
<mussela>
"normal"
<RX14>
yep
vivus-ignis has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
<RX14>
In C you might create a packed struct and get the compiler to treat the same memory in the slice as the struct, but in crystal (or C honestly) you shouldn't do that
soveran has quit [Remote host closed the connection]
<mussela>
RX14: ah, I see
<mussela>
so how can I convert a string into a byte array?
<mussela>
(or better, where is this mentioned in the docs?(
<mussela>
lol #bytes
<mussela>
that was easy to find :D
mgarciaisaia has quit [Ping timeout: 252 seconds]
<mussela>
thanks for all the help, see ya soon hopefully :D
mussela has quit [Quit: Page closed]
<FromGitter>
<spalladino> @mussela note you can also ask for the String's bytes as a slice of bytes via `to_slice`, that way you'd get a *view* of the string's byte representation. `bytes`, on the other hand, will allocate a new array and copy the string's bytes into it.