code logs -> 2009 -> Sun, 05 Apr 2009< code.20090404.log - code.20090406.log >
--- Log opened Sun Apr 05 00:00:41 2009
--- Day changed Sun Apr 05 2009
00:00
<@Vornicus>
wtf are you doing now?
00:02
<@Consul>
Oh, it's no big deal. In fact, I highly doubt it's even original.
00:02
<@Consul>
But TDWTF really, really hate so-called "expert systems" and such enterprisey things.
00:03
<@Consul>
You know, the idea being to write an app that allows people to define their own processes using a simple text language.
00:03
<@Consul>
Only in the end, you just make a highly inefficient and buggy programming language.
00:04
<@Consul>
In the audio world, if you want to make a general purpose DSP engine, you make it graph based, which works extremely well.
00:04
<@Consul>
So I got to thinking, instead of DSP routines, why couldn't the blocks in a graph be business or money related?
00:05
<@Consul>
So business processes could be drawn as flowcharts, basically, and then a user interface built on top.
00:05
<@Consul>
But like I said, I'm 100% certain it's been done.
00:07
<@Consul>
But if I want to play around with making a graph-based programming interface, something like that might be easier to do than trying to create a real-time DSP engine.
00:08
<@ToxicFrog>
That kind of thing has in fact been done, although I'm not sure it's been done for the purpose you describe.
00:08
<@ToxicFrog>
The default Lego Mindstorms programming interface, for example.
00:08
<@Consul>
Well, graph-based interfaces are also the norm in special effects, especially compositing.
00:09
<@Consul>
I've seen image editing programs that use graphs, too.
00:09
<@Consul>
You can essentially code up custom filters using some building blocks.
00:10
<@Consul>
Again, as is usual for me, I'll probably not try to do anything with this.
00:11
<@Consul>
Though maybe I should, then I can sell it as a huge ERP system for $10,000 a server and retire.
00:16
<@Consul>
I just need to learn how to speak Buzzword so I can make the sales.
00:23
<@Consul>
And it needs a name in all caps that involves the word "graph", which makes a good buzzword to the non-technical.
00:23
<@Consul>
INTERGRAPH or GRAPHERGY or something like that. :-)
00:23
<@Vornicus>
More graph than your body has room for?
00:24
<@Consul>
Or I can try to be cute and call it Wyatt ERP or something like that. :-)
00:29 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Ping Timeout]
00:32 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
00:32 mode/#code [+o Attilla] by ChanServ
01:00 KBot [AnnoDomini@Nightstar-29279.neoplus.adsl.tpnet.pl] has joined #Code
01:01 KarmaBot [~karma.bot@Nightstar-29021.neoplus.adsl.tpnet.pl] has quit [Ping Timeout]
01:03 KBot is now known as KarmaBot
01:29 Tarinaky [~Tarinaky@Nightstar-16638.plus.com] has quit [Quit: Leaving]
01:42 Vornicus [Vornicus@Admin.Nightstar.Net] has quit [Ping Timeout]
01:48 Vornicus [Vornicus@Admin.Nightstar.Net] has joined #code
01:48 mode/#code [+o Vornicus] by ChanServ
02:07 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Connection reset by peer]
02:08 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
02:08 mode/#code [+o Attilla] by ChanServ
02:11 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Ping Timeout]
03:01
<@McMartin>
Heh. For all that Haskell binaries are bloated as Hell, the incremental bloat is tiny.
03:01
<@McMartin>
Normally, you'd expect linking in an insanely general parser library to cost less than, say, linking in atoi.
03:01
<@McMartin>
Er, to cost *more*
03:12
<@MyCatVerbs>
Yeah, one day they might even implement dynamic linking for the RTS, and all the binaries will suddenly become dinky, ish.
03:13
<@MyCatVerbs>
I think the optimizer is clever enough to turn most invocations of Parsec into good machine code, rather than heinous term-algebra-manipulating stuff.
03:13
<@MyCatVerbs>
I've never actually tried looking at the -ddump-simpl output, though.
03:14
<@MyCatVerbs>
If you ever get real curious about how the optimizer works on your code, grab ghc-core from Hackage. (cabal install ghc-core should Just Work, hopefully)
03:19
<@McMartin>
While you're here
03:19
<@McMartin>
How do I turn an Int into an Integer?
03:19
<@MyCatVerbs>
fromIntegral.
03:19 gnolam [lenin@Nightstar-1382.A163.priv.bahnhof.se] has quit [Quit: Z?]
03:20
<@MyCatVerbs>
Please, join #haskell on freenode. :)
03:20
<@MyCatVerbs>
Also, http://www.haskell.org/hoogle/ <- Hoogle has a better memory than I do.
03:22
<@McMartin>
Heh. I'll swing in once I finish messing with this (and after dinner).
03:22 * McMartin is messing around with the Scheme tutorial in Haskell at the moment.
03:23
<@MyCatVerbs>
Hoogle's real damn handy, in that you just give it a type signature and it picks the nearest thing out that it knows of from the standard libraries. Or ":(" if it can't come up with anything.
03:24
<@McMartin>
My own search had found GHC.Integer.smallInteger, which was Not The Right Thing.
03:25
<@MyCatVerbs>
Oh dear no. Anything under GHC.* is at least one of: nonstandard, unsafe, allowed to be changed at any whim of either of the Simons, etc.
03:28
<@McMartin>
Yeah. Not to mention that it can't be imported. =P
03:31
<@MyCatVerbs>
Oh it can. It's just hidden by default. You can use ghc-pkg to open it up.
03:31
<@MyCatVerbs>
You perhaps shouldn't, though. It's all fun stuff anyway.
03:37 Consul_ [~consul@Nightstar-26965.dsl.sfldmi.ameritech.net] has joined #code
03:37 Consul_ [~consul@Nightstar-26965.dsl.sfldmi.ameritech.net] has quit [Connection reset by peer]
03:37 Consul [~consul@Nightstar-26965.dsl.sfldmi.ameritech.net] has quit [Ping Timeout]
03:39
< Alek>
once my windows has been invalidated by a blocked key... how long do I have before it stops working?
03:45 Consul [~consul@Nightstar-26965.dsl.sfldmi.ameritech.net] has joined #code
03:45 mode/#code [+o Consul] by ChanServ
03:46
<@Consul>
Something about Flash video is causing my Linux machine to completely lock up.
03:46
<@Consul>
Strange.
03:55
<@Consul>
But then, FC10 has been very unstable for the past 6 weeks.
03:55
<@Consul>
It started going haywire on my sister's machine at about the same time, too.
06:02 Syloqs-AFH [Syloq@Admin.Nightstar.Net] has quit [Connection reset by peer]
06:03 ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has quit [Ping Timeout]
06:18 ToxicFrog [~ToxicFrog@67.204.45.ns-11386] has joined #code
06:18 mode/#code [+o ToxicFrog] by ChanServ
06:34 Vornicus [Vornicus@Admin.Nightstar.Net] has quit [Quit: ]
08:55 AnnoDomini [~farkoff@Nightstar-29279.neoplus.adsl.tpnet.pl] has joined #Code
08:55 mode/#code [+o AnnoDomini] by ChanServ
09:24 Rhamphoryncus [~rhamph@Nightstar-7184.ed.shawcable.net] has quit [Quit: Rhamphoryncus]
09:41 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
09:41 mode/#code [+o Attilla] by ChanServ
12:17 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Ping Timeout]
12:23 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
12:23 mode/#code [+o Attilla] by ChanServ
12:25 Tarinaky [~Tarinaky@Nightstar-16638.plus.com] has joined #code
12:28 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Connection reset by peer]
12:31 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
12:31 mode/#code [+o Attilla] by ChanServ
12:39 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Ping Timeout]
12:41 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
12:41 mode/#code [+o Attilla] by ChanServ
12:50 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Ping Timeout]
12:56 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
12:56 mode/#code [+o Attilla] by ChanServ
13:29 * AnnoDomini scratches head. When doing stuff on an array made of class instances, I have to use ->, right?
14:05 ToxicFrog [~ToxicFrog@67.204.45.ns-11386] has quit [Operation timed out]
14:21 ToxicFrog [~ToxicFrog@67.204.45.ns-11386] has joined #code
14:21 mode/#code [+o ToxicFrog] by ChanServ
15:03 gnolam [lenin@Nightstar-1382.A163.priv.bahnhof.se] has joined #Code
15:03 mode/#code [+o gnolam] by ChanServ
15:30 Vornicus [Vornicus@Admin.Nightstar.Net] has joined #code
15:30 mode/#code [+o Vornicus] by ChanServ
15:45 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Connection reset by peer]
15:46 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
15:46 mode/#code [+o Attilla] by ChanServ
16:04 Syloqs_AFH [Syloq@Admin.Nightstar.Net] has joined #code
16:05 Syloqs_AFH is now known as Syloqs-AFH
17:19
<@ToxicFrog>
Ok, what the fuck
17:19
<@ToxicFrog>
#!/bin/bash
17:20
<@ToxicFrog>
alias lines='{ while read line; do set -- $line;'
17:20
<@ToxicFrog>
find | lines ...
17:20
<@ToxicFrog>
Returns "line 3: lines: command not found"
17:20
<@ToxicFrog>
Oh, I see
17:21
<@MyCatVerbs>
Aren't aliases only expanded when they come up at the start of a line?
17:21
<@ToxicFrog>
No, lines works fine in interactive mode.
17:22
<@ToxicFrog>
Anyways, you need to shopt -s expand_aliases
17:27
<@MyCatVerbs>
That is handy to know, but I still prefer to stick with the things that work with pure sh rather than bash-isms, most of the time.
17:29
<@ToxicFrog>
All of my systems have bash installed.
17:29
<@ToxicFrog>
And if I stuck to pure sh I would go insane.
17:50
<@MyCatVerbs>
I've had... brushes, with being stuck with pure sh.
17:50
<@MyCatVerbs>
Well, choice of pure sh or tcsh.
17:54
<@ToxicFrog>
This is a one-off script to help me sort my horrible disorganized "game-related stuff" directory from two systems ago, so
18:04 Rhamphoryncus [~rhamph@Nightstar-7184.ed.shawcable.net] has joined #code
18:14 Netsplit DeepThought.NY.US.Nightstar.Net <-> Blargh.CA.US.Nightstar.Net quits: Tarinaky, KarmaBot, @GeekSoldier, Alek, @PinkFreud
18:15 Netsplit over, joins: Alek
18:22 GeekSoldier [~Rob@Nightstar-8573.midstate.ip.cablemo.net] has joined #code
18:22 mode/#code [+o GeekSoldier] by ChanServ
18:23 Tarinaky [~Tarinaky@Nightstar-16638.plus.com] has joined #code
18:41 KBot [~karma.bot@Nightstar-29279.neoplus.adsl.tpnet.pl] has joined #Code
18:41 PinkFreud [~WhyNot@Admin.Nightstar.Net] has joined #Code
18:41 KBot is now known as KarmaBot
20:13 * AnnoDomini ponders.
20:16
<@AnnoDomini>
Prolog. I have a list of 2-element lists. First element of the 2-element list is a Name, the second is a Number. I have a predicate that removes all elements of a base list with a matching Name. I have a predicate that sums the Numbers of elements with matching Names.
20:18
<@AnnoDomini>
I have to come up with a way to take a list of 2-element lists, with possible duplicates, and return a list without duplicates. So something like [[foo,1],[bar,2],[foo,3]] would turn into [[foo,4],[bar,2]].
20:21 * AnnoDomini thinks hard.
20:30
<@AnnoDomini>
Jesus H. Christ. If I didn't just write this code myself, I'd never make heads or tails of it.
20:31 Netsplit Troika.TX.US.Nightstar.Net <-> DeepThought.NY.US.Nightstar.Net quits: @EvilDarkLord, Syloqs-AFH, @MyCatVerbs, KarmaBot, @ToxicFrog, Rhamphoryncus, PinkFreud, @Consul, @McMartin, @Doctor_Nick
20:33 Netsplit over, joins: MyCatVerbs
20:34 Netsplit over, joins: KarmaBot, PinkFreud
20:35
<@AnnoDomini>
Yay, it works!
20:36
<@AnnoDomini>
Now for the other part of the thingie, which is collecting everything from a tree-like structure.
20:44 EvilDarkLord [~jjlehto3@Nightstar-9591.cs.hut.fi] has joined #code
20:46 Consul [~consul@Nightstar-26965.dsl.sfldmi.ameritech.net] has joined #code
20:47 Rhamphoryncus [~rhamph@Nightstar-7184.ed.shawcable.net] has joined #code
20:55 somnolence [~somnolenc@Nightstar-3790.hsd1.ca.comcast.net] has joined #code
21:00 Doctor_Nick [~nick@Nightstar-17219.tampfl.dsl-w.verizon.net] has joined #code
--- Log closed Sun Apr 05 21:23:06 2009
--- Log opened Sun Apr 05 21:26:12 2009
21:26 TheWatcher [~chris@Nightstar-29731.dsl.in-addr.zen.co.uk] has joined #code
21:26 Irssi: #code: Total of 18 nicks [9 ops, 0 halfops, 0 voices, 9 normal]
21:26 You're now known as TheWatcher[afk]
21:26 Irssi: Join to #code was synced in 47 secs
21:32 * AnnoDomini makes good use of the division method for solving problems.
21:33 somnolence [~somnolenc@Nightstar-3790.hsd1.ca.comcast.net] has joined #code
22:18
<@gnolam>
"Send in the army"?
22:19
<@AnnoDomini>
No. Divide a big problem into smaller problems.
22:27 ToxicFrog [~ToxicFrog@67.204.45.ns-11386] has joined #code
22:27 Syloqs-AFH [Syloq@Admin.Nightstar.Net] has joined #code
22:27 McMartin [~mcmartin@Nightstar-3361.dsl.pltn13.sbcglobal.net] has joined #code
22:27 mode/#code [+o jerith] by ChanServ
22:27 mode/#code [+o Chalain] by ChanServ
22:27 mode/#code [+o Reiver] by ChanServ
22:27 mode/#code [+o C_tiger] by ChanServ
22:27 mode/#code [+o AnnoDomini] by ChanServ
22:27 mode/#code [+o gnolam] by ChanServ
22:27 mode/#code [+o Vornicus] by ChanServ
22:27 mode/#code [+o Attilla] by ChanServ
22:27 mode/#code [+o GeekSoldier] by ChanServ
22:28 Doctor_Nick is now known as NSGuest-277
22:28 Consul is now known as NSGuest-281
22:28 MyCatVerbs is now known as NSGuest-302
22:28 EvilDarkLord is now known as NSGuest-283
22:35 NSGuest-281 is now known as Consul
23:09
<@AnnoDomini>
They really need to invent better batteries/power sources for laptops.
23:09
<@AnnoDomini>
As it is, my laptop is more like a portable desktop than anything else.
23:11
<@AnnoDomini>
Not plugged in, the screen is dark, computations take longer, wifi rarely works and it lasts for only about three hours - at best.
23:36
<@Attilla>
Link it to your bloodstream to drain the life from you to power it.
23:37
<@AnnoDomini>
I am reminded of hate-powered jetpacks.
23:37
<@Attilla>
(not literally, I mean more in a hydroelectric fashion)
23:37
<@Attilla>
Or I guess piezoelectric is easier than putting little turbines in your blood
23:38
<@Attilla>
And have it work off your pulse
23:50
<@Vornicus>
I want guns. Plural.
23:50
<@Vornicus>
Floating around me.
23:50
<@Vornicus>
Controlled by murder thoughts.
23:50
<@AnnoDomini>
An admirable wish.
23:54
<@AnnoDomini>
Huh. I hear Dave Arneson's not doing well.
--- Log closed Mon Apr 06 00:00:08 2009
code logs -> 2009 -> Sun, 05 Apr 2009< code.20090404.log - code.20090406.log >