jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.18.7 | Fund Crystals development: http://is.gd/X7PRtI | Paste > 3 lines of text to https://gist.github.com | GH: https://github.com/crystal-lang/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Logs: http://irclog.whitequark.org/crystal-lang
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
Oliphaunte has quit [Remote host closed the connection]
Philpax has joined #crystal-lang
wmoxam has joined #crystal-lang
wmoxam has quit [Client Quit]
wmoxam has joined #crystal-lang
Oliphaunte has joined #crystal-lang
kulelu88 has quit [Quit: Leaving]
Philpax has quit [Ping timeout: 265 seconds]
Oliphaunte has quit [Remote host closed the connection]
wiiw has joined #crystal-lang
<FromGitter> <drosehn> Well, here's my first attempt to use 'gitter'. I thought I'd use it for a question which seems way too simple to write up as "an issue".
<FromGitter> <jwoertink> Welcome
<FromGitter> <drosehn> Does crystal have some method which works like the exec() system call (the subroutine you'd call in a C program).
<FromGitter> <drosehn> So what I want to do is give a command to run, and have that command replace the active process (which is my program that was written in crystal).
<FromGitter> <jwoertink> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=57a005a1e2ff9ec76e4e96f9]
<FromGitter> <jwoertink> Crystal has those ones ^
<FromGitter> <drosehn> But from what I have read in the API docs, none of those replace the current process. They create a new process, but leave the current one running.
<FromGitter> <drosehn> (I'm in no hurry on this. Just curious)
<FromGitter> <drosehn> But let me skip that for a minute, and ask about 'icr'! Is that a command-line version of the 'crystal play' feature?
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
<FromGitter> <jwoertink> We had a discussion previously about the `Process.run` which I think does what you want because it wraps some C lib that does that. I was trying to find where that was being discussed, but not seeing it
<FromGitter> <jwoertink> as for ICR, yes, that's the command line version of the web interface one
<FromGitter> <drosehn> Thanks!
<FromGitter> <jwoertink> ah, `Process.run` forks and `execvp` under the hood
<FromGitter> <jwoertink> @drosehn
<FromGitter> <drosehn> Hmm. I was looking for a way to call `Process.run` but have it skip the fork, but I could just call `LibC.execvp(command, argv)` on my own. That seems plausible.
<FromGitter> <jwoertink> Yeah, that could work too
<FromGitter> <drosehn> Too late tonight to try that, but it seems like a good pointer. Thanks!
<FromGitter> <jwoertink> no problem
<FromGitter> <kofno> Dang... I must be doing something wrong... I can't seem to get nested JSON.mapping to work.
<FromGitter> <jwoertink> Got a code example @kofno ?
<FromGitter> <kofno> working on isolating it now...
<FromGitter> <kofno> ...ha! and the problem reveals itself.
<FromGitter> <jwoertink> nice
Philpax has joined #crystal-lang
<FromGitter> <kofno> when you specify a mapping like this --> JSON.mapping(process_id: { type: Int64, key: "processId" })
<FromGitter> <kofno> you can't use a symbol for the key value --> JSON.mapping(process_id: { type: Int64, key: :processId })
* FromGitter * kofno looks for a way to turn off emoji in gitter...
<FromGitter> <kofno> so, the second example fails to match the processId key. But it's hard to diagnose because the error says "missing json attribute: processId at 0:0"
Oliphaunte has joined #crystal-lang
soveran has quit [Remote host closed the connection]
Oliphaunte has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 276 seconds]
pawnbox has joined #crystal-lang
matp has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
matp has joined #crystal-lang
Oliphaunte has joined #crystal-lang
matp has quit [Ping timeout: 244 seconds]
Oliphaunte has quit [Ping timeout: 252 seconds]
pawnbox has joined #crystal-lang
matp has joined #crystal-lang
pawnbox has quit [Ping timeout: 244 seconds]
matp has quit [Remote host closed the connection]
matp has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Philpax has quit [Ping timeout: 258 seconds]
pawnbox has quit [Ping timeout: 240 seconds]
onethirtyfive has joined #crystal-lang
onethirtyfive has quit [Client Quit]
CompanionCube has quit [Ping timeout: 264 seconds]
CompanionCube has joined #crystal-lang
CompanionCube has quit [Changing host]
CompanionCube has joined #crystal-lang
pawnbox has joined #crystal-lang
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Ping timeout: 276 seconds]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Ping timeout: 240 seconds]
onethirtyfive has joined #crystal-lang
ponga has joined #crystal-lang
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
wiiw has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
matp has quit [Remote host closed the connection]
mark_66 has joined #crystal-lang
ome has joined #crystal-lang
bjz has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Ping timeout: 260 seconds]
pawnbox has joined #crystal-lang
ponga has quit [Quit: Connection closed for inactivity]
Papierkorb has quit [Ping timeout: 240 seconds]
Papierkorb has joined #crystal-lang
Philpax has joined #crystal-lang
Philpax has quit [Read error: Connection reset by peer]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Ping timeout: 264 seconds]
onethirtyfive has quit [Remote host closed the connection]
onethirtyfive has joined #crystal-lang
<FromGitter> <fibric> Hey, is the roadmap for crystal still current? Asking about the XML part.
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
<jhass> it pretty much still is, there's some basic libxml2 binding in the stdlib already, but it's not full-featured
Oliphaunte has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Oliphaunte has quit [Ping timeout: 244 seconds]
ome has quit [Quit: Connection closed for inactivity]
triangles has quit [Quit: Leaving]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Raimondii has joined #crystal-lang
zodiak has joined #crystal-lang
Raimondi has quit [Ping timeout: 240 seconds]
Raimondii is now known as Raimondi
zodiak_ has quit [Ping timeout: 258 seconds]
<crystal-gh> [crystal] jhass opened pull request #3079: Process improvements (master...process_improvements) https://git.io/v6Uqk
Papierkorb has quit [Ping timeout: 258 seconds]
Papierkorb has joined #crystal-lang
Papierkorb has quit [Ping timeout: 260 seconds]
Papierkorb has joined #crystal-lang
Oliphaunte has joined #crystal-lang
<FromGitter> <fibric> Do we want to replace libxml2 with native crystal code?
Oliphaunte has quit [Ping timeout: 258 seconds]
<RX14> replacing libxml2 would be nice but XML is very hard to parse, and the implementation would have to be pretty mature
<RX14> parsing XML is more than implementing the spec, you have to be able to recover from user mistakes, because they're pretty common
Papierkorb has quit [Ping timeout: 252 seconds]
<RX14> also I wish every protocol had a test suite for implementors, like HTTP/2 and websockets have
Papierkorb has joined #crystal-lang
ponga has joined #crystal-lang
<jhass> also XML is the easy part, the fun starts with SGML
<RX14> even rewriting libpcre would be easier than libxml2
zodiak_ has joined #crystal-lang
zodiak has quit [Ping timeout: 250 seconds]
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 240 seconds]
Raimondii is now known as Raimondi
<FromGitter> <fibric> Yeah you can find many xml variants in mime types too
<jhass> XML is more of a SGML variant if anything than SGML a XML variant
<FromGitter> <sdogruyol> Is there an Xml spec for parser implementors
<FromGitter> <fibric> The reason I'm asking is because installing crystal fails or looks complete but sone features are broken. It turns out external libraries aren't probably found at build or execution time.
Oliphaunte has joined #crystal-lang
<jhass> if you're less vague I'm confident we can find a way to fix it
<FromGitter> <fibric> Filed issues already :smile:
<FromGitter> <fibric> #438
<FromGitter> <fibric> #3063
<FromGitter> <fibric> #homebrew-crystal/16
<FromGitter> <fibric> Ups
Oliphaunte has quit [Ping timeout: 260 seconds]
<FromGitter> <fibric> @sdogruyol w3.org/TR/REC-xml/#sec-conformance
<FromGitter> <sdogruyol> Ugh
<FromGitter> <fibric> Not much except validate xml against XSD or don't validate
<FromGitter> <fibric> oasis-open.org/standards lists much more definitions on top of xml or subsets
<FromGitter> <fibric> And xlst processing is also a topic. Converting to something to and from xml
Philpax has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/v6UlX
<crystal-gh> crystal/master 1a8495a Ary Borenszweig: Compiler: extracted bindings logic to a separate file, and other minor cleanups
Oliphaunte has joined #crystal-lang
<travis-ci> crystal-lang/crystal#1a8495a (master - Compiler: extracted bindings logic to a separate file, and other minor cleanups): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/149176988
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 250 seconds]
Raimondii is now known as Raimondi
Oliphaunte has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
matp has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 258 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
<crystal-gh> [crystal] asterite closed pull request #3070: Fixes for documentation generator (master...docs-fixes) https://git.io/v6e0z
Philpax has quit [Ping timeout: 252 seconds]
<crystal-gh> [crystal] asterite closed pull request #3076: Socket refactors (master...std-socket-refactors) https://git.io/v6Jem
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
benner_ has quit [Read error: Connection reset by peer]
benner has joined #crystal-lang
<travis-ci> crystal-lang/crystal#1cfff0d (master - Merge pull request #3070 from BlaXpirit/docs-fixes): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/149199054
soveran has joined #crystal-lang
Oliphaunte has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 3 new commits to master: https://git.io/v6UDQ
<crystal-gh> crystal/master 8ae2085 Julien Portalier: Slice#hexdump add index and separate bytes...
<crystal-gh> crystal/master ce0ffc3 Julien Portalier: Add IO::Hexdump...
<crystal-gh> crystal/master a80db64 Ary Borenszweig: Merge pull request #3043 from ysbaddaden/std-io-hexdump...
pawnbox has quit [Remote host closed the connection]
soveran has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
mark_66 has quit [Remote host closed the connection]
Oliphaunte has quit [Remote host closed the connection]
onethirtyfive has quit [Remote host closed the connection]
trapped has joined #crystal-lang
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Ping timeout: 250 seconds]
Rinkana has joined #crystal-lang
trapped has quit [Read error: Connection reset by peer]
ponga has quit [Quit: Connection closed for inactivity]
Oliphaunte has joined #crystal-lang
kulelu88 has joined #crystal-lang
matp has quit [Remote host closed the connection]
matp has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 4 new commits to master: https://git.io/v6TG1
<crystal-gh> crystal/master 4982fcb Ary Borenszweig: Compiler: unify struct_set and union_set primitives
<crystal-gh> crystal/master 5a81311 Ary Borenszweig: Compiler: removed redundant `MatchesLookup.match_arg` method
<crystal-gh> crystal/master 11b3798 Ary Borenszweig: Compiler: rename `input_observer` to `enclosing_call`
<travis-ci> crystal-lang/crystal#23aa829 (master - Compiler: some code cleanups in semantic/call): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/149276369
willl has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Rinkana has quit [Read error: Connection reset by peer]
Oliphaunte has quit [Remote host closed the connection]
rolha has quit [Read error: Connection reset by peer]
Philpax has joined #crystal-lang
CompanionCube has quit [Ping timeout: 250 seconds]
CompanionCube has joined #crystal-lang
CompanionCube has quit [Changing host]
CompanionCube has joined #crystal-lang
srabuini has joined #crystal-lang
sebasr has quit [Ping timeout: 260 seconds]