Perl 6 - the future is here, just unevenly distributed

IRC log for #rosettacode, 2011-03-09

| Channels | #rosettacode index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:27 mwn3d_phone Any kind of alignment
00:27 kpreid well, "justify" does not mean that
00:27 kpreid "justified" text is text which has been spaced out between words so the left and right edges are smooth
00:27 kpreid if you mean alignment say so
00:28 mwn3d_phone I've heard "left justified" and "right justified" all my life
00:28 kpreid it's a very popular confusion
00:28 kpreid and it may well be *understood*, but there is no reason not to use the right term
00:29 kpreid anyway, since I've checked what you meant, I'll make the edit myself :)
00:29 mwn3d_phone Well like I said...change it however you want. Its not even my task. I tried to make it based off of an anon users task (and it didn't seem like their first language was english)
00:30 mwn3d_phone I'll officially state here that no one needs to ask me about changes to the task
00:52 Mathnerd314 left #rosettacode
02:23 parsleyfirefly left #rosettacode
02:24 parsleyfirefly joined #rosettacode
03:34 parsleyfirefly left #rosettacode
06:04 mwn3d_phone left #rosettacode
06:16 mwn3d_phone joined #rosettacode
06:47 BenBE left #rosettacode
06:50 FireFly joined #rosettacode
08:00 BenBE joined #rosettacode
08:08 FireFly left #rosettacode
13:59 kpreid left #rosettacode
13:59 eel left #rosettacode
14:02 parsleyfirefly joined #rosettacode
14:06 kpreid joined #rosettacode
14:23 FireFly joined #rosettacode
14:44 mwn3d_phone I'm trying to come up with a programming-related parody of "I can't get no satisfaction"
14:45 mwn3d_phone I thought of the lines "but he can't be a man cause he doesn't smoke the same cigarettes as me" and made it "but he can't be a man cause he doesn't use the same language as me" (sarcasm/irony directed at language wars)
14:46 mwn3d_phone And I thought to add "and I catch" in between all of the "and I try" lines
14:46 mwn3d_phone That's about all I got
15:06 shortcircuit mwn3d_phone: Suggestion: Throw it on a wiki page somewhere, and invite folks to play with it.
15:07 shortcircuit Somewhere under Village Pump would be reasonably appropriate, or as a subpage of your user page.
15:07 mwn3d_phone Heh maybe. I'll see if I can come up with any more lines on my own. I don't know the rhythm that well so I'll have to listen to it more.
15:08 shortcircuit Write me. And then compile me. Until I can get my. Execution.
15:08 shortcircuit :)
15:08 shortcircuit Or "'til I can get my"
15:09 shortcircuit I might be thinking of a different song, though.
15:13 shortcircuit Yeah, pretty sure Benny Benassai isn't the author of the song you're thinking of. And I think the lyrics I proposed probably handle all of the lyrical content of the song *I* was thinking of. >.>
15:13 mwn3d_phone I'm thinking of the rolling stones
15:50 parsleyfirefly left #rosettacode
16:04 parsleyfirefly joined #rosettacode
16:10 Mathnerd314 joined #rosettacode
16:20 mwn3d_phone I want to make a floating type where the ulp is the planck length (the planck length as far as I know is basically "the smallest length you'll need" in quantum physics).
16:21 shortcircuit In what units?
16:25 sorear mwn3d_phone: if the ulp is constrained to a specific amount, what you have is called a *fixed* point type.
16:26 * shortcircuit is reading https://secure.wikimedia.org/wikipedia/en/wiki/Floating_point#Representable_numbers.2C_conversion_and_rounding
16:26 shortcircuit ULP is defined on a per-exponent basis.
16:29 shortcircuit Do we have a task for converting one set of mantissa*2^exp to another, for varying mantissa and exp?
16:30 shortcircuit Sadly, I can't think of how it'd be interesting except for examining how floating point values work and are represented.
16:30 mwn3d_phone sorear: you're right. Sorry for the terminology mix-up.
16:35 mwn3d_phone shortcircuit: we did that in a C class in college to learn about union types
16:36 mwn3d_phone If you arrange the ineger fields in a union type carefully you have a floating type
16:36 shortcircuit Won't that be dependent on the endianness of the target platform?
16:37 shortcircuit (Is the endianness of the mantissa and exponent likely to be the same as that for regular integers?)
16:37 Coderjoe tends to be
16:38 sorear mu
16:38 Coderjoe on intel x86 processors, floating point numbers are byte swapped
16:38 shortcircuit ╬╝?
16:38 Coderjoe moo
16:38 sorear the mantissa and the exponent are defined as fields in an integer
16:38 sorear they have no endianness
16:39 shortcircuit How are they interpreted, then?
16:39 sorear (if IEEE 754)
16:39 shortcircuit oh
16:39 sorear a float is a 32 bit quantity; bit 23 is always the LSB of the exponent
16:39 sorear there is a single endianness for "how is this 32 bit quantity stored in memory?"
16:40 sorear every processor I know of stores 32 bit floats and 32 bit integers with the same endian
16:41 Coderjoe i haven't poked at little endian systems in a long time, and at that time I didn't poke at the memory representation of floating point numbers
17:25 parsleyfirefly left #rosettacode
17:28 parsleyfirefly joined #rosettacode
17:37 mwn3d_phone left #rosettacode
17:42 realazthat joined #rosettacode
17:48 mwn3d_phone joined #rosettacode
17:55 kpreid left #rosettacode
18:27 parsleyfirefly left #rosettacode
18:35 parsleyfirefly joined #rosettacode
19:18 mwn3d_phone Apparently after I took that C class where we reimplemented some of IEEE 754 they came out with a new version, IEEE 754-2008
19:18 mwn3d_phone That's what java uses
19:27 mwn3d_phone Actually java seems to use some sort of weird hybrid with an exponent bias of 1075...
19:27 mwn3d_phone Weird
19:27 Hypftier mwn3d_phone: even with strictfp?
19:28 mwn3d_phone Looks like it. I don't use strictfp so much so I'm not sure if I'm using it right
19:28 mwn3d_phone I just put it in the class line
19:28 Hypftier hm, ok, strictfp just makes fp operations identical across platforms, it doesn't mean it adheres to any standard
19:28 mwn3d_phone "Public strictfp class IEEEFP"
19:29 mwn3d_phone I made a little program to convert a double to bits and break the different parts out
19:29 mwn3d_phone Then it reconstructs the original number
19:30 mwn3d_phone Luckily they gave me "Double.doubleToLongBits"
19:30 mwn3d_phone And comments in the Double class helped me convert and mask properly
20:37 Util left #rosettacode
20:37 Util joined #rosettacode
21:50 mwn3d_phone Not sure if srs: [[user talk:blastfurnace]]. Funny anyway.
21:50 fedaykin http://rosettacode.org/wiki/user_talk:blastfurnace
21:51 shortcircuit hehe
22:12 parsleyfirefly left #rosettacode
22:23 BenBE left #rosettacode
23:14 kpreid joined #rosettacode

| Channels | #rosettacode index | Today | | Search | Google Search | Plain-Text | summary