/srv/irclogs.ubuntu.com/2007/05/22/#upstart.txt

=== keir [n=keir@206-248-179-111.dsl.teksavvy.com] has joined #upstart
=== keir [n=keir@206-248-179-111.dsl.teksavvy.com] has joined #upstart
=== keir [n=keir@206-248-179-111.dsl.teksavvy.com] has joined #upstart
=== Keybuk [n=scott@quest.netsplit.com] has joined #upstart
=== mbiebl [n=michael@e180071172.adsl.alicedsl.de] has joined #upstart
=== sadleder [n=sadleder@p50810F07.dip0.t-ipconnect.de] has joined #upstart
=== Md [i=md@freenode/staff/md] has joined #upstart
=== mbiebl [n=michael@e180071172.adsl.alicedsl.de] has joined #upstart
=== cortana [n=sam@62-31-146-25.cable.ubr12.azte.blueyonder.co.uk] has joined #upstart
=== juergbi [n=juerg@80-219-19-101.dclient.hispeed.ch] has joined #upstart
=== sadleder [n=sadleder@p50810F07.dip0.t-ipconnect.de] has left #upstart []
=== tale [n=tale@207.235.54.1] has joined #upstart
=== phoenix24 [n=phoenix2@59.176.29.131] has joined #upstart
=== keir [n=keir@206-248-158-82.dsl.teksavvy.com] has joined #upstart
=== mbiebl [n=michael@e180072011.adsl.alicedsl.de] has joined #upstart
=== Amaranth [n=travis@ubuntu/member/Amaranth] has joined #upstart
=== __keybuk [n=scott@wing-commander.netsplit.com] has joined #upstart
__keybukheh07:59
__keybukNM is broken today07:59
AlexExtremenm being the program nm or NetworkManager?07:59
__keybukNetwork Manager08:01
__keybukit amuses me no end that X-Chat is failing to render Md's quit message correctly08:02
AlexExtremeit works for me, after much charset setting changing ;)08:03
__keybukheh08:03
__keybukit gets it right, as long as you don't highlight it08:03
__keybukI prefer the chinese, anyway08:03
__keybuk08:03
AlexExtremeah, i see what you mean, that's kinda weird :p08:03
__keybukit must be a bug in the X-Chat text view widget08:04
__keybuksince the GTK+ standard one does it just fine if you paste it08:04
AlexExtremeyeah08:04
ion_It probably doesnt view combining characters correctly. vte has the same problem.08:04
__keybukoh well08:07
__keybuktoday I mostly trying to define the upstart state description machine/language08:07
=== Md [i=md@freenode/staff/md] has joined #upstart
__keybuk *  W  - Weak until:  has to hold until  holds. The difference with U is that there is no guarantee that  will ever be verified. The W operator is sometimes called "unless".08:56
=== __keybuk goes cross-eyed at linear temporarl logic
__keybukfundamentally I think we need the basic operators:09:01
__keybuk  a AND b     - both a and b are true09:01
__keybuk  a OR b      - either a or b are true09:01
__keybuk  NOT a       - a is false09:01
__keybukand09:01
__keybuk  a UNTIL b   - a is true and b is false; a resets b, b resets a09:02
__keybukit's the "reset" bit that's causing me headaches09:03
AlexExtremeyes, i think those will be the only needed ones. it'd be possible to double up some operators like AND and OR, right? so i could do "a AND b AND c", where all 3 are true, and "a OR b OR c" where either one is true09:03
__keybuksure09:04
__keybukso given a primitive Event operand ("has the event happened?"), UNTIL is easy09:04
__keybuksince it can reset the value on either side09:04
__keybukso   some-event UNTIL other-event09:04
__keybukwhen some-event happens, we "forget" other-event has happened, until it happens again09:04
__keybukat which point we "forget" that some-event happened09:05
AlexExtremeyes09:06
__keybukso what happens with09:06
__keybukNOT some-event UNTIL other-event09:07
__keybuk(NOT some-event) UNTIL other-event09:07
__keybukto make that clearer09:07
AlexExtremeick, that does cause headaches09:08
AlexExtremehmm09:08
AlexExtremeso that's basically "run on any event that isn't 'some-event' until 'other-event' occurs"?09:08
__keybuk"NOT event" would mean "event has not happened"09:09
AlexExtremeah09:09
__keybukso it means "run from when 'some-event' has not happened until 'other-event' has happened"09:09
__keybukit doesn't make any logical sense, does it? :p09:10
__keybuklikewise09:10
AlexExtremeabsolutely non at all09:10
__keybuka UNTIL b UNTIL c09:10
__keybukmakes no sense09:10
AlexExtreme*none09:10
__keybuk"run from a until b, until c happens; at which point a must happen again"09:10
__keybukI think it's equivalent to "a UNTIL (b OR c)"09:11
=== ion_ tries to concentrate but fails miserably.
ion_Whats the difference to the current complex-event-config implementation?09:13
__keybukion_: none, that's the problem I can't work out how to move on from09:19
__keybukthe other option I can see would be to do something like:09:21
__keybukhave "on" be Event and AND or OR09:21
__keybukand have an additional "from" operator that's Event UNTIL Event and AND/OR on until only09:21
__keybukon foo or bar09:22
__keybukfrom a until b09:22
__keybukI think it's definitely worth having the concepts partially seperate10:12
__keybuke.g. the following primitives10:12
__keybukEvent - has this event been seen? yes/no10:12
__keybukEventCombination - have {both of, either of} two events been seen10:13
ion_Has this event been seen? true/false/filenotfound10:13
__keybukwhy filenotfound?10:13
ion_http://worsethanfailure.com/Articles/What_Is_Truth_0x3f_.aspx10:14
__keybukthat's ternary logic10:15
__keybukdatabases tend to use it10:15
__keybukTRUE, FALSE and NULL10:15
ion_You do know the worsethanfailure website, dont you? :-) It used to be called the Daily WTF.10:16
__keybukno10:17
ion_http://worsethanfailure.com/Articles/Classics-Week-How-Not-to-Parse-Command-Line-Arguments.aspx10:18
ion_It contains real-life examples of code WTFs submitted by readers. :-)10:18
__keybukwhat's wrong with that? :p10:18
__keybukquite a cunning way to do it10:19
__keybuka lot of GTK+ uses that trick (though it wraps it with something called GQuark)10:19
ion_Hehe10:19
=== AlexExtreme hates GQuark with a passion
__keybukState - defines a period between two EventCombinations10:20
ion_For daily laughs, i recommend subscribing to the wtf feed. :-)10:20
__keybukand then10:20
__keybukStateCombination - are we in {both of, either of} two states10:20
__keybukthis doesn't seem that elegant to me10:27
AlexExtremehttp://en.opensuse.org/Boot_time << /me somehow thinks that that is completely unrealistic...10:46
AlexExtremethey want to get the boot time down to 5 seconds10:47
AlexExtremei just don't see how that is possible10:47
__keybukheh, that seems to be getting reported a lot this week10:48
__keybukthe page is over a year old!10:49
AlexExtremeit is?10:49
AlexExtremehmm10:49
AlexExtremeit is10:49
AlexExtremethen i wonder why distrowatch are reporting it...10:49
__keybuk*shrug*10:52

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!