00:00:00 --- log: started forth/06.04.05 00:51:27 --- quit: Robert (Read error: 104 (Connection reset by peer)) 00:55:57 --- join: Robert (n=robert@unaffiliated/robert) joined #forth 04:27:30 --- join: PoppaVic (n=pete@0-1pool75-29.nas24.chicago4.il.us.da.qwest.net) joined #forth 04:30:37 --- join: cheery (i=Henri@a81-197-45-47.elisa-laajakaista.fi) joined #forth 04:56:32 --- join: tathi (n=josh@pdpc/supporter/bronze/tathi) joined #forth 04:56:58 Mornin', tathi 04:57:40 hi 04:59:40 tathi: you seen any code or macro to calculate alignment or padding? 05:01:00 hi 05:01:30 mornin' 05:05:51 I *think* most compilers these days just use natural alignment within the struct 05:06:57 hmm... well, within C itself, using a struct, it's automagical.. trying with __packed__ will definitely produce a packed-struct different than usual. I was actually thinking of stacks and forth-like structs aligned/padded, etc 05:09:24 I did find this url (see "General Byte.."): http://www.eventhelix.com/RealtimeMantra/ByteAlignmentAndOrdering.htm 05:09:48 assuming size is a power of two: void *align(void *p, size_t sz) { sz--; return (p + sz) & ~sz); } 05:09:50 But, I dunno if this general rule is applicable all over or just wishful thinking. 05:09:59 of course, C probably won't like that, but that's the general idea 05:10:46 Yeah, I suspect doing & ~sz on the ptr will freak C ;-) 05:11:32 eh 05:11:39 what does ~something mean? 05:11:58 xor, I think or not - I always confuse the two 05:12:14 xor is ^i believe... 05:12:39 yes 05:12:42 ~ is bitwise not 06:24:34 --- join: segher (n=segher@dslb-084-056-134-151.pools.arcor-ip.net) joined #forth 06:33:41 --- quit: segher_ (Read error: 110 (Connection timed out)) 07:06:37 --- join: JasonWoof (n=jason@c-71-192-33-206.hsd1.ma.comcast.net) joined #forth 07:06:37 --- mode: ChanServ set +o JasonWoof 07:06:47 lo, JasonWoof 07:06:54 Hi. 07:09:14 hey JasonWoof... you do alignment and padding? 07:26:38 --- quit: PoppaVic ("choring...") 08:17:12 --- join: virl (n=virl@chello062178085149.1.12.vie.surfer.at) joined #forth 08:17:31 hi 08:44:12 --- join: nballen (n=nballen@adsl-69-109-11-176.dsl.renocs.pacbell.net) joined #forth 08:48:41 --- quit: nballen (Client Quit) 09:11:32 --- join: neceve (n=Clau@unaffiliated/neceve) joined #forth 09:42:23 --- nick: cheery -> CHEERY 09:44:42 --- nick: CHEERY -> Cheery 09:45:20 --- nick: Cheery -> Cheery|- 09:45:28 --- nick: Cheery|- -> Cheery|-} 09:46:03 --- nick: Cheery|-} -> Cheery 10:37:56 --- join: PoppaVic (n=pete@0-1pool47-87.nas30.chicago4.il.us.da.qwest.net) joined #forth 13:59:50 --- log: started forth/06.04.05 13:59:50 --- join: clog (n=nef@bespin.org) joined #forth 13:59:50 --- topic: 'Welcome to #forth. We discuss the Forth programming language, simplicity, and a variety of technical subjects. The rules are simple: don't spam, don't troll, and please speak English.' 13:59:50 --- topic: set by Quartus on [Sat Jan 21 17:32:55 2006] 13:59:50 --- names: list (clog OrngeTide Alterego PoppaVic neceve virl @JasonWoof segher tathi Robert uiuiuiu Ray-work arke ajs Quartus Raystm2 madwork saon Jim7J1AJH @crc pizza_ Zymurgy ccfg madgarden warpzero oxygene) 14:42:03 --- join: PoppaVic1 (n=pete@0-1pool46-97.nas30.chicago4.il.us.da.qwest.net) joined #forth 14:43:27 --- quit: PoppaVic (Nick collision from services.) 14:43:29 --- nick: PoppaVic1 -> PoppaVic 14:58:13 --- join: Ray_work (n=Raystm2@adsl-68-90-192-85.dsl.rcsntx.swbell.net) joined #forth 14:58:14 --- quit: Ray-work (Read error: 104 (Connection reset by peer)) 15:17:30 --- quit: saon (Nick collision from services.) 15:17:48 --- join: saon (i=1000@unaffiliated/saon) joined #forth 15:43:16 --- quit: PoppaVic ("Pulls the pin...") 16:23:30 --- quit: neceve ("Bye people, I'm leaving") 17:19:53 --- join: snowrichard (n=richard@adsl-69-155-177-154.dsl.lgvwtx.swbell.net) joined #forth 17:25:17 --- quit: tathi ("leaving") 17:29:29 --- quit: snowrichard ("Leaving") 17:58:02 --- join: Amanita_Virosa (n=jenni@adsl-69-154-178-250.dsl.hstntx.swbell.net) joined #forth 18:32:41 --- quit: uiuiuiu (Remote closed the connection) 18:32:45 --- join: uiuiuiu (i=ian@dslb-084-056-235-026.pools.arcor-ip.net) joined #forth 18:40:49 --- join: snowrichard (n=richard@adsl-69-155-177-154.dsl.lgvwtx.swbell.net) joined #forth 18:41:08 --- join: charles` (n=charles`@host-64-139-245-63.nctv.com) joined #forth 18:41:42 to put the infinity, nan, etc. floats on the floating stack? 18:41:51 err sorry that got truncated 18:41:55 is there a keyword to do that? 18:43:02 --- quit: snowrichard (Client Quit) 18:44:43 Implementation-specific, charles`. 18:51:14 Quartus, how about in gforth? 18:56:44 also, as an aside, do you know a good way to, given a C double, print it out such that it can be inputted into gforth without precision loss? 18:57:03 from within C 18:58:08 how do you normally enter doubles into gforth? 18:59:04 JasonWoof, [signed number].[whatever decimals]e[signed number] 19:00:05 so are you asking how to print like that from C? or would that loose precision? 19:01:42 Well, like I could do printf("%.476543fe0" , thefloat); 19:01:55 where 476543 is just a random large number I chose.. 19:02:30 exactly what I was thinking 19:04:03 heh guess it will work 19:05:48 wait... what's with the fe0 19:05:57 %.30e 19:07:02 oh, sorry 19:07:13 E makes it so you always get an exponent 19:07:20 so %.30E 20:20:57 --- quit: charles` (Read error: 104 (Connection reset by peer)) 20:38:42 --- join: charles` (n=charles`@host-64-139-245-63.nctv.com) joined #forth 20:39:19 --- quit: Zymurgy (zelazny.freenode.net irc.freenode.net) 20:39:19 --- quit: ccfg (zelazny.freenode.net irc.freenode.net) 20:39:19 --- quit: pizza_ (zelazny.freenode.net irc.freenode.net) 20:39:19 --- quit: oxygene (zelazny.freenode.net irc.freenode.net) 20:41:21 --- join: oxygene (n=oxygene@khepri.openbios.org) joined #forth 20:41:27 --- join: Zymurgy (i=zymurgy@cat.delfax.net) joined #forth 20:41:27 --- join: ccfg (n=ccfg@dsl-roigw1-fe8ade00-21.dhcp.inet.fi) joined #forth 20:41:28 --- join: pizza_ (i=pizza@ool-4576834c.dyn.optonline.net) joined #forth 20:56:18 Sorry, charles` -- was away. 20:57:00 I don't know how you'd enter those values in gforth -- never had occasion to. I'd check the manual. 21:03:35 --- quit: OrngeTide ("going home") 22:14:30 --- join: OrngeTide (i=orange@orangetide.com) joined #forth 22:20:33 --- quit: JasonWoof ("hey, a man's gotta dream") 22:26:19 --- quit: virl (Remote closed the connection) 22:53:29 --- quit: Amanita_Virosa ("I use my powers for awesome.") 23:49:50 --- part: OrngeTide left #forth 23:59:59 --- log: ended forth/06.04.05