←2016-07-23 2016-07-24 2016-07-25→ ↑2016 ↑all
00:01:03 <oerjan> fancy
00:01:44 <wob_jonas> you mean like tcsh, which can process labels and gotos in an interactive command-line between commands?
00:17:29 -!- tromp_ has joined.
00:18:50 <int-e> so I have a moderately cheating 12 byte hello world in bash.
00:21:57 -!- tromp_ has quit (Ping timeout: 258 seconds).
00:22:25 <oerjan> int-e: ?
00:24:10 <wob_jonas> int-e: weren't we talking about perl?
00:24:23 <wob_jonas> I mean, for golfing, the language matters a lot
00:24:35 <int-e> oerjan: '23:53:45 <ais523> which reminds me, there are a ton of languages, like Perl and Ruby, where people have done hello worlds in anagol with not enough alphanums for them to contain the actual hello world string'
00:24:54 <int-e> wob_jonas: bash is in the same category.
00:26:21 -!- Kaynato has joined.
00:26:46 <wob_jonas> sorry, I mean, yes, 12 bytes in golf is impressive
00:27:00 <wob_jonas> I'm still reading a camera manual
00:27:19 <wob_jonas> (they call it manual, but a large part of it is about crazy automatic modes that I'll probably never use)
00:28:21 <tromp> BLC8 has no less than 16 12-byte hello world programs:)
00:28:47 <wob_jonas> tromp: does it have a hello world shorter than 12 bytes?
00:28:57 <tromp> no
00:29:22 <tromp> but you can think of it as a 11.5 byte program rounded up
00:30:10 <tromp> it uses a half-byte cat program
00:31:06 <prooftechnique> I'm curious about the half-byte cat
00:31:37 <tromp> see http://www.ioccc.org/2012/tromp/hint.html
00:31:42 <wob_jonas> prooftechnique: brute force it if you want to know what it is
00:31:49 <wob_jonas> there aren't that many half-byte programs
00:32:00 <wob_jonas> yes, I know there's a halting problem and all, but still
00:32:34 <prooftechnique> Oh, that's cute
00:33:33 <prooftechnique> That's a cute cat
00:37:52 <oerjan> here kitty kitty
00:38:08 <shachaf> @messages-lead
00:38:08 <lambdabot> oerjan said 1h 10m 50s ago: <shachaf> Formaldehydra is the best way to preserve it. <-- -----###
00:38:15 <shachaf> quintopia: netcraft confirms it hth
00:38:52 <shachaf> But now I don't know whether that @tell came before or after oerjan logread the discussion.
00:39:08 <oerjan> *MWAHAHAHA*
00:39:12 <wob_jonas> `? formaldehydra
00:39:19 <HackEgo> formaldehydra? ¯\(°​_o)/¯
00:39:57 <oerjan> shachaf: ok disclosure: i had seen it since i search for my nick first.
00:40:10 <oerjan> i hadn't thoroughly read it, though.
00:43:22 <quintopia> shachaf: nice job. nailed it. high five.
00:44:51 -!- miketo has quit (Ping timeout: 276 seconds).
00:47:38 -!- wob_jonas has quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client).
00:47:56 -!- hppavilion[1] has joined.
00:55:55 -!- hppavilion[1] has quit (Ping timeout: 244 seconds).
01:11:05 <int-e> In any case this seems to be a file system exploration exercise to a very large extent. For example, this is a hello world shell script on anagol: ruby ../oldlocal/test.rb
01:13:56 <int-e> (which can be shortened to ruby ../o*/*b and a few other versions, which is quite competetive)
01:17:10 <int-e> tromp: you miscount the characters, I think. "Hello, world" is 12 bytes... and still missing the exclamation mark.
01:27:56 -!- Phantom_Hoover has joined.
01:29:37 -!- tromp_ has joined.
01:30:10 <HackEgo> [wiki] [[FOSCode]] https://esolangs.org/w/index.php?diff=48998&oldid=48994 * Darkrifts * (+361) /* File I/O */
01:35:24 <HackEgo> [wiki] [[FOS-X]] https://esolangs.org/w/index.php?diff=48999&oldid=48996 * Darkrifts * (+665) /* Documentation */
01:38:30 <HackEgo> [wiki] [[FOSCode]] https://esolangs.org/w/index.php?diff=49001&oldid=48998 * Darkrifts * (+106) /* Documentation */
01:41:53 <izabera> tromp: https://tromp.github.io/img/construct.9x19.gif what's this
01:44:37 <izabera> it seems weird to click the picture of an illegal position to get to your page for the number of legal positions
01:49:22 <Sgeo> Just downloaded the Kindle PC program
01:49:42 <Sgeo> The font size that I'm comfortable with on windowed mode is too small for me in fullscreen mode :(
01:55:05 -!- tromp_ has quit (Remote host closed the connection).
01:56:04 <HackEgo> [wiki] [[FOS-X]] https://esolangs.org/w/index.php?diff=49002&oldid=48999 * Darkrifts * (+14) /* Documentation */
01:56:20 <HackEgo> [wiki] [[FOS-X]] https://esolangs.org/w/index.php?diff=49003&oldid=49002 * Darkrifts * (+0) /* Documentation */
02:08:00 -!- boily has joined.
02:09:46 -!- hppavilion[1] has joined.
02:10:57 -!- tromp_ has joined.
02:11:49 <oerjan> boʰily
02:14:28 -!- iaglium has joined.
02:15:27 <boily> `relcome iaglium
02:15:52 <HackEgo> iaglium: Welcome to the international hub for esoteric programming language design and deployment! For more information, check out our wiki: <http://esolangs.org/>. (For the other kind of esoterica, try #esoteric on EFnet or DALnet.)
02:16:10 <boily> heǁǁørjan!
02:27:01 -!- tromp_ has quit (Remote host closed the connection).
02:30:51 -!- tromp_ has joined.
02:34:04 <prooftechnique> That sounds suspiciously Welsh
02:34:30 <HackEgo> [wiki] [[FOS-X]] https://esolangs.org/w/index.php?diff=49004&oldid=49003 * Darkrifts * (+44) /* Unexpected behavior */
02:35:22 <boily> prhellooftechelloniquello!
02:42:21 <Sgeo> I don't understand Rare Candy in the TCG, isn't that how normal evolution works?
02:43:02 <oerjan> `` cd wisdom; ls *porth*
02:43:07 <HackEgo> porthello
02:43:14 <Sgeo> Oh, it skips the stage 1?
02:43:20 <oerjan> `? porthello
02:43:24 <HackEgo> Hellonfused one. Porthellos are the standard greeting format in #esoteric. Best enjoyed with some thé or caffè and a fternooner.
02:47:21 -!- tromp_ has quit (Remote host closed the connection).
02:48:20 <izabera> `? fternooner
02:48:23 <HackEgo> fternooner (Danish »fternooner«, Norwegian «ttermiddag», Swedish ”ftermiddag”) is a screamingly delicious pastry.
02:51:23 <\oren\> why are the quotes weird for danish and Norwegian, but Swedish has normal quotes?
02:52:08 <oerjan> ...
02:52:30 <\oren\> Wait.. why does the sweidsh one start with a ” and not a “?
02:52:43 <boily> he\\oren\. those are the standard quotation marks according to their respective languages hth
02:52:58 * oerjan swats \oren\ for cultural bias -----###
02:53:17 -!- tromp_ has joined.
02:54:21 <\oren\> Really, swedish mandates both starting and ending with a ”?
02:55:01 <oerjan> the hydra's rightmost dire group is now down to two segments.
02:55:14 <oerjan> *two dire
02:55:32 <oerjan> as opposed to the six earlier today.
02:55:56 <boily> what is this hydra y'all are speaking of?
02:56:05 <oerjan> http://www.madore.org/~david/math/hydra.xhtml
02:56:17 <boily> \oren\: that's the way it is. or at least the wikipédia way. hth.
03:03:08 <\oren\> boily: I looked it up. Apparently hungarian quoting starts like a german and ends like a swede
03:03:34 <boily> quotations are weird.
03:03:48 -!- boily has quit (Quit: SUPERCALIFAHDAMMITIFORGOTTHERESTOCIOUS CHICKEN).
03:04:22 <\oren\> I prefer to have separate beginning and ending quotes
03:04:41 <oerjan> `wisdom supercali
03:04:50 <HackEgo> supercalifragilisticexponential growth//Supercalifragilisticexponential growth leaves Graham's number in the dust.
03:12:20 -!- Phantom_Hoover has quit (Read error: Connection reset by peer).
03:16:24 <quintopia> oerjan: does it leave it in cantor's dust? twh
03:18:15 <oerjan> quite possibly.
03:25:47 <izabera> useful resources for unicode http://www.macchiato.com/
03:27:13 <quintopia> useful information for delicious espresso
03:27:39 <oerjan> ...
03:28:26 <oerjan> i hit the wrong button and the hydra is gone.
03:28:33 <quintopia> iei!
03:28:34 <oerjan> ...it was inevitable.
03:28:45 <\oren\> expresso is best enjoyed with foamed milk
03:28:46 <quintopia> swut u get
03:29:16 <quintopia> next time run it at full cps (chops per second)
03:30:11 <\oren\> actually, foamed milk is really good even by itslf
03:36:24 <oerjan> i have no interest in that.
03:37:17 <\oren\> oerjan: you don't like milk?
03:37:49 <oerjan> that was to quintopia hth
03:38:14 <oerjan> also my stomach doesn't cope with hot milk.
03:38:47 <quintopia> oerjan: what do you have interest in? have you now lost all interest in hydrae
03:38:52 <oerjan> bah let's try some manual strategy.
03:39:09 <oerjan> here we have a depth 6 hydra...
03:50:17 <HackEgo> [wiki] [[Apple3.14]] M https://esolangs.org/w/index.php?diff=49006&oldid=48962 * Conor O'Brien * (+1) /* Implementation */
03:53:11 -!- hppavilion[1] has quit (Ping timeout: 240 seconds).
03:57:05 <HackEgo> [wiki] [[Bynary/implementation.js]] N https://esolangs.org/w/index.php?oldid=49007 * Conor O'Brien * (+3054) Created page with "An implementation of [[Bynary]] written in node js by [[User:Conor O'Brien]]. Make sure you `npm install readwrite` before running. == Implementation == const rw = require("..."
03:57:28 <HackEgo> [wiki] [[User:Conor O'Brien]] https://esolangs.org/w/index.php?diff=49008&oldid=48967 * Conor O'Brien * (+38) /* Languages I have implemented */
03:57:41 <HackEgo> [wiki] [[Bynary]] https://esolangs.org/w/index.php?diff=49009&oldid=36112 * Conor O'Brien * (+136)
03:59:19 <HackEgo> [wiki] [[Bynary]] https://esolangs.org/w/index.php?diff=49010&oldid=49009 * Conor O'Brien * (-2) /* Implementation */
04:13:55 <oerjan> enough of that. now reddit ->
04:23:16 <HackEgo> [wiki] [[FOS-X]] https://esolangs.org/w/index.php?diff=49011&oldid=49004 * Darkrifts * (+0) /* Documentation */
04:55:03 -!- Kaynato has quit (Ping timeout: 250 seconds).
04:56:29 -!- miketo has joined.
04:56:55 -!- miketo has quit (Max SendQ exceeded).
05:03:56 * Sgeo vaguely wonders if Hex TCG is any good
05:05:42 -!- hppavilion[1] has joined.
05:07:34 -!- augur has joined.
05:17:51 <hppavilion[1]> I just started listening to a video (https://youtu.be/LMMSEZk7Eqo, if you're curious)
05:18:06 <hppavilion[1]> And I noticed something I feel I should have picked up on years ago
05:18:26 <hppavilion[1]> The way the audio is set up for my headphones makes it sound like the music is coming from /inside/ my head
05:18:32 <Sgeo> What is that music
05:21:32 <HackEgo> [wiki] [[Truth-machine]] https://esolangs.org/w/index.php?diff=49012&oldid=48990 * Darkrifts * (+190) /* Implementations */
05:31:19 <hppavilion[1]> ...why is https://en.wikipedia.org/wiki/List_of_terrorist_incidents_in_August_2016 a thing?
05:45:51 -!- hppavilion[1] has quit (Ping timeout: 240 seconds).
05:45:54 <zzo38> How to convert a grammar to optimized so that the right side can have only up to one terminal and only at the beginning, and that if it contains actions then it contains nothing else?
05:51:43 <Sgeo> "Look through your deck. Shuffle your deck afterward.
05:51:43 <Sgeo> "
05:52:23 <HackEgo> [wiki] [[Calcutape]] https://esolangs.org/w/index.php?diff=49013&oldid=47351 * Darkrifts * (+350)
05:52:43 <Sgeo> I assume a good player should never have a need for that. And there goes hope that PTCGO has a UI that reminds you of your deck (do any card games have that?)
05:53:18 <zzo38> For Pokemon card, six cards are set aside at the beginning, so you might not know what cards remain until you can look.
05:53:44 <Sgeo> Oh, good point
05:53:45 <shachaf> Shuffling your deck isn't useful in PTCGO?
06:01:50 -!- tromp_ has quit (Remote host closed the connection).
06:06:34 <prooftechnique> Is that like Pokémon Go, but you catch cards instead of animated monsters? Seems like a niche market
06:08:14 -!- augur has quit (Read error: Connection reset by peer).
06:08:21 -!- augur has joined.
06:09:56 -!- blozo has joined.
06:20:22 -!- blozo has quit (Ping timeout: 252 seconds).
07:02:22 -!- tromp_ has joined.
07:06:47 -!- tromp_ has quit (Ping timeout: 260 seconds).
07:10:27 -!- augur has quit (Remote host closed the connection).
07:43:54 -!- oerjan has quit (Quit: Nite).
08:09:04 -!- augur has joined.
08:09:49 -!- Akaibu has joined.
08:33:51 -!- ais523 has quit.
09:01:15 <zzo38> The stuff to convert grammar I mentioned, I think the last part it is not difficult (I can think of it) but also I think it is wrong anyways so is irrelevant, other stuff I may be able to think of by myself anyways. But there are other problems anyways that I have not mentioned
09:02:22 -!- tromp_ has joined.
09:08:07 -!- tromp_ has quit (Ping timeout: 260 seconds).
09:09:32 <zzo38> This book might help too
09:31:15 -!- hppavilion[1] has joined.
09:31:31 <hppavilion[1]> An interesting thing about English (and indeed, most natural languages) is that it's beyond context sensitive
09:32:07 <hppavilion[1]> Because the way you talk necessarily changes based on the environment of the discussion- who you are, who you're talking to, and sometimes even the environment
09:32:16 <hppavilion[1]> An interesting example is the word "dad"
09:32:36 <hppavilion[1]> In most cases, you say "my dad" (or "my father")
09:32:45 <shachaf> "If a language is not regular, it requires a machine with at least Ω(log log n) space to recognize (where n is the input size).[22] In other words, DSPACE(o(log log n)) equals the class of regular languages."
09:33:02 <shachaf> int-e: Is that sort of comparison of Ω and o legitimate?
09:33:09 <hppavilion[1]> But when talking to a sibling, you're more likely to just say "dad"
09:33:20 <hppavilion[1]> And this also applies to your mother
09:33:34 <hppavilion[1]> But if you have two gay dads, then it changes
09:34:49 <zzo38> You can also have many English words that have many meanings, can be confusing and ambiguous, and many logic also isn't work with English speaking so well, so in addition to beyond context sensitive there is even more than that too.
09:34:51 <hppavilion[1]> (Now that I think about it, who do people with two fathers discuss their father? I assume they reference them by name, but then what about when trying to get the attention of one but not specifically the other? In a straight couple you'd just say "mom" or "dad", but if your parents are same-sex I guess you'd either have to use their names or create a separate system ("dad" and "dud" perhaps?))
09:35:13 <izabera> dad and papa
09:35:30 <hppavilion[1]> But you usually don't say "dad" when talking to a grandparent about your father
09:35:37 <hppavilion[1]> You say "my dad"
09:35:50 <hppavilion[1]> And it isn't linked to which side of the family they're on
09:36:40 <hppavilion[1]> But in an emotional-public context- for example, a sad Facebook post after the death of your father- you're likely to call them "Dad" instead of "my dad"
09:42:42 <hppavilion[1]> 4320p: Soon to be a thing
09:43:39 -!- augur has quit (Remote host closed the connection).
09:49:11 <izabera> at some point increasing the resolution will become less and less appealing
10:13:41 <izabera> i found out that my long forgotten youtube chan is still there
10:14:01 <izabera> https://www.youtube.com/watch?v=gwynSN_DBSI full of wizard101 videos like this one
10:14:11 <izabera> ah the memories :')
10:32:22 -!- HackEgo has quit (Ping timeout: 265 seconds).
10:42:58 -!- centrinia has joined.
10:49:20 -!- gamemanj has joined.
10:53:19 -!- gamemanj has quit (Client Quit).
10:55:49 -!- Jafet has joined.
10:58:50 -!- centrinia has quit (Quit: Leaving).
11:01:44 <int-e> shachaf: well the two sets Ω(log log n) and o(log log n) are certainly disjoint and the latter contains the regular languages and the former all the rest.
11:02:16 -!- HackEgo has joined.
11:03:54 <int-e> shachaf: of course it would be wrong to think that Ω(log log n) and o(log log n) are complements of each other.
11:04:44 -!- wob_jonas has joined.
11:06:42 <int-e> wob_jonas: what's the cheapest way for perl to invoke an external program and print its output?
11:07:12 <int-e> (I'm wondering whether the perl hello world entries are based on the same trick as the shell ones)
11:09:10 <wob_jonas> int-e: it depends. it can be exec"foo", or print`foo`, or say`foo`, or `foo 2>&1`, or just `foo` if it's printing to stderr, or just #!foo : if there's a shebang line but it doesn't mention perl, then I think perl will helpfully attempt to run the program in the shebang line
11:09:39 <shachaf> int-e: Do you mean DSPACE() in the first sentence?
11:09:41 <wob_jonas> int-e: I don't know which of these work in the case of anagolf
11:10:15 <int-e> ah, the shebang it is.
11:10:18 <wob_jonas> int-e: you can also try to check existing revealed perl solutions on anagolf, or ask mtve who's sometimes in this channel
11:10:40 <wob_jonas> int-e: and I think I'm missing some others
11:10:47 <wob_jonas> hmm
11:11:01 <int-e> thanks!
11:11:14 <wob_jonas> oh yes, there was the non-golf but VERY sneaky unshift"foo|";print<>
11:11:26 <wob_jonas> no wait, that's a syntax error
11:11:38 <wob_jonas> um, but anyway, get "foo|" onto @ARGV and then <>
11:11:44 <wob_jonas> there was some short sneaky way to do that
11:11:47 <wob_jonas> I don't recall what
11:11:55 <int-e> so that leaves one puzzle... how on earth does (or did) the 11 character bash entry work.
11:12:00 <wob_jonas> probably not enough for this golf, but it features in obfu
11:12:07 <wob_jonas> let me check
11:12:19 <wob_jonas> int-e: could it be using a full path for an executable not in PATH ?
11:12:32 <wob_jonas> like, there may be a directory containing the interpreters for all languages or something?
11:13:26 <int-e> 02:11:05 <int-e> In any case this seems to be a file system exploration exercise to a very large extent. For example, this is a hello world shell script on anagol: ruby ../oldlocal/test.rb
11:14:08 <wob_jonas> and in bash it uses wildcards like /*/*/*/h*+ or something which happens to expand to /usr/local/bin/hq9+ /something/irrelevant/containing/letterh
11:14:33 <wob_jonas> int-e: yes, anagol can be like that
11:14:48 <wob_jonas> you remember all the programs that depend on the pid or even the time you run them
11:14:56 <int-e> anyway I think that's more than enough of a hint.
11:15:15 <int-e> yeah I was looking for an angle to use the pid... didn't find any in this case.
11:15:32 <wob_jonas> sure, the pid won't help here
11:16:08 <int-e> I was thinking along the lines of `find`[$$]
11:16:35 <wob_jonas> how old is anagolf? could there have been a program that worked only for one second at epoch time 1234567890 in 2009-02 ?
11:17:24 <int-e> well, we have a stamp for the 11 byte bash entry: 2008/01/30 16:34:13
11:17:45 <wob_jonas> I see
11:18:07 <int-e> and it's quite possible that it got broken later
11:18:57 <int-e> 02:13:56 <int-e> (which can be shortened to ruby ../o*/*b and a few other versions, which is quite competetive) <-- once you do stuff like that it obviously becomes very fragile.
11:20:47 <wob_jonas> yeah
11:23:51 -!- hppavilion[1] has quit (Ping timeout: 240 seconds).
11:27:22 <int-e> But I find it highly amusing that the anagol server has a hello world program right under our noses... okay... once you move aside a pile of newspapaer and some old food.
11:28:47 <wob_jonas> int-e: that's normal. what computer doesn't have a hello-world program? are you thinking of non-unix systems which have no useful command-line utilities installed, so you can't even grep in a file or add two numbers without installing something?
11:30:01 <int-e> wob_jonas: I have to admit that I'm a bit surprised by how many GNU core utils do *not* implement any Hello, world! easter egg.
11:31:04 <wob_jonas> we should get a command-line hello world and a libc hello world, both such that they can print all the variations in case and punctuation, in the next revision of POSIX
11:34:09 <wob_jonas> Does busybox have a hello world command in it yet?
11:47:25 -!- hppavilion[1] has joined.
11:52:42 -!- Vorpal has quit (Quit: ZNC - http://znc.sourceforge.net).
11:53:21 -!- Phantom_Hoover has joined.
11:55:42 <wob_jonas> `hello
11:56:07 <HackEgo> Hello
11:56:53 <int-e> `hello does this take any arguments?
11:56:59 <HackEgo> Hello
11:57:12 <wob_jonas> `hello world
11:57:13 <HackEgo> Hello
11:57:23 <wob_jonas> `hello -w
11:57:25 <HackEgo> Hello
11:57:32 <int-e> `file bin/hello
11:57:38 <HackEgo> bin/hello: ASCII text
11:57:44 <int-e> `cat bin/hello
11:57:45 <HackEgo> echo Hello
11:57:51 <int-e> `rm bin/hello
11:58:00 <HackEgo> No output.
11:58:12 <wob_jonas> hey, don't delete it! we need a hello world executable conveniently accessible
11:58:54 <int-e> well it should do more than just that, I think
11:59:04 <wob_jonas> yeah
11:59:09 <wob_jonas> should I create a saner one?
12:03:24 <int-e> well, sanity is overrated. it should be mildly interesting in my view... do something with an argument, perhaps be a bit random...
12:04:04 <int-e> `` shuf -1 quotes
12:04:08 -!- tromp_ has joined.
12:04:11 <HackEgo> shuf: invalid option -- '1' \ Try `shuf --help' for more information.
12:04:45 <int-e> `` shuf -n 1 quotes
12:04:45 <wob_jonas> ``` e=bin/hello;>$e echo $'#!/usr/bin/perl\n''$c=unpack"h",pack"h",$ARGV[0]",($c&4?"w":"W"),"orld",($c&8?"."),"\n";' &&chmod -c a+x $e
12:04:59 <HackEgo> mode of `bin/hello' changed from 0644 (rw-r--r--) to 0755 (rwxr-xr-x)
12:05:01 <HackEgo> ​<Deewiant> Reality isn't a part of physics
12:05:01 <wob_jonas> `hello
12:05:05 <HackEgo> String found where operator expected at /hackenv/bin/hello line 2, near "]",($c&4?"" \ (Missing operator before ",($c&4?"?) \ String found where operator expected at /hackenv/bin/hello line 2, near "w":"" \ Bareword found where operator expected at /hackenv/bin/hello line 2, near "":"W" \ (Missing operator before W?) \ String found where operator
12:05:16 <wob_jonas> ``` e=bin/hello;>$e echo $'#!/usr/bin/perl\n''$c=unpack"h",pack"h",$ARGV[0]",($c&4?"w":"W"),"orld",($c&8?".":""),"\n";' &&chmod -c a+x $e
12:05:17 <izabera> booo
12:05:20 <HackEgo> No output.
12:05:22 <wob_jonas> `hello
12:05:26 <HackEgo> String found where operator expected at /hackenv/bin/hello line 2, near "]",($c&4?"" \ (Missing operator before ",($c&4?"?) \ String found where operator expected at /hackenv/bin/hello line 2, near "w":"" \ Bareword found where operator expected at /hackenv/bin/hello line 2, near "":"W" \ (Missing operator before W?) \ String found where operator
12:05:31 <izabera> booo x2
12:06:45 <int-e> `ls tmp
12:06:47 <HackEgo> args \ fruit \ sh \ spline \ spout \ tempcmd \ testcmd \ tmp_jonas
12:06:50 <wob_jonas> ``` e=bin/hello;>$e echo $'#!/usr/bin/perl\n''$c=unpack"h",pack"h",$ARGV[0];print+($c&1?"H":"h"),"ello",($c&2?"":","),($c&4?" W":" w"),"orld",($c&8?".":""),"\n";'
12:06:54 <HackEgo> No output.
12:06:57 <wob_jonas> `hello
12:07:01 <HackEgo> hello, world
12:07:05 <wob_jonas> `hello 2
12:07:07 <HackEgo> hello world
12:07:08 <wob_jonas> `hello 1
12:07:09 <HackEgo> Hello, world
12:07:10 <wob_jonas> `hello f
12:07:12 <HackEgo> hello, world
12:07:16 <int-e> `` exec >tmp/foo; echo 1; echo 3; echo 2
12:07:17 <HackEgo> No output.
12:07:20 <wob_jonas> `hello F
12:07:21 <int-e> `cat tmp/foo
12:07:23 <HackEgo> hello, world
12:07:23 <HackEgo> 1 \ 3 \ 2
12:07:28 <wob_jonas> that's wrong
12:07:29 <wob_jonas> `hello 7
12:07:33 <HackEgo> Hello World
12:07:36 <wob_jonas> `hello 9
12:07:40 <HackEgo> Hello, world.
12:08:21 <int-e> Hmm, no exclamation mark.
12:08:23 <wob_jonas> ``` e=bin/hello;>$e echo $'#!/usr/bin/perl\n''$c=unpack"C",pack"h",$ARGV[0];print+($c&1?"H":"h"),"ello",($c&2?"":","),($c&4?" W":" w"),"orld",($c&8?".":""),"\n";'
12:08:27 <HackEgo> No output.
12:08:32 <wob_jonas> `hello 9
12:08:34 <HackEgo> Hello, world.
12:08:36 <wob_jonas> `hello f
12:08:38 <HackEgo> Hello World.
12:08:39 <wob_jonas> `hello
12:08:41 <HackEgo> hello, world
12:08:48 <wob_jonas> int-e: oh, we can add that as an option too
12:09:02 -!- tromp_ has quit (Ping timeout: 265 seconds).
12:09:13 <int-e> . o O ( and !!!1 )
12:09:26 <wob_jonas> ``` e=bin/hello;>$e echo $'#!/usr/bin/perl\n''$c=unpack"C",pack"h2",$ARGV[0];print+($c&1?"H":"h"),"ello",($c&2?"":","),($c&4?" W":" w"),"orld",($c&16?"!":$c&8?".":""),($c&32?"":"\n");'
12:09:28 <wob_jonas> hopefully
12:09:32 <HackEgo> No output.
12:09:33 <wob_jonas> `hello
12:09:34 <HackEgo> hello, world
12:09:35 <wob_jonas> `hello f
12:09:36 <HackEgo> Hello World.
12:09:38 <wob_jonas> `hello 10
12:09:41 <HackEgo> Hello, world
12:09:42 <wob_jonas> `hello 01
12:09:45 <HackEgo> hello, world!
12:09:49 <wob_jonas> there
12:10:05 <wob_jonas> any other options you want?
12:10:15 <wob_jonas> `hello world
12:10:17 <HackEgo> hello, world
12:10:31 <int-e> nah I just wanted the Hello, world! to be covered as well
12:10:44 <wob_jonas> `hello 81
12:10:46 <HackEgo> hello, world!
12:10:50 <wob_jonas> `hello 41
12:10:52 <HackEgo> hello, World!
12:10:56 <wob_jonas> `hello 11
12:10:58 <HackEgo> Hello, world!
12:11:00 <int-e> Which seems to be the most common one, really. At least that's the impression from inside my bubble.
12:11:11 <wob_jonas> I can't follow which one is the most common really
12:11:29 <wob_jonas> also, maybe this should be changed so you only need one character for an argument, rather than two
12:11:39 <wob_jonas> there's still only 48 outputs so it would be possible
12:13:40 -!- atrapado has joined.
12:14:47 <int-e> `cat `.'
12:14:48 <HackEgo> cat: `.': No such file or directory
12:18:25 <wob_jonas> ``` e=bin/hello;>$e echo $'#!/usr/bin/perl\n''$c=unpack"C",$ARGV[0];print+($c&1?"H":"h"),"ello",($c&2?"":","),($c&4?" W":" w"),"orld",($c&16?"!":$c&8?".":""),($c&32?"":"\n");'
12:18:29 <HackEgo> No output.
12:18:30 <wob_jonas> `hello
12:18:32 <HackEgo> hello, world
12:18:33 <wob_jonas> `hello A
12:18:34 <HackEgo> Hello, world
12:18:35 <wob_jonas> `hello B
12:18:36 <HackEgo> hello world
12:18:37 <wob_jonas> `hello D
12:18:39 <HackEgo> hello, World
12:18:42 <wob_jonas> `hello H
12:18:42 <HackEgo> hello, world.
12:18:48 <wob_jonas> `hello P
12:18:49 <HackEgo> hello, world!
12:18:55 <wob_jonas> `hello `
12:18:56 <HackEgo> hello, world
12:19:08 <wob_jonas> `hello a
12:19:08 <HackEgo> Hello, world
12:19:18 <wob_jonas> `hello p
12:19:19 <HackEgo> hello, world!
12:19:23 <wob_jonas> `hello q
12:19:24 <HackEgo> Hello, world!
12:19:27 <wob_jonas> that's better
12:21:48 <wob_jonas> ``` e=bin/hello;>$e echo $'#!/usr/bin/perl\n''$c=unpack"C",$ARGV[0];print+($c&1?"H":"h"),"ello",($c&2?"":","),($c&4?" W":" w"),"orld",($c&16?$c&8?",":"!":$c&8?".":""),($c&32?"":"\n");'
12:21:51 <HackEgo> No output.
12:21:52 <wob_jonas> `hello
12:21:53 <HackEgo> hello, world
12:21:54 <wob_jonas> `hello !
12:21:55 <HackEgo> Hello, world
12:21:56 <wob_jonas> `hello b
12:21:57 <HackEgo> hello world
12:22:04 <wob_jonas> `hello h
12:22:05 <HackEgo> hello, world.
12:22:07 <wob_jonas> `hello i
12:22:09 <HackEgo> Hello, world.
12:22:10 <wob_jonas> `hello q
12:22:11 <HackEgo> Hello, world!
12:22:15 <wob_jonas> `hello y
12:22:16 <HackEgo> Hello, world,
12:22:31 <wob_jonas> `hello [
12:22:32 <HackEgo> Hello world,
12:22:39 <wob_jonas> `hello z
12:22:40 <HackEgo> hello world,
12:22:50 <wob_jonas> upper vs lower case tells whether it outputs a newline
12:22:52 <wob_jonas> `hello
12:22:53 <HackEgo> hello, world
12:24:20 <izabera> `` time seq 1000000 > /dev/null; time seq 1 2 1000000 > /dev/null
12:24:24 <HackEgo> real: 0m2.102s, user: 0m2.440s, sys: 0m0.000s \ real: 0m0.495s, user: 0m0.480s, sys: 0m0.000s
12:24:32 <izabera> wat
12:24:40 <izabera> `` time seq 1000000 > /dev/null; time seq 1 2 1000000 > /dev/null
12:24:43 <HackEgo> real: 0m0.993s, user: 0m2.240s, sys: 0m0.000s \ real: 0m0.469s, user: 0m0.460s, sys: 0m0.000s
12:24:56 <izabera> ok it makes no sense to time stuff on hackego
12:25:42 <wob_jonas> izabera: it usually makes no sense to time stuff anywhere. you usually get times for something other than what you wanted to measure.
12:26:11 <izabera> it's usually not nearly as skewed
12:26:34 <wob_jonas> sure, but HackEgo sometimes responds like a minute after your query, so what do you expect?
12:29:11 -!- hppavilion[1] has quit (Ping timeout: 240 seconds).
12:43:06 -!- Sgeo has quit (Ping timeout: 276 seconds).
12:50:44 -!- Frooxius has quit (Ping timeout: 260 seconds).
12:57:26 <izabera> the awkward moment when github says i have 0.2% c++ in my code and it's all c
12:57:47 <lifthrasiir> impure
12:58:04 <izabera> it's pure c
12:58:14 <lifthrasiir> you are using impure C with C++'s convention, so you are bad
12:58:18 <lifthrasiir> (probably)
12:58:24 <izabera> what conventions? D:
12:58:59 * izabera checks if there's any new or delete in the code... nope
13:01:04 -!- Sgeo has joined.
13:33:06 <wob_jonas> `learn anagol is Anarchy Golf, code golf server at http://golf.shinh.org/
13:33:12 <HackEgo> Learned 'anagol': anagol is Anarchy Golf, code golf server at http://golf.shinh.org/
13:44:08 -!- Zekka has quit (Ping timeout: 250 seconds).
13:54:51 -!- boily has joined.
14:02:27 * boily fills his watering can then hydrates int-e
14:05:29 -!- tromp_ has joined.
14:10:03 -!- tromp_ has quit (Ping timeout: 264 seconds).
14:13:42 <izabera> I JUST INVENTED THE BEST THING EVER
14:13:46 <izabera> #define case break; case
14:14:21 <wob_jonas> izabera: people do that, but give the macro a saner name
14:14:26 <izabera> nooo
14:29:59 <wob_jonas> also, if you do that, you'll be screwed at the default
14:30:32 <izabera> i usually put it first
14:30:37 <alercah> you're weird
14:30:44 <izabera> ok
14:31:18 <izabera> besides, nothing's stopping you from #define default break; default
14:33:09 <wob_jonas> well, technically you can't define either, because the standard doesn't permit you to define keywords, and obviously that's for a good reason, it could break library macros and stuff, but oh who cares
14:33:28 <wob_jonas> also, #define default break; default is worse because then you can no longer declare defaulted member functions
14:33:36 <alercah> You're allowed to if you don't use the stdlib at all, iirc
14:33:44 <alercah> if this is C++ though
14:33:51 <izabera> who needs stdlib anyway
14:33:55 <wob_jonas> alercah: I don't think you're allowed even then
14:33:56 <alercah> just used checked switch
14:33:59 <wob_jonas> the standard just forbids it
14:34:09 <wob_jonas> nah, just use if-goto
14:34:21 <wob_jonas> nobody needs switch or while
14:34:39 <alercah> oh, you're right
14:34:46 <wob_jonas> if, for, and goto are the only flow controls real men use
14:34:53 <alercah> you can't #define library names if you use the stdlib, but you can if you don't
14:35:10 <alercah> wob_jonas: who uses for?
14:35:15 <izabera> wob_jonas: no need for for with if+goto
14:36:01 <wob_jonas> alercah: me. for(;foo;) isn't actually longer than while(foo), so why bother learning two different loop control constructs when one is better than the other in all respects
14:36:47 <alercah> wob_jonas: why use loops?
14:37:03 <alercah> if you're encouraging shitty control flow
14:37:06 <wob_jonas> plus, if you only use if, for, goto then you can read the code even without knowing English, because you can recognize the different syntaxes without having to remember what the English keywords are
14:37:08 <alercah> just use if + goto
14:37:08 <izabera> alercah: he's still a padawan
14:37:19 <alercah> and hell, drop if
14:37:25 <alercah> just use GCC's computed labels extension
14:37:26 <wob_jonas> alercah: for(;;) is usually shorter than if-goto
14:37:47 <wob_jonas> yeah... and computed comefrom
14:37:56 <alercah> GCC doesn't have computed comefrom
14:38:05 <wob_jonas> yeah, it's stupid
14:38:07 <wob_jonas> we need those in C
14:38:08 <alercah> wob_jonas: wait, is the objective to use shitty control flow or to golf
14:38:20 <wob_jonas> it's not shitty control flow
14:38:32 <alercah> anything with if-goto is
14:38:32 <wob_jonas> it's to not make the language more complicated for no reason
14:38:51 <wob_jonas> do you, like, use unless in perl? I don't, because if(! is just easier to remember
14:39:07 <alercah> I submit that your argument is inconsistent
14:39:15 <alercah> if switch is complicated "for no reason", so are loops
14:39:19 <int-e> wob_jonas: I've used unless.
14:39:28 <wob_jonas> even when you need a parenthesis, if(!(foo bar)) is shorter than unless(foo bar)
14:39:34 * int-e isn't much of a perl hacker though
14:40:02 <wob_jonas> int-e: yes, me too, in those very old codes I have that I'm ashamed to read now. the worst part is where they don't put a space before equals signs for assignment.
14:40:10 <int-e> "unless" gives some insight into the programmer's intent.
14:40:21 <alercah> I also like unless-else
14:40:24 <int-e> potentially, at least.
14:40:36 <alercah> because writing if (!...) { } else { } always feels weird
14:40:47 <wob_jonas> that reminds me to S-Lang, which uses the strange syntax !if instead of unless
14:40:51 <alercah> err.. not always
14:40:52 <int-e> wob_jonas: note, I'd only use the statement form, foo unless bar;
14:40:57 <alercah> but sometimes is less intuitive
14:41:02 <alercah> foo unless bar is very useful
14:41:07 <wob_jonas> ok
14:43:55 -!- Frooxius has joined.
14:49:07 -!- tromp_ has joined.
14:51:46 <\oren\> #define brase break; case
14:52:16 <\oren\> #define ul(x) if(!(x))
14:52:34 <\oren\> #define ut(x) while(!(x))
14:52:41 <\oren\> #define wh while
14:53:07 <\oren\> #define ei else if
14:54:59 <\oren\> #define sut struct
14:55:15 <\oren\> #define cz const
14:55:54 <wob_jonas> \oren\: or just see the one and two letter macros in the source code of K
14:55:55 <wob_jonas> no
14:55:58 <wob_jonas> the source code of J
14:56:00 <wob_jonas> mistype
14:56:16 <wob_jonas> I think it has a #define I long or something liek that
14:56:37 <wob_jonas> and something like #define R(x) for(int n=0;n<x;n++)
14:56:44 <wob_jonas> I don't remember the details
14:56:50 <wob_jonas> there are dozens of such macros in it
14:57:05 <wob_jonas> It also has one-letter identifiers, like structure names
14:58:28 <int-e> #define sut struct ---- what.
14:59:07 <wob_jonas> oh, and I think geordi has some short mode where it defines a ton of three-letter macros
14:59:10 -!- Phantom_Hoover has quit (Ping timeout: 265 seconds).
14:59:11 <wob_jonas> for keywords and stuff
14:59:35 <int-e> and in any case these abbreviations are not worth giving my brain's recognition of said keywords for.
14:59:58 <int-e> (also I'd need to customize syntax highlighting and indentation... not worth the effort)
15:00:00 <wob_jonas> yep
15:00:22 <int-e> maybe those make sense as input abbreviations though
15:00:32 <alercah> why's geordi not in here
15:00:53 <int-e> who is geordi and why would they be here
15:01:24 <alercah> C++ execution bot
15:01:26 <wob_jonas> int-e: C++ evaluator bot
15:01:37 <wob_jonas> on #geordi , topic there gives url with info
15:01:52 -!- Phantom_Hoover has joined.
15:01:53 <nortti> https://www.youtube.com/watch?v=XiG1stRg8BM
15:03:26 -!- ^v has quit (Ping timeout: 250 seconds).
15:08:51 -!- ^v has joined.
15:13:26 <fizzie> wob_jonas: You *are* allowed to define macros identical to keywords if you don't include any standard headers.
15:13:29 <fizzie> wob_jonas: The only place that prohibits it is in C11 7.1.2p4, and it just says: "The program shall not have any macros with names lexically identical to keywords currently defined prior to the inclusion of the header or when any macro defined in the header is expanded."
15:13:50 <wob_jonas> fizzie: oh? I see
15:13:56 <wob_jonas> ok
15:14:41 <fizzie> Unfortunately macros can't expand to preprocessing directives -- otherwise you could #define switch to #define case, and #define hctiws to be } + #undef of case.
15:15:16 <fizzie> Maybe "unfortunately" isn't quite the right word.
15:16:03 <int-e> and there have been IOCCC entries that have to be preprocessed twice
15:16:06 <wob_jonas> Well, even with the current rules, people manage to use the preprocessor in very surprising games. It's sort of like an esoteric language really.
15:16:17 <int-e> (and, perhaps, even more often than that)
15:16:52 <int-e> yes, conditional #include is bad enough
15:17:56 <wob_jonas> and indirect includes, and token concatenation together with macros with arguments, especially vararg arguments, and macros that can expand to unbalanced parenthesis or commas
15:25:45 <fizzie> https://github.com/rofl0r/order-pp
15:25:53 <fizzie> (A relatively little-known gem.)
15:26:22 <fizzie> (Mostly see the 'example' directory.)
15:26:25 <wob_jonas> fizzie: I see
15:32:28 -!- ^v has quit (Ping timeout: 250 seconds).
15:35:16 -!- Phantom__Hoover has joined.
15:36:23 -!- Phantom_Hoover has quit (Ping timeout: 265 seconds).
15:37:24 -!- ^v has joined.
15:56:35 -!- ^v has quit (Ping timeout: 258 seconds).
15:59:24 -!- Jafet has quit (Quit: WeeChat 1.5).
16:01:30 -!- ^v has joined.
16:08:23 -!- Kaynato has joined.
16:24:28 -!- ^v has quit (Ping timeout: 250 seconds).
16:25:00 -!- ^v has joined.
17:06:28 -!- wob_jonas has quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client).
17:10:49 -!- wob_jonas has joined.
17:21:15 <\oren\> fizzie: macros can however, expand to virtual template functions
17:22:00 <\oren\> and this is apparently something not forbidden by our coding standards
17:23:12 <\oren\> * virtual *variadic* template functions
17:23:42 <wob_jonas> well, there are a lot of things that aren't explicitly forbidden by our coding standards...
17:23:48 <wob_jonas> but that doesn't make them a good idea
17:43:05 -!- boily has quit (Quit: BOOK CHICKEN).
17:49:35 -!- centrinia has joined.
17:54:10 -!- gamemanj has joined.
17:56:30 -!- Phantom__Hoover has quit (Ping timeout: 250 seconds).
17:58:47 -!- centrinia has quit (Quit: Leaving).
18:05:53 -!- Phantom__Hoover has joined.
18:09:30 -!- Zekka has joined.
19:11:10 -!- jaboja has joined.
19:15:51 -!- Phantom__Hoover has quit (Ping timeout: 240 seconds).
19:23:35 <shachaf> copumpkin: hmpumpkin
19:25:32 <shachaf> twitterpumpkin
19:35:58 -!- Phantom__Hoover has joined.
19:41:24 -!- wob_jonas has quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client).
19:41:38 -!- wob_jonas has joined.
19:44:03 -!- tromp_ has quit (Remote host closed the connection).
19:55:18 -!- wob_jonas has quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client).
20:44:39 -!- tromp_ has joined.
20:49:03 -!- tromp_ has quit (Ping timeout: 240 seconds).
20:59:04 -!- Phantom__Hoover has quit (Ping timeout: 244 seconds).
21:17:53 -!- centrinia has joined.
21:33:18 -!- Phantom__Hoover has joined.
22:07:26 -!- gamemanj has quit (Ping timeout: 244 seconds).
22:08:18 -!- MoALTz has quit (Ping timeout: 244 seconds).
23:16:39 -!- atrapado has quit (Quit: Leaving).
23:20:37 -!- wob_jonas has joined.
23:22:31 <wob_jonas> The Ebay website's Paypal payment dialog rounds numbers so that the extra precision doesn't distract you. It shows you the easily readable "Exchange rate: 1.00 HUF = GBP 0.00", instead of the confusing "1 HUF = 0.00256178 GBP" which has way too many digits to be useful.
23:22:37 -!- Kaynato has quit (Ping timeout: 250 seconds).
23:22:50 <wob_jonas> These people know how to design streamlined user interfaces.
23:23:27 <myname> so,you can get anything for free? that's nice
23:23:47 <wob_jonas> myname: no, the opposite. I have to pay infinite HUF to cover the price in GBP, no matter what that price is
23:24:31 <myname> pay in gbp hth
23:25:03 <int-e> @metar lowi
23:25:04 <lambdabot> LOWI 242150Z AUTO 27003KT 9999 -RA FEW005 BKN048 18/17 Q1021
23:25:20 <int-e> so humid :/
23:25:43 -!- centrinia has quit (Quit: Leaving).
23:26:57 <wob_jonas> myname: the rounding is for display only, it does actually use the correct rate 1 HUF = 0.002562 for computing the amount deducted
23:27:14 <myname> too bad
23:27:32 <wob_jonas> no, it's not too bad. I couldn't afford infinite HUF for this.
23:29:39 <int-e> you could try to sell something for a penny first
23:30:05 <wob_jonas> int-e: the currency buy rate and sale rate are different
23:30:12 <wob_jonas> but good idea
23:30:35 <wob_jonas> although the problem is, if the buyer wants a refund, I won't be able to afford to pay back the penny
23:31:28 <wob_jonas> not even if they payed me the penny first and I got 4 HUF for it or something
23:38:25 <fizzie> @metar EGLL
23:38:25 <lambdabot> EGLL 242220Z 22007KT 4000 -DZ OVC006 19/18 Q1018 BECMG 9999 BKN014
23:44:06 -!- wob_jonas has quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client).
23:58:40 -!- oerjan has joined.
←2016-07-23 2016-07-24 2016-07-25→ ↑2016 ↑all