ChanServ changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.23.1 | Fund Crystal's development: http://is.gd/X7PRtI | GH: https://github.com/crystal-lang/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Gitter: https://gitter.im/crystal-lang/crystal
<FromGitter> <mverzilli> we could write a compiler-compiler in Crystal, to generate the parser for the Crystal compiler :P
<travis-ci> crystal-lang/crystal#3fbdde5 (master - Parser: correct to parse 'foo &.%(1)' (#4664)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/273071403
<travis-ci> crystal-lang/crystal#3fbdde5 (master - Parser: correct to parse 'foo &.%(1)' (#4664)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/273071403
sp4rrow has joined #crystal-lang
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
sp4rrow has joined #crystal-lang
DTZUZO has quit [Ping timeout: 252 seconds]
<FromGitter> <opensas> @oprypin being a newcomer to ruby (and obviously crystal too) the semantic rule makes more sense to me... https://github.com/crystal-lang/crystal/issues/4504#issuecomment-305982218
<FromGitter> <opensas> @FromIRC @oprypin being a newcomer to ruby (and obviously crystal too) the semantic rule makes more sense to me... https://github.com/crystal-lang/crystal/issues/4504#issuecomment-305982218
DTZUZO has joined #crystal-lang
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 248 seconds]
wmoxam has quit [Read error: Connection reset by peer]
<vegai> https://www.reddit.com/r/rust/comments/6yngn0/love_from_crystal_developers/ good visibility creation, whoever figured to post this there :)
<vegai> Crystal might have a real good chance of drawing some of the people from the Rust community
<vegai> some of the more famous ones there are ruby coders
andrewzah has joined #crystal-lang
andrewzah has quit [Quit: WeeChat 1.9]
andrewzah has joined #crystal-lang
andrewzah has quit [Client Quit]
andrewzah has joined #crystal-lang
crst has joined #crystal-lang
rohitpaulk has joined #crystal-lang
snsei has joined #crystal-lang
<crst> Hi, why do I need llvm as a dependency? It bothers me because llvm is so big. Is there a way around this with brew?
<crst> On centos it's just crystal, 19M, that's it
andrewzah has quit [Quit: WeeChat 1.9]
alex`` has joined #crystal-lang
<Yxhuvud> if that is the case, then your centos already have llvm installed
<FromGitter> <bew> @mverzilli I love that compiler compiler thing :p I've been thinking about that since a few month in fact, and I've set my next task to start a BNF (or something close) of the language.. that's the big research part I guess!
flaviodesousa has joined #crystal-lang
<FromGitter> <codenoid> i'll come http://ruby.id/conf/2017/index.html
Papierkorb_ has joined #crystal-lang
A124 has quit [Ping timeout: 246 seconds]
mark_66 has joined #crystal-lang
claudiuinberlin has joined #crystal-lang
<FromGitter> <krypton97> Morning all
<FromGitter> <elorest> Morning. Must be time for me to go to bed.
rohitpaulk has quit [Ping timeout: 248 seconds]
<Papierkorb_> lol
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
claudiuinberlin has joined #crystal-lang
claudiuinberlin has quit [Client Quit]
snsei has quit [Remote host closed the connection]
claudiuinberlin has joined #crystal-lang
cigaran has joined #crystal-lang
cigaran has quit [Client Quit]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<crst> Yxhuvud: does that mean llvm is necessary? Why is it just recommended in the official guides to install --with-llvm ?
rohitpaulk has joined #crystal-lang
<FromGitter> <faustinoaq> crst & Yxhuvud: I think LLVM is always necessary because is the backend of Crystal. You don't need to install LLVM per se because Crystal already have all necessary to compile a program. However if you use compiler libraries you should install LLVM explicitly: ⏎ ⏎ > If you're planning to contribute to the language itself you might find useful to install LLVM as well [0] ⏎ ⏎ [0] -
<FromGitter> <faustinoaq> Hi people a DSL to write Ruby extensions would be possible before 1.0? WDYT @asterite ?
<crst> faustinoaq: and osx, doesn't it have it's own llvm already? I have xcode installed, too. the brew llvm ins 1GB.
<FromGitter> <krypton97> Are C bindings compiled with -O3 flag?
<FromGitter> <krypton97> On solus comes by default
<FromGitter> <krypton97> llvm
andrewzah has joined #crystal-lang
Papierkorb_ has quit [Ping timeout: 240 seconds]
andrewzah has quit [Quit: WeeChat 1.9]
snsei has joined #crystal-lang
snsei has quit [Ping timeout: 246 seconds]
bmcginty has quit [Ping timeout: 248 seconds]
bmcginty has joined #crystal-lang
DTZUZO has quit [Ping timeout: 260 seconds]
Papierkorb_ has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 255 seconds]
ShalokShalom_ has joined #crystal-lang
rohitpaulk has joined #crystal-lang
ShalokShalom has quit [Ping timeout: 248 seconds]
claudiuinberlin has joined #crystal-lang
ShalokShalom_ is now known as ShalokShalom
<FromGitter> <ziprandom> @faustinoaq @mverzilli interesting discussion. I have this project called cltk, which is a lexer and parser generator.
<FromGitter> <ziprandom> unfortunately the only way to persist the parser (not having to create the parsing tables on every initialization) was to use msgpack to serialize it.
<FromGitter> <ziprandom> being able to create crystal ast nodes from macros would be awsome but is not on the roadmap (understandably though)
<FromGitter> <ziprandom> https://github.com/sivadeilra/racc is a really interesting project for rust, which does create a compiled parser by directly rendering the constructed parser to rust ast.
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rohitpaulk has quit [Ping timeout: 248 seconds]
rohitpaulk has joined #crystal-lang
<FromGitter> <bararchy> Is there a times_with_inedx or something similar ?
<FromGitter> <bararchy> Oh, just `do |i|` gives the index
<FromGitter> <bararchy> cool :)
rohitpaulk has quit [Ping timeout: 248 seconds]
claudiuinberlin has joined #crystal-lang
claudiuinberlin has quit [Client Quit]
andrewzah has joined #crystal-lang
<andrewzah> hello
claudiuinberlin has joined #crystal-lang
andrewzah has quit [Ping timeout: 240 seconds]
<FromGitter> <Freezerburn> So I'm trying to deploy a Crystal program as an SVN post hook... on a really old version of Ubuntu (11) which is a 32-bit machine (i686 is what gets reported from uname -a). I followed the cross compiling advice to come up with the command "crystal build --cross-compile --target 'i686-unknown-linux-gnu' src/mysource.cr" which gives me a long command for compiling on the destination machine. However, this
<FromGitter> ... command includes a dependency on libcrystal.a, which is not on the destination machine and I'm not planning on installing because it's an SVN server that I didn't build (so I don't want to just add stuff to it willy nilly). Is there any way to get around this? Should I be doing something different in the cross compile? etc.
<FromGitter> <bararchy> Hm... somthing wierd ⏎ In Ruby: ⏎ ⏎ ```code paste, see link``` ⏎ ... [https://gitter.im/crystal-lang/crystal?at=59b28bfe8f4427b462e674d5]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<FromGitter> <asterite> What is the result of File.read("/proc/stat").each_line.grep(/^cpu /).first ?
<FromGitter> <asterite> Vincent: I believe cross compilation is broken right now bcause of libcrystal... you'll have to compile libcrystal on the target machine, check the Makefile (should be relatively simple)
<FromGitter> <Freezerburn> @asterite libcrystal.a is just from sigfaults.c? Wow you weren't kidding about simple
claudiuinberlin has joined #crystal-lang
<FromGitter> <Freezerburn> I'm not seeing where $(AR) is defined though for what looks like linking, and I don't see where it actually issues a compiler command to make the object file
<FromGitter> <asterite> Yes, it's just that. Ideally we should write that in Crystal, though sigfault.h uses a lot of macros. But I'd really like that to happen because it would mean cross compilation will work again
crst has quit [Remote host closed the connection]
<FromGitter> <asterite> I might try to implement it myself if I have time...
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/v5Kv0
<crystal-gh> crystal/master cd4c132 TSUYUSATO Kitsune: Format: fix to place only a newline between call-comment-newline and def...
<FromGitter> <Freezerburn> And now that I have libcrystal.a built, I find out there are a bunch of other libraries it depends upon that do not exist on the target system (pcre, gc at the least. probably don't have event, not sure about rt or dl)
<FromGitter> <Freezerburn> (oddly pcreposix exists as a .so, but trying -lpcreposix still doesn't find it)
<FromGitter> <Freezerburn> (well, technically a .so.3)
<travis-ci> crystal-lang/crystal#cd4c132 (master - Format: fix to place only a newline between call-comment-newline and def): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/273286128
<Papierkorb_> Freezerburn, the .3 is just the version suffix, though there should also be a .so without any suffix
flaviodesousa has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<FromGitter> <Freezerburn> Papierkorb_ No non-suffix version exists in the lib directory, oddly enough
<FromGitter> <Freezerburn> Actually, now that I actually looked at what libs are available: all the libs depended upon actually exist, but I don't see any non-prefix forms for some reason
<Papierkorb_> Then that's broken
<Papierkorb_> there should be a no-suffix .so symlink pointing at the .so with the "longest" version suffix
<FromGitter> <Freezerburn> I guess I could probably create a new directory with the non-suffix forms and add that directory as a library folder during the compile, so that I don't mess with the system at all
rohitpaulk has joined #crystal-lang
<Papierkorb_> e.g. on my system, there's libgc.so, libgc.so.1 and libgc.so.1.0.3 - The first two are symlinks to the last one
<FromGitter> <Freezerburn> *shrug* The system works fine, though I don't know why it doesn't have them. This is in /usr/lib though, so maybe they're symlinked somewhere else without the suffix
<Papierkorb_> Though for your case, only having a non-suffix symlinkn would be fine
<FromGitter> <Freezerburn> And now this is happening: https://gist.github.com/anonymous/66123e2a0f08b3730804dea81d82ad6c
Papierkorb_ has quit [Quit: Konversation terminated!]
snsei has joined #crystal-lang
Groogy has joined #crystal-lang
<FromGitter> <papilip> Hello all, i have fresh FreeBSD install FreeBSD 11.1-RELEASE-p1 ⏎ I use thie doc https://crystal-lang.org/docs/installation/from_a_targz.html ⏎ I’have no response with crystal ⏎ https://gist.github.com/papilip/e6e03f0f7c155a4b0cd95c166f29104a ⏎ Thank in advance for your reading [https://gitter.im/crystal-lang/crystal?at=59b2a3acee5c9a4c5f48427a]
<FromGitter> <asterite> I think you should try to install Crystal on the target machine and compile there. It will be simpler 😄
snsei has quit [Ping timeout: 246 seconds]
<FromGitter> <papilip> @asterite ok, can you send me a doc ?
<FromGitter> <asterite> I was replying to Vincent :-P
<FromGitter> <papilip> Sorry
<FromGitter> <asterite> papilip: no response in which line?
<FromGitter> <Freezerburn> @asterite You're not wrong! Though I just talked with some people, and it sounds like it's going to get rebuilt as a 64-bit machine so I should hopefully be able to just copy my 64-bit binary over when that's done
rohitpaulk has quit [Ping timeout: 240 seconds]
<FromGitter> <papilip> @asterite at the last line crystal not work
rohitpaulk has joined #crystal-lang
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sz0 has joined #crystal-lang
<Groogy> 7exit
<Groogy> gah xD oops
Groogy has quit [Quit: WeeChat 1.9]
claudiuinberlin has joined #crystal-lang
Groogy has joined #crystal-lang
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
claudiuinberlin has joined #crystal-lang
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<FromGitter> <krypton97> Has anyone played with this generator https://github.com/fazibear/crystal_lib_gen?
<Groogy> and it binds ruby or?
<FromGitter> <krypton97> it generates crystal c bindings
A124 has joined #crystal-lang
claudiuinberlin has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 240 seconds]
claudiuinberlin has quit [Max SendQ exceeded]
<FromGitter> <faustinoaq> @papilip you need to run `make status=true` before run crystal.
<oprypin> krypton97, pay attention to the "3 years ago" part
<Papierkorb> Well that tool is *actually* written in ruby
<Papierkorb> So .. even back then, installing the clang gem must've been a nightmare
<FromGitter> <krypton97> Othen than that, is there a good c generator. I'm trying to do bindings to libvips
<FromGitter> <krypton97> meanwhile I found one package that looks good
<FromGitter> <papilip> @faustinoaq Thanks, +> make: "/root/crystal-0.23.1/Makefile" line 52: Need an operator
mark_66 has quit [Remote host closed the connection]
<crystal-gh> [crystal] straight-shoota opened pull request #4937: Add option `--output` to `crystal docs` generator (master...jm-docs-output-dir) https://git.io/v5KCW
<FromGitter> <faustinoaq> @papilip I think you need to install some dependencies before, see: https://crystal-lang.org/docs/installation/from_source_repository.html
dannyAAM has quit [Quit: znc.saru.moe : ZNC 1.6.2 - http://znc.in]
rohitpaulk has joined #crystal-lang
alex`` has quit [Ping timeout: 252 seconds]
<Papierkorb> faustinoaq asciinema.org
<FromGitter> <faustinoaq> Papierkorb, Thanks you! My KDE compositor is a bit problematic when recording 😅
<Papierkorb> aren't you using KWin?
<Papierkorb> I never had issues with recording under KDE. But if compositing is making issues, you can toggle it using Shift+Alt+F12 at any time
alex`` has joined #crystal-lang
<FromGitter> <faustinoaq> Yeah, I did that to record the gif above. ⏎ ⏎ > aren't you using KWin? ⏎ ⏎ Yes, on X11, Wayland is still a bit buggy. [https://gitter.im/crystal-lang/crystal?at=59b2c5da66c1c7c4772c1bde]
dannyAAM has joined #crystal-lang
sz0 has quit [Quit: Connection closed for inactivity]
<Papierkorb> Ah man, are there no maintained libsodium/nacl wrappers?
<Papierkorb> OpenSSL#
<Papierkorb> OpenSSL's API is just awful compared to that. Too easy to shoot yourself in your foot.
crst has joined #crystal-lang
wmoxam has joined #crystal-lang
<crst> On osx everything works fine. but then I got the 1gb llvm :)
claudiuinberlin has joined #crystal-lang
<FromGitter> <faustinoaq> On Manjaro Linux, all llvm packages are less than 300MB
<FromGitter> <faustinoaq> and crystal x64 is "just" 65 MB installed
sp4rrow has joined #crystal-lang
andrewzah has joined #crystal-lang
andrewzah has quit [Client Quit]
snsei has joined #crystal-lang
snsei has quit [Ping timeout: 246 seconds]
<FromGitter> <faustinoaq> @elorest @veelenga You should check this http://imgur.com/gallery/mGoo9 😆
chamar has joined #crystal-lang
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
<FromGitter> <elorest> lol
<FromGitter> <faustinoaq> > My advice is to make sure that you create a solid framework, not just a solid language. Ruby would not have been successful without Rails. A solid framework can change the destiny of a language. I am not familiar with Crystal, but I'll take a look. [0] ⏎ ⏎ Well, Kemal & Amber our warriors ⏎ ⏎ [0] - https://dev.to/lpasqualis/i-spent-30-years-coding-full-time
<FromGitter> ... -them-i-switched-to-full-time-management-and-leadership-ask-me-anything/comments/m7n [https://gitter.im/crystal-lang/crystal?at=59b2e519ee5c9a4c5f4979c6]
dom96_ has joined #crystal-lang
dom96 has quit [Quit: Bye.]
dom96_ is now known as dom96
dom96 has quit [Changing host]
dom96 has joined #crystal-lang
thews has quit [Remote host closed the connection]
<FromGitter> <sdogruyol> @faustinoaq whose quote is this?
<oprypin> sdogruyol, some random guy's. it's linked right afterwards
<FromGitter> <sdogruyol> interesting
<FromGitter> <sdogruyol> has anyone tried out LLVM 5.0 yet with Crystal master?
<FromGitter> <faustinoaq> > whose quote is this? ⏎ ⏎ > some random guy's. ⏎ ⏎ lol [https://gitter.im/crystal-lang/crystal?at=59b2eb63bac826f0549539ee]
thews has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 240 seconds]
rohitpaulk has joined #crystal-lang
<travis-ci> crystal-lang/crystal#cd4c132 (master - Format: fix to place only a newline between call-comment-newline and def): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/273286128
weston has joined #crystal-lang
rohitpaulk has quit [Remote host closed the connection]
snsei has joined #crystal-lang
snsei has quit [Ping timeout: 240 seconds]
weston has quit [Quit: WeeChat 1.9]
sp4rrow has joined #crystal-lang
snsei has joined #crystal-lang
ShalokShalom has quit [Remote host closed the connection]
<FromGitter> <kyku> Hi, is it possible to slice a tuple?
Groogy has quit [Quit: WeeChat 1.9]
<Papierkorb> to slice?
<Papierkorb> As in #to_slice, or a #[] taking a range?
<FromGitter> <kyku> no, to tuple
<Papierkorb> Technically possible, but there's no implementation for that
<FromGitter> <kyku> I'd just like to split a tuple into head and *tail
<crystal-gh> [crystal] RX14 closed pull request #4821: Support LLVM 5.0 (master...core-support-llvm-5.0) https://git.io/v7Svn
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
hightower2 has joined #crystal-lang
<oprypin> kyku, `def headtail(head, *tail); return {head, tail}; end`
<oprypin> headtail(*tuple)
<FromGitter> <kyku> @oprypin : nice, thank
alex`` has quit [Quit: WeeChat 1.9]
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
Yxhuvud has joined #crystal-lang
<FromGitter> <kyku> is there something like C++17 "if constexpr(...)" in Crystal ?
snsei has quit [Remote host closed the connection]
<crystal-gh> [crystal] RX14 closed pull request #4832: Win: define Win32 API functions (master...win-lib) https://git.io/v7Fcz
snsei has joined #crystal-lang
<FromGitter> <kyku> I'm trying to implement Ruby's Hash#dig method, initially as a free standing function: ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=59b318e7bac826f05495fc86]
<FromGitter> <kyku> however it complains about calling hash[keys.first] on an empty tuple :/
<oprypin> kyku, could you directly explain what you're trying to do? no c++ and no ruby
<FromGitter> <kyku> I'd like to implement a method, that given a possible nested hash, and a tuple of keys, will recursively iterated over the hash and the tuple and return the last key
<FromGitter> <kyku> dig({1 => {'x' => 42}}, {1, 'x'}) == 42
<oprypin> cool
snsei has quit [Remote host closed the connection]
<FromGitter> <kyku> @oprypin, I hate you ;-) ;-) ;-)
<FromGitter> <kyku> seriously, nice trick, I thought it would be something more complex
<oprypin> the type of the result is terrible though
<oprypin> nested hashes arent a good idea in crystal
<Papierkorb> Or replace the `as(Hash)` with `as(Indexable)` to make it generic
<Papierkorb> Should still work™
<oprypin> Papierkorb, hash is not indexable.
<Papierkorb> How boring. responds_to? to the rescue.
<FromGitter> <kyku> @oprypin : well, in theory you don't have to give all nested hash keys: dig({1 => {2 => 3}}, 1) == {2 => 3}
<oprypin> kyku, sure. just showin a neat trick and there was a probability that it's the wanted behavior
<FromGitter> <kyku> is it possible to overload on an empty tuple?
<oprypin> probably but im not sure what u mean
<FromGitter> <kyku> one sec
<FromGitter> <jwoertink> Out of curiosity, what is the core team's policy on the PR approvals with regards to if one member has approved a PR, and the PR has sat for several months?
snsei_ has joined #crystal-lang
<FromGitter> <jwoertink> like, the ADHD in me wants to go through all those PRs and ping core members to ask for a second review, but the sanity in me says that would be a dick move lol. So obviously I'm not going to do that.
<FromGitter> <jwoertink> I know it takes quite a bit of time to review a PR, but I think some of the older ones get forgot about because new shiny (and probably more important) PRs show up at the top
<FromGitter> <jwoertink> hmm, actually, going through it I think some of the older ones were taken care of recently. Here's the oldest half-approved PR I saw https://github.com/crystal-lang/crystal/pull/4056
<oprypin> yes, from what I see, they do get forgotten and there is no policy. it's gotten much better with RX14 though
<FromGitter> <jwoertink> yeah, that's what I'm starting to notice
<FromGitter> <jwoertink> ok, so maybe those aren't as bad anymore. Just the "Changes Requested" ones, but those are probably more on the PR submitter than anything
<RX14> any PR that isn't in my github notifications list is pretty much off my adgenda simply due to time
<FromGitter> <jwoertink> I feel ya there.
<RX14> so i actually appreciate people going and pinging their own PRs if there's clearly nothing left to be done than a review
<RX14> i don't have time to search out such PRs myself
<RX14> probably not too many at once though
<FromGitter> <jwoertink> right
<FromGitter> <jwoertink> I'm digging this uptick in commits though!
<FromGitter> <jwoertink> To me, it's like checking reddit and not seeing purple links :p
sz0 has joined #crystal-lang
<RX14> heh, i don't read all of my frontpage at all
<FromGitter> <faustinoaq> 👍
<RX14> i read all of some subreddits tho i guess
<RX14> mostly r/spacex but thats low traffic
<RX14> i tend to just title skim
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
<FromGitter> <jwoertink> On an unrelated note.... Has HTTP Proxy support been added?
<FromGitter> <jwoertink> doesn't look like
<oprypin> jwoertink, it's easy to do it yourself if u really want
<FromGitter> <jwoertink> oh?
<oprypin> how would http proxy support look like to you?
<oprypin> also, i'd like an example proxy just to check my theory
<FromGitter> <jwoertink> Probably something like `HTTP::Client.get("http://whatever.com", proxy: {host: "", username: "", password: ""})`
<oprypin> password huh
<Papierkorb> oprypin: tbh, the systems proxy should be used, if configured
<FromGitter> <jwoertink> or maybe a `HTTP::Proxy.get("whatever", opts)`
<Papierkorb> By default
<oprypin> Papierkorb, no
<oprypin> nobody does that
<Papierkorb> Huh
<FromGitter> <jwoertink> yeah, I use proxybonanza a TON. So I have it setup with IP, Port, Username, and Password
<Papierkorb> That's broken behaviour. People don't configure a system-wide proxy just for fun
<Papierkorb> Some companies require it, and in more severe cases, peoples safety depends on it.
<oprypin> that's vpn then
<Papierkorb> Many VPN providers also support HTTP or SOCKS proxy access
<oprypin> ok
<FromGitter> <kyku> @oprypin , check that: https://carc.in/#/r/2osd
<oprypin> that's not VPN though
<Papierkorb> How the user chooses to use something that doesn't get them killed shall be their decision
<FromGitter> <jwoertink> In the case of a VPN, can you change out the IP address of it at random?
<Papierkorb> which IP
<FromGitter> <jwoertink> the IP that the website sees. Your client IP
<FromGitter> <jwoertink> I guess you could just use multiple vpn connections
<RX14> HTTP_PROXY is usually respected by default
<RX14> curl does
<RX14> so why not us
<Papierkorb> In all cases I know of, yes. In theory, it could configure to masquerade as the real client ip.
<Papierkorb> jwoertink, but that masquerading setup is not standard. But perfectly possible: That's how non-NAT-ing routers work afterall.
<FromGitter> <jwoertink> Would http client proxy not be supported in crystal by default then? As in a simple config options just being passed..
<Papierkorb> Well no, the client has to implement the protocol towards the proxy, and thus has to know about that it's supposed to use a proxy (and how)
<FromGitter> <jwoertink> I see there's this issue https://github.com/crystal-lang/crystal/issues/2963
<FromGitter> <jwoertink> I should try out that example and see how that works
<Papierkorb> jwoertink, a VPN generally refers to a software which creates a (virtual) network device. It can then tell the system which networks to route over this device, which may be "everything". This kind of "proxy" is transparent to most usual applications, and these will just work. A HTTP proxy is /not/ transparent to the application, it has to actively use it.
<Papierkorb> jwoertink, Which can be a benefit: To use a HTTP proxy, you usually don't require administrative permissions ("root") on your system, unlike for VPN.
<FromGitter> <jwoertink> Right. That makes sense.
<FromGitter> <jwoertink> I'd rather not setup OpenVPN on my system because there's a 100% chance I'll mess it up
<FromGitter> <jwoertink> :D
<FromGitter> <jwoertink> probably 102% if we're being honest here
<Papierkorb> Well, you'd need a server to connect to first. If you purchase an account to one of the billion vpn providers, they'll provide you with a configuration file
<FromGitter> <jwoertink> I wonder if that's cheaper than the proxy IPs that I pay for....
<Papierkorb> Well, I'd never pay for a pure proxy if I don't have a good reason for it.
<Papierkorb> Cam
<Papierkorb> Can't even do torrents over http proxies, what's the point?
<FromGitter> <jwoertink> my site needs the proxies
<FromGitter> <jwoertink> Thanks for all the info!
* FromGitter * matrixbot just discovered icr and is loving it*
<Papierkorb> oprypin: Do you happen to know if there's a bridge network from Tox or something to Matrix?
<oprypin> ?? no idea
hightower2 has quit [Ping timeout: 240 seconds]
hightower2 has joined #crystal-lang