00:00:00 --- log: started retro/06.09.21 03:35:33 hi crc 04:28:37 --- quit: Cheery (Remote closed the connection) 04:31:02 --- join: Cheery (n=Cheery@a81-197-19-23.elisa-laajakaista.fi) joined #retro 05:38:28 --- join: timlarson_ (n=timlarso@65.116.199.19) joined #retro 06:12:27 --- join: Ray_work (n=Raystm2@199.227.227.26) joined #retro 06:14:53 Good morning. 06:17:22 I remember somebody doing floating point -stuff, but I don't remember where they where when I really need them. :) 06:35:35 hmm, how C interface handles floating point numbers anyway? 06:39:38 --- join: virl (n=virl@chello062178085149.1.12.vie.surfer.at) joined #retro 08:03:34 --- quit: Quartus (Read error: 110 (Connection timed out)) 08:14:09 --- join: Quartus (n=trailer@CPE0001023f6e4f-CM013349902843.cpe.net.cable.rogers.com) joined #retro 09:50:20 --- quit: lukeparrish (Read error: 104 (Connection reset by peer)) 09:54:01 --- join: lukeparrish (n=docl@74-36-211-202.dr01.hmdl.id.frontiernet.net) joined #retro 10:16:11 --- join: lukeparr1sh (n=docl@74-36-211-202.dr01.hmdl.id.frontiernet.net) joined #retro 10:21:57 --- quit: lukeparrish (Read error: 113 (No route to host)) 12:42:34 HUH! 12:42:38 Still no answer got. ;/ 12:42:47 To what? 12:44:22 I'd need to give floating points to functions like: glClearColor 12:48:26 like: 12:48:46 1.0 0. 0. 0. glClearColor drop 12:49:29 If that's Forth, those are double numbers, not floats. 12:50:08 ah, no, not the syntax. :) 12:50:29 The problem is: retroforth has no floating point support active. 12:50:41 which, I remember, can be fixed thought. 12:51:30 I have floats running under it, but they're not IEEE floats. 12:54:14 A primitive way to do it would be to figure out the binary representation of the floats you need, and pass those. 13:05:29 gah, I need floats. :/ 13:05:45 to at least scale the screen etc. 13:07:33 GLAPIENTRY glOrtho( GLdouble left, GLdouble right... etc. :D 13:10:24 I'd solve it myself but I guess crc knows better about C ABI. 13:10:38 And IEEE floats. :) 13:11:57 My suggestion would get you started. 13:49:55 Quartus: but another problem, I don't know where to start. :* 13:50:04 I can't find even C ABI documentation. 13:50:41 I did a quick google. glClearColor takes single floats, which I believe are 32-bit IEEE754 floats. So you need to find a calculator that will show you the binary format. I believe there are such on the web. 13:51:05 The alternative would be to write a short C program with such a float in it, and print out its internal bytes. 13:51:47 ghh. It's just smarter to do the tool to handle with them. >:/ 13:52:02 I didn't saw them as too complicated or anything. 13:52:27 That's not particularly simple to do; you will need to build a float recognizer into the interpreter, and a float output routine, and conversion routines. 13:53:20 If you're comfortable with it, by all means. Allow me to suggest that you build the float recognizer and other words according the standard, as then I'll be able to easily integrate them. 13:53:21 The thing is, I can find how to put FPU calculate them, I can make the functionality I need for floats, but I can't find C ABI docs. 13:53:37 where they tell how C ABI handles floats. 13:53:59 what is the standard? 13:54:12 Oh. You mean in terms of argument passing protocols. Can you not code a short sequence in C, and look at the assembler output? 13:55:04 hmm. 13:55:15 I didn't think about it before. 14:00:50 Not helping, giving out too much if I do: objdump -D a.out 14:01:09 ...? The assembler output. gcc test.c -S 14:01:20 uh, Oh. :) 14:09:02 seems using the same stack for floats... 14:10:11 So take the next step, reproduce the C steps in Forth for the call you're testing. 14:19:24 --- quit: timlarson_ ("Leaving") 14:20:49 gotcha! 14:20:50 :) 14:25:18 --- nick: Raystm2 -> nanstm 14:26:15 and float interface is compatible with double interface... I guess. 14:30:34 good evening 14:31:24 --- quit: lukeparr1sh (sterling.freenode.net irc.freenode.net) 14:31:24 --- quit: Cheery (sterling.freenode.net irc.freenode.net) 14:31:25 --- quit: timlarson (sterling.freenode.net irc.freenode.net) 14:31:45 --- join: lukeparr1sh (n=docl@74-36-211-202.dr01.hmdl.id.frontiernet.net) joined #retro 14:31:45 --- join: Cheery (n=Cheery@a81-197-19-23.elisa-laajakaista.fi) joined #retro 14:31:45 --- join: timlarson (n=timlarso@user-12l325b.cable.mindspring.com) joined #retro 14:32:04 not completely it seems. 14:32:46 not completely it seems. 14:33:50 single and double floats are not the same animal. 14:42:08 yeh, it seems double floats would have 11 bit -exponent. 14:48:55 Quartus: ok, I think I now understand how it works. 14:49:42 But how does one print such number or parse it? 14:49:49 what ways there are? 14:52:05 lets see, there is that exponent, before-decimal and after-decimal -things. 14:57:27 it is easiest to turn binary to octal. :) 15:06:02 --- quit: Cheery ("Download Gaim: http://gaim.sourceforge.net/") 15:08:01 --- nick: nanstm -> tiff 15:13:26 Printing a float as a decimal is simple to describe, but a bit tricky to implement well. 15:19:57 --- quit: nighty (Read error: 113 (No route to host)) 15:56:13 --- nick: tiff -> Raystm2 15:57:33 Good evening. 15:57:44 good evening ray 15:57:48 Hi Raystm2. 15:59:09 Hi crc. Hi Quartus. 15:59:19 I've missed you crc. I hope you are well. 16:00:19 I am quite well, busy though 17:42:59 --- quit: virl (Remote closed the connection) 17:45:06 --- join: jas2o (n=jas2o@wnpp-p-144-134-167-205.prem.tmns.net.au) joined #retro 18:26:31 --- quit: jas2o ("Chatzilla 0.9.74 [XULRunner 1.8.0.1/2006012608]") 19:42:11 --- nick: lukeparr1sh -> lukeparrish 22:24:09 --- quit: timlarson (sterling.freenode.net irc.freenode.net) 22:24:09 --- quit: lukeparrish (sterling.freenode.net irc.freenode.net) 22:24:18 --- join: lukeparrish (n=docl@74-36-211-202.dr01.hmdl.id.frontiernet.net) joined #retro 22:24:18 --- join: timlarson (n=timlarso@user-12l325b.cable.mindspring.com) joined #retro 22:30:55 --- join: snoopy_1711 (i=snoopy_1@dslb-084-058-148-249.pools.arcor-ip.net) joined #retro 22:48:19 --- quit: Snoopy42 (Read error: 110 (Connection timed out)) 22:48:22 --- nick: snoopy_1711 -> Snoopy42 22:57:09 --- quit: timlarson (sterling.freenode.net irc.freenode.net) 22:57:09 --- quit: lukeparrish (sterling.freenode.net irc.freenode.net) 22:57:33 --- join: lukeparrish (n=docl@74-36-211-202.dr01.hmdl.id.frontiernet.net) joined #retro 22:57:33 --- join: timlarson (n=timlarso@user-12l325b.cable.mindspring.com) joined #retro 23:45:23 --- quit: Quartus (sterling.freenode.net irc.freenode.net) 23:45:23 --- quit: Raystm2 (sterling.freenode.net irc.freenode.net) 23:45:30 --- join: Raystm2 (n=NanRay@adsl-69-149-58-83.dsl.rcsntx.swbell.net) joined #retro 23:45:30 --- join: Quartus (n=trailer@CPE0001023f6e4f-CM013349902843.cpe.net.cable.rogers.com) joined #retro 23:45:30 --- mode: irc.freenode.net set +o Raystm2 23:59:59 --- log: ended retro/06.09.21