←2018-09-07 2018-09-08 2018-09-09→ ↑2018 ↑all
00:14:22 -!- S_Gautam has quit (Quit: Connection closed for inactivity).
00:23:36 -!- Essadon has joined.
00:24:03 -!- Essadon has quit (Client Quit).
00:56:04 -!- Phantom_Hoover has quit (Read error: Connection reset by peer).
01:34:35 -!- pimlu has joined.
01:38:49 <pimlu> hey, I figured this was a better place to share
01:39:18 <pimlu> I wrote a really fast FRACTRAN interpreter, which for some programs is like, super duper fast
01:39:50 <pimlu> I made a bet with my friend that at least one person would give a shit about fractran
01:40:07 <pimlu> so at this point I would even take a "thank you pimlu, very cool!"
01:40:16 <pimlu> anyway it's here https://pimlu.github.io/fractran/
01:40:23 <pimlu> it changes the big O time complexity of your programs
01:42:40 <pimlu> it can sometimes speed programs up by an exponential factor
01:53:02 <zzo38> It is blank
01:59:11 <pimlu> the page? what browser are you using?
02:01:38 <zzo38> The HTML code is also blank except <title> and <meta>
02:02:13 <zzo38> I am using Firefox 39.0
02:02:25 <pimlu> do you have JS enabled? otherwise it would be blank
02:03:34 <pimlu> maybe I should put some kind of noscript thing in there
02:03:50 <zzo38> Shouldn't a webpage be written in HTML?
02:03:59 <zzo38> (rather than JavaScript)
02:04:35 <pimlu> yeah, however since the interpreter runs in your browser, which needs JS, I just made the whole thing depend on it
02:05:00 <pimlu> if you want to run it on desktop you can run the haskell natively, it's just kind of annoying and an obscure language
02:05:39 <zzo38> O, OK. Although you might want to only view the source code repository (hopefully there is one, if it is Github?) rather than to execute it
02:05:56 <pimlu> yup, https://github.com/pimlu/fractran
02:06:01 <zzo38> OK I will look
02:06:27 <pimlu> you can read the code yourself, or take a look at the benchmarks at the end of the paper I attached in there
02:06:56 <zzo38> I do have ghc in my computer
02:07:09 <pimlu> oh sweet haha
02:08:24 <pimlu> I was using haste to build it for the browser, which usually allows a lot more people to see your code
02:08:43 <pimlu> since people trust the browser sandbox and find urls and easy way to run code
02:08:51 <pimlu> surprised it went the other way around this time
02:09:12 <zzo38> This time I have no intention to run the code, only to view it, anyways
02:09:22 <pimlu> ah I see
02:09:40 <pimlu> the important bits are in Fractran.hs
02:09:52 <zzo38> Yes, I thought so
02:10:14 <pimlu> mainly `leap` and `cycles`
02:16:49 -!- S_Gautam has joined.
02:20:56 <zzo38> That is good.
02:21:05 <zzo38> (I read the explanation too)
02:27:06 <pimlu> Yeah, the theory is solid, though the code needs cleanup
02:27:14 <pimlu> I wrote it all before my capstone deadline a while ago
02:27:22 <zzo38> OK
02:28:00 <pimlu> thanks!
02:31:29 <zzo38> I remember I once wrote a golfed Fractran implementation with JavaScript (it is only a function and has no user interface), but cannot find it right now.
02:33:46 <pimlu> that's cool. neat how simple turing complete architectures can be
02:43:28 <zzo38> I did find this polyglot program I wrote though: select(typeof('\'')x){}/*'))where/*/main(){puts("Hello, World!");}//*/0;select'Hello, World!'; I also found a implementation of Unnecessary that I wrote: require("fs").stat(process.argv[2],x=>x._)
02:48:57 -!- XorSwap has joined.
02:49:40 <esowiki> [[Talk:Unnecessary]] https://esolangs.org/w/index.php?diff=57536&oldid=53561 * Zzo38 * (+96)
02:50:08 <zzo38> I found my Fractran implementation in JavaScript: (n,p,f=_=>p.some(([x,y])=>n*x%y?0:n=n*x/y)?f():n)=>f()
02:50:35 <zzo38> Do you like this?
02:57:13 <shachaf> Does it only work for numbers up to 2^52?
02:57:26 <shachaf> helloerjan, hob_jonas, etc.
03:00:01 <zzo38> It is that problem yes, but later with new version of JavaScript with bigint, it can presumably work for numbers of any size.
03:09:01 <pimlu> that's awesome
03:17:31 -!- pimlu has quit (Ping timeout: 246 seconds).
03:32:41 -!- oerjan has joined.
03:41:59 -!- pimlu has joined.
04:15:39 -!- oerjan has quit (Quit: leaving).
04:19:03 -!- pimlu has quit (Ping timeout: 252 seconds).
04:41:47 <zzo38> Now I made scatter plotting in SQL
04:49:23 -!- pimlu has joined.
04:53:27 -!- pimlu has quit (Ping timeout: 240 seconds).
05:11:00 -!- pimlu has joined.
05:17:23 -!- Sgeo_ has joined.
05:20:03 -!- Sgeo has quit (Ping timeout: 245 seconds).
06:36:23 -!- S_Gautam has quit (Quit: Connection closed for inactivity).
07:12:52 -!- pimlu has quit (Ping timeout: 272 seconds).
07:38:38 -!- xkapastel has quit (Quit: Connection closed for inactivity).
08:20:54 -!- john_metcalf has joined.
08:30:35 -!- boredperson has joined.
08:34:57 -!- boredperson has quit (Client Quit).
09:09:59 -!- tromp has quit (Remote host closed the connection).
09:16:58 -!- XorSwap has quit (Ping timeout: 246 seconds).
09:26:10 -!- AnotherTest has joined.
09:42:14 -!- tromp has joined.
09:44:56 -!- ais523 has quit (Quit: quit).
09:47:24 -!- tromp has quit (Ping timeout: 272 seconds).
09:48:40 -!- imode has quit (Ping timeout: 272 seconds).
09:50:23 -!- tromp has joined.
11:01:26 -!- SopaXorzTaker has joined.
11:43:27 -!- AnotherTest has quit (Ping timeout: 252 seconds).
11:50:11 -!- Essadon has joined.
11:56:38 <esowiki> [[Fractran]] https://esolangs.org/w/index.php?diff=57537&oldid=41551 * B jonas * (+98) +Fast fractran interpreter by pimlu
12:01:23 -!- wob_jonas has joined.
12:02:23 <wob_jonas> `ehlist http://eheroes.smackjeeves.com/comics/2666629/getting-hyper/
12:02:24 <HackEso> ​/srv/hackeso-code/multibot_cmds/lib/limits: line 5: exec: ehlist: not found
12:03:25 <wob_jonas> pimlu: ah, as I was reading your lines, I was thinking ... there's no way I can tell if that fractran interpreter even works, let alone if it's really fast. we'll need someone who is crazy enough to have actually written nontrivial programs in fractran. maybe zzo38 has. but then I read the log further and indeed, zzo38 popped up on cue.
12:09:22 <wob_jonas> zzo38: try looking at the article https://github.com/pimlu/fractran/raw/master/termpd.pdf too, not only the source code
12:09:29 <esowiki> [[Fractran]] https://esolangs.org/w/index.php?diff=57538&oldid=57537 * B jonas * (+180) source code link for pimlu's interpreter
12:20:07 <esowiki> [[User:YamTokWae/Sandbox]] https://esolangs.org/w/index.php?diff=57539&oldid=57535 * YamTokWae * (+1147)
12:23:33 -!- Phantom_Hoover has joined.
12:23:34 -!- Phantom_Hoover has quit (Changing host).
12:23:34 -!- Phantom_Hoover has joined.
12:24:25 <esowiki> [[User:YamTokWae/Sandbox]] https://esolangs.org/w/index.php?diff=57540&oldid=57539 * YamTokWae * (+310) /* Programming Language using toki pona? */
12:51:51 -!- wob_jonas has quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client).
13:46:52 -!- Phantom_Hoover has quit (Remote host closed the connection).
13:51:21 -!- Phantom_Hoover has joined.
13:51:22 -!- Phantom_Hoover has quit (Changing host).
13:51:22 -!- Phantom_Hoover has joined.
13:57:41 -!- Phantom_Hoover has quit (Remote host closed the connection).
13:58:20 -!- Phantom_Hoover has joined.
13:58:21 -!- Phantom_Hoover has quit (Changing host).
13:58:21 -!- Phantom_Hoover has joined.
13:58:32 -!- Phantom_Hoover has quit (Remote host closed the connection).
14:01:04 -!- arseniiv_ has joined.
14:03:30 -!- arseniiv_ has left.
14:03:40 -!- arseniiv has joined.
14:24:41 -!- LKoen has joined.
14:29:01 -!- xkapastel has joined.
15:26:37 -!- spiegelau has joined.
16:09:25 -!- LKoen has quit (Quit: “It’s only logical. First you learn to talk, then you learn to think. Too bad it’s not the other way round.”).
16:44:21 -!- spiegelau has quit (Quit: Lost terminal).
16:54:57 -!- dfgb34 has joined.
17:05:40 -!- dfgb34 has quit (Ping timeout: 272 seconds).
17:57:04 -!- pimlu has joined.
18:53:33 -!- pimlu has quit (Ping timeout: 252 seconds).
19:10:42 -!- AnotherTest has joined.
19:37:53 -!- pimlu has joined.
19:59:27 -!- wob_jonas has joined.
20:01:01 <wob_jonas> Another crazy thing I learned about English today: a "stirrup jar" has nothing to do with a "stirrup". I got suspicious and looked up the meaning after the second document that talked about a "stirrup jar" as an archaeological find dated to bronze age civilizations.
20:06:02 -!- SopaXorzTaker has quit (Quit: Leaving).
20:17:52 -!- sftp has quit (Excess Flood).
20:18:13 -!- sftp has joined.
20:18:27 <zzo38> Now I made enough SQLite extension that you can make this picture http://zzo38computer.org/img_1C/sinewave.png from the following SQL code: with x(x) as (select gr_plot(':width=160:height=150:pad=8:axis=00aa00:line=00ff00',value,sin(value*pi()),null) from range(-1,1,.05)) select pipe(x,'ffpng > sinewave.png') from x;
20:19:25 <zzo38> Do you like this?
20:20:32 <wob_jonas> zzo38: great. that would probably take me over twenty minutes to reproduce with gnuplot, most of that spent in reading the manual for how to make the frame a dotted line, then giving up and removing the frame and addin a dotted rectangle object instead.
20:20:38 <wob_jonas> :-)
20:20:55 <wob_jonas> why's it all green on white by the way? that's not a good color.
20:21:02 -!- sebbu2 has joined.
20:21:29 <zzo38> Yes, that is correct, it isn't; with a black background it look better. Without a option ':bg=000000' it will be a transparent background.
20:21:50 <wob_jonas> oh... it's supposed to be transparent? let me check
20:22:08 <zzo38> (Sorry I didn't fix it, since with my testing I did not see the error until I checked in the web browser. Still, even in the web browser you can use a data: URI in the location bar to force it to use your own background colour.)
20:22:37 <wob_jonas> Indeed it's transparent. Sorry.
20:23:33 <wob_jonas> That makes it better. I'm not sure if I could make the gnuplot pngcairo engine use a transparent background. I'd guess no, but then I don't _want_ a plot on a transparent background either.
20:24:24 -!- sebbu has quit (Ping timeout: 250 seconds).
20:24:27 <wob_jonas> But yes, that green on black would make sense.
20:25:54 <zzo38> The "xwindows" extension ignores the alpha channel, so it appears black if you write: insert into xwindows(picture) select gr_plot(...)
20:27:09 <wob_jonas> zzo38: and adding a black background is easy in various ways, I just didn't realize it was a transparent image.
20:58:23 -!- pimlu has quit (Ping timeout: 245 seconds).
21:06:07 -!- Mayoi has joined.
21:08:14 -!- pimlu has joined.
21:14:34 -!- arseniiv has quit (Ping timeout: 240 seconds).
21:16:33 -!- Mayoi has quit (Quit: Ouch! Got SIGIRL, dying...).
21:16:44 <zzo38> Functions should be added for other kind of plot too, and for axis labels, which currently doesn't have (except for a GR_PIE function which makes a simple pie chart without options or labels or anything like that)
21:16:51 -!- Mayoi has joined.
21:19:58 <wob_jonas> Fuck.
21:20:24 <wob_jonas> I *will* be buying a new set of glasses this year after all. I was hoping I would be able to skip this year.
21:20:41 <wob_jonas> I just dropped my glasses and broke the lens.
21:20:49 <wob_jonas> s/ set of/ pair of/
21:31:08 -!- Essadon has quit (Quit: Qutting).
21:31:11 <wob_jonas> Double fuck.
21:31:20 -!- Mayoi has changed nick to erkin.
21:32:11 <wob_jonas> There's a hiss when I put all my weight on my exercise ball. It must have gotten a hole from a splinter of the broken glass lens.
21:34:36 <wob_jonas> On the plus side, now I know what to tell my mother who keeps asking me what she could give me as a birthday present. I'd like a new exercise ball.
21:38:31 <wob_jonas> I found the hole.
21:40:23 <wob_jonas> Let me google if holes on exercise balls can be repaired with bicycle inner tire repair kits.
21:43:36 <wob_jonas> https://www.exerciseball-gymball.com/exercise-ball-patch/ says "You can use a repair kit for inflatable boats. The patches are robust and durable. Bicycle patch also works, but is not quite as strong."
21:52:11 <wob_jonas> The air actually comes out even with no weight on the ball until the pressure drops such a low equilibrium that the ball is already a bit too deflated to comfortably sit on it.
21:53:15 <wob_jonas> Let me tyr to measure what that equilibrium is.
21:54:42 <wob_jonas> It's about this much (points at the ball).
21:54:57 -!- imode has joined.
21:55:40 <wob_jonas> Let me see how long a dumb patch with a strip of PVC insulation tape would last if I sit on the ball.
21:56:13 <wob_jonas> At that pressure that is equilibrium for no weight on the ball that is.
22:22:20 -!- pimlu has quit (Ping timeout: 272 seconds).
22:38:11 -!- AnotherTest has quit (Ping timeout: 272 seconds).
22:51:14 -!- pimlu has joined.
22:52:53 <wob_jonas> Nope. Insulation tape is still there, but the ball still leaks air quickly as I'm sitting on it.
23:18:04 -!- Sgeo_ has quit (Ping timeout: 272 seconds).
23:55:16 -!- Sgeo has joined.
23:57:19 -!- ais523 has joined.
23:58:00 <ais523> @messages?
23:58:00 <lambdabot> Sorry, no messages today.
23:58:10 -!- Sgeo_ has joined.
23:58:18 <wob_jonas> hey ais523!
23:58:42 <ais523> hi
23:59:33 <ais523> hmm, the stalker server isn't connected, so maybe I'm not connected to IRC either
23:59:38 -!- Sgeo has quit (Ping timeout: 245 seconds).
23:59:53 <ais523> oh, apparently my comments appear on the logs if I refresh the page
23:59:54 <ais523> so I must be
←2018-09-07 2018-09-08 2018-09-09→ ↑2018 ↑all