AltME groups: search
Help · search scripts · search articles · search mailing listresults summary
world | hits |
r4wp | 45 |
r3wp | 42 |
total: | 87 |
results window for this page: [start: 1 end: 87]
world-name: r4wp
Group: #Red ... Red language group [web-public] | ||
Pekr: 23-May-2012 | VIA Technologies competition to Raspberry Pi - http://www.engadget.com/2012/05/22/via-technologies-outs-49-apc-android-barebones/ | |
DocKimbel: 7-Jun-2012 | Pekr: right, 400 EUR/month would be enough. I believe that the Raspberry pi board has a huge potential, we should try our best to support it and build tools for it in Red. | |
Andreas: 17-Jun-2012 | a "hello world!" written in and compiled by red/system running on a raspberry pi: [pi-:-raspberrypi]:~$ ./hello-reds.arm hello from red/system! ([pi-:-raspberrypi]:~$ uname -a Linux raspberrypi 3.1.9+ #90 Wed Apr 18 18:23:05 BST 2012 armv6l GNU/Linux) | |
Gerard: 1-Oct-2012 | http://uk.farnell.com/raspberry-pi-accessories#operatingsystem has some more SD cards and accessories - as described in my new book : The Raspberry Pi - a quick start guide - by Maik Schmidt pubished by pragmatic programmers | |
Bas: 2-Oct-2012 | This coming saturday october the sixth, Kaj will show his work (in progress) to get the Red Programming Language running on the Raspberry Pi. | |
Bas: 2-Oct-2012 | http://www.hardwarefreedomday.nl/2012/Red-Rasperry-Pi.html | |
Arnold: 2-Oct-2012 | Bas, the link is working but should be Red-Raspberry-Pi.html? | |
Bas: 2-Oct-2012 | http://www.hardwarefreedomday.nl/2012/Red-Raspberry-Pi.html | |
Arnold: 7-Oct-2012 | after running around all week buying additional needed equipment. that sounds like a shopping list comes in handy when purchasing a RaspberryPi, there are some surprises like needing a VGA monitor where the standard videoout on the Pi is HDMI. | |
Pekr: 15-Oct-2012 | New RPi, doubling the memory for the same price - http://www.engadget.com/2012/10/15/raspberry-pi-model-b-512mb-ram/ | |
Bas: 31-Oct-2012 | Here are the two movies of the presentation "Red running on the Raspberry Pi" done by Kaj during the first Hardware Freedom Day 2012 at the TkkrLab Hackerspace Enschede on saturday the sixth of october | |
Arnold: 23-Nov-2012 | I have my Raspberry Pi now (And an Arduino uno board too). Only have to wait until I get it from Sinterklaas now before I can play with them. | |
Arnold: 24-Nov-2012 | I have to wait to start programming my Raspberry Pi until I actually get it from Sinterklaas. After that I can try to test Red on it. I watched your presentation on programming in Red on the Raspberry Pi. No Syllable yet? WHat Linux did you use on the Rasp again Kaj? | |
Arnold: 6-Dec-2012 | Too bad they got old monitors at work without hdmi support or I could test my new Raspberri Pi there too :D | |
Bo: 4-Feb-2013 | OK. Say I have a fresh Windows PC and I want to start coding in Red/System for the target of Raspberry Pi. Help me understand what I need to do. Here is what I assume needs to be done, but I may be wrong. 1. Download R2, I assume. Any particular version? 2. Download Red/System compiler. From where? 3. Write the program on the PC. 4. Compile it with Red/System on the PC, but for the Raspberry Pi target. Is that just a setting somewhere? 5. Move the compiled file to the Raspberry Pi and execute it. | |
Andreas: 4-Feb-2013 | Target for Raspberry Pi is "Linux-ARM". | |
Bo: 6-Feb-2013 | As the youngsters say, EPIC! I just compiled and ran my first Red/System program on the Raspberry Pi running Arch Linux. | |
Pekr: 4-Mar-2013 | RaspberryPi coming in luxury blue version - wonder, when we get Red one? :-) http://www.engadget.com/2013/03/04/raspberry-pi-coming-in-limited-edition-blue/ | |
Bo: 4-Mar-2013 | I was trying to evangelize Red/System to the Raspberry Pi forums today, but found it difficult to point them to a "here's how you get started" page. That would be the perfect thing for a "Downloads" page on red-lang.org. | |
Bo: 3-Apr-2013 | Yes, I had a copy of your newer C library binding. I compared the relevant sections and added in the appropriate parts. Now I have a different problem, possibly due to me not running a gui on my Raspberry Pi. Don't know yet if OpenCV requires a GUI to operate or not. | |
Bo: 29-Jun-2013 | My Red/System script (through some technical wizardry) can now process 10 seconds of video from an HD source at 30fps and isolate motion areas of a particular size in a fraction of a second on a 700MHz Raspberry Pi. | |
Bo: 2-Jul-2013 | The dirs.txt file is being written to the Pi using Rebol on Windows. | |
Bo: 2-Jul-2013 | For anyone interested, I just published a JPG in the Files section under Misc called MotionDetect.jpg showing real-time motion detection performed by the Raspberry Pi running Red/System. The top two frames are the actual camera video (shot at dusk) and the bottom frame highlights the areas of motion. Thanks in huge part goes to Kaj for helping me finish this first project! | |
Bo: 2-Jul-2013 | My original prototype written in R2 was started 3-Aug-2012 and finished 9-Sep-2012. It's taken this long to get it running on the Pi natively. | |
Bo: 2-Jul-2013 | R2 couldn't do it nearly fast enough on the Pi. | |
Bo: 2-Jul-2013 | My motion detection executable on the Pi is 30KB. The same executable compiled for Windows is 15KB (50% the size). | |
Bo: 2-Jul-2013 | I've got plenty of room on the Pi, but not a lot of processing power. | |
DocKimbel: 3-Jul-2013 | My motion detection executable on the Pi is 30KB. The same executable compiled for Windows is 15KB (50% the size). Red currently emits only the standard ARM opcodes, so 32-bit per instruction. We'll add support in the future for Thumb mode (more compact instruction set). In the meantime, you can try to activate the literal pools by adding the following option to the Linux-ARM config block (in %config.r): literal-pool?: yes That should both reduce final binary size and give you a little speed improvement. But be sure to test is well as this mode has not been much used yet. Also, it might fail to compile if you use very big functions, or a lot of code in global context. | |
Group: Announce ... Announcements only - use Ann-reply to chat [web-public] | ||
Kaj: 10-Dec-2012 | My full Atari emulator ran full speed on a Pentium 75 or a 100 MHz 486. I roughly expect this one to run half as fast, so as a full emulator I'd expect it to need a Pentium 150. As another guesstimate, it should need half a Raspberry Pi | |
Bo: 3-Mar-2013 | Just in case nobody saw, Carl wrote in R3 github the following: Been busy. Will check-in more frequently in March. Sorry folks, Dec-Feb is the "crazy crazy busy" time for new product development. Yes, I know, I'm bad. But, I'm quite addicted to making new products... especially cute little electronic ones that sell in all the major stores in the US. Each one presents special new challenges that I just can't resist. Starting in March I'll break away for a few hours a week to take care of things here. Also... I really want to try using R3 with graphics running on DirectFB. It would be quite cool. One other thing... has anyone got R3 running graphics on Raspberry Pi yet? If not, let's talk about how we can make that happen. What do we need? | |
Kaj: 20-Jun-2013 | As an example, the interpreter to run messaging scripts on a Raspberry Pi without GUI is here: Linux-ARM/Red/red-core-message The interpreter to develop GUI scripts on x86 Linux to communicate with a Raspberry Pi is here: Linux/Red/red-message A similar interpreter to develop GUI scripts on Windows to communicate with a Raspberry Pi is here: MSDOS/Red/red-message.exe As always, for Windows you also have to download the libraries that are included in the repository, according to the instructions here: http://web.syllable.org/news/2012-11-18-20-47-Red-high-level-programming-language-first-alpha.html | |
Group: Ann-Reply ... Reply to Announce group [web-public] | ||
Bo: 3-Mar-2013 | Carl's comment about getting graphics running on the Raspberry Pi makes me wonder if Carl has a project in mind, with Raspberry Pi as the heart. | |
Geomol: 29-May-2013 | You use Arch Linux on your Raspberry Pi, right? How's that going? | |
Bo: 29-May-2013 | I use Arch Linux on Raspberry Pi. It works very well. However, I have switched to Raspbian at present as some of the components I need are not yet available on Arch Linux and I don't have time to port and test them. However, my project is almost ready for the first site test. | |
Geomol: 29-May-2013 | I wonder, if it's worth getting a Raspberry Pi at this point and try compile World to it. | |
Pekr: 30-May-2013 | Raspberry Pi is just medial thing. That thing is just small computer, nothing more imo, much hyped, than usefull, unless you build some kind of min-pc or player. IMO something like Beagle Bone (Black), with many IO pins, is more interesting. BTW - during SO chat, Carl mentioned he is getting Beagle Bone Black. That's imo, where Rebol could find some niche - embedded, automatition, etc. | |
Bo: 30-May-2013 | The main difference between the Beagle Bone Black and the Raspberry Pi is the manufacturer of the system on a chip (SoC). RasPi is Broadcom and Beagle Bone is Texas Instruments (TI). The Beagle Bone Black has a faster processor (1GHz vs. 700MHz), but the RasPi can usually be reliably overclocked to 1GHz. They both have a lot of I/O pins. The RasPi is also a little cheaper. | |
Geomol: 30-May-2013 | DC Input is statet as 5V / 2A. That's 10W. The Amiga1200 used 20W, if I remember correctly. Not bad for these new small computers. Ras Pi may use half of the ODROID, so about 5W. A cluster of computers each running at a couple Watts, that would be something! :) | |
Pekr: 30-May-2013 | Bo - imo those are really different purpose boards. Beagle is geared more towards an automatition - all those pins properly exposed directly on the board. Also - look at the number of "capes" available. I would not use Raspberry Pi for embedded ... | |
Bo: 30-May-2013 | Agreed. However, for some applications there has been more developed for the Raspberry Pi, which makes it easier to develop a finished product, especially if a lot of I/O is not needed. | |
Bo: 31-May-2013 | The Pi can also be used as a cheap thin-client. Just hook it up to the back of a monitor and have it run a remote desktop connection on boot. :-) | |
Group: !Syllable ... Syllable free operating system family [web-public] | ||
Nicolas: 19-Apr-2012 | It seems to me that a major obstacle to operating system adoption is the difficulty of partitioning a hard drive, and potentially losing all the data from the other operating system partition. Raspberry pi is a $35 ARM system with an SD card designed to teach people how to program. It's an embedded system, so syllable would shine because it is light weight. One of these systems is powerful enough to output 1080p video and extremely small. | |
AdrianS: 21-Sep-2012 | Kaj, I'm curious what the plans are wrt Syllable (either desktop or server) and Raspberry PI. I see that more and more OSs are able to run on it now - just read about webOS, for example. | |
Group: !R3 Building and Porting ... [web-public] | ||
Bo: 19-Dec-2012 | From http://www.rebol.com/cgi-bin/blog.r?view=0519#comments To download a tarball of an executable REBOL 3.0 program for the Raspberry PI (build with Raspbian “wheezy” ) take a look at: http://www.TGD-Consulting.de/REBOL/r3-RPi.tar --- pi(at)raspberrypi ~/dev/r $ uname -a Linux raspberrypi 3.2.27+ #250 PREEMPT Thu Oct 18 19:03:02 BST 2012 armv6l GNU/Linux pi(at)raspberrypi ~/dev/r $ ./r3 >> system/version == 2.101.0.4.10 >> system/build == 16-Dec-2012/13:13:11 >> system/product == core | |
Group: Community ... discussion about Rebol/Rebol-related communities [web-public] | ||
Bo: 31-May-2013 | If we can pitch something about it that would appeal to the general public (easy-to-develop apps for Android that also run on embedded systems and full computers), then maybe we'll get some new interest. Especially for popular Kickstarter search terms like Android, Raspberry Pi, Arduino, etc. |
world-name: r3wp
Group: RAMBO ... The REBOL bug and enhancement database [web-public] | ||
Geomol: 7-Feb-2007 | I guess, we can think of it this way: some values like 0.1 to computer floating-point system is like square-root 2 or pi to our human base-ten system. | |
Group: Core ... Discuss core issues [web-public] | ||
Gregg: 9-May-2008 | A long time ago, I remember reading something where the author suggested, as a shared seed, using a substring of PI. | |
Maxim: 16-Jun-2009 | output res should be at 600dpi. the trick is to find a print shop which has a large-print printer with enough ram in its module... most shops top out at 2-3m | |
Ladislav: 4-Oct-2010 | Hi, did somebody also notice the speed difference between Vista and 7 as below? Benchmark run 27-Aug-2009/16:16:06+2:00. Rebol 2.7.6.3.1 Computer: 100Mega Athlon II X2 250/4G DDR3 OS: Windows Vista 64 Precision: 0.05 Empty block: 104000000.0Hz Eratosthenes Sieve Prime (size: 8191): 54.0Hz, result: 1899 primes Four-Banger test (+,-,*,/): 150000.0Hz, result: 10.0 Integral (icount: 10000) of sin(x) 0<=x<=pi/2: 42.7Hz, result: 1.00000000000003 Integral (icount: 10000) of exp(x) 0<=x<=1: 60.2Hz, result: 1.71828182845896 Merge Sort (500 elements): 68.4Hz Benchmark run 4-Oct-2010/17:00:19+2:00. Rebol 2.7.7.3.1 Computer: 100Mega Athlon II X2 250/4G DDR 3 OS: Windows 7 Professional 64-bit Precision: 0.05 Empty block: 131000000.0Hz Eratosthenes Sieve Prime (size: 8191): 69.0Hz, result: 1899 primes Four-Banger test (+,-,*,/): 188000.0Hz, result: 10.0 Integral (icount: 10000) of sin(x) 0<=x<=pi/2: 49.7Hz, result: 1.00000000000003 Integral (icount: 10000) of exp(x) 0<=x<=1: 74.8Hz, result: 1.71828182845896 Merge Sort (500 elements): 90.4Hz | |
Ladislav: 4-Oct-2010 | Benchmark run 4-Oct-2010/17:05:53+2:00. Rebol 2.7.6.3.1 Computer: 100Mega Athlon II 250/4G DDR 3 OS: Windows 7 Professional 64-bit Precision: 0.05 Empty block: 129000000.0Hz Eratosthenes Sieve Prime (size: 8191): 71.4Hz, result: 1899 primes Four-Banger test (+,-,*,/): 188000.0Hz, result: 10.0 Integral (icount: 10000) of sin(x) 0<=x<=pi/2: 51.3Hz, result: 1.00000000000003 Integral (icount: 10000) of exp(x) 0<=x<=1: 75.5Hz, result: 1.71828182845896 Merge Sort (500 elements): 92.5Hz | |
Group: I'm new ... Ask any question, and a helpful person will try to answer. [web-public] | ||
Geomol: 25-Oct-2011 | Maybe refinements for functions are more clear with examples like this: Let's say, we want a sine function, which default operate with radians, but you can give degrees refinement, if you like, exactly opposite of the normal SINE function: >> sin: func [value /deg] [either deg [sine value] [sine/radians value]] >> sin pi / 6 == 0.5 >> sin/deg 30 == 0.5 | |
Group: Dialects ... Questions about how to create dialects [web-public] | ||
Geomol: 18-Jul-2007 | New version 0.1.0 of BBC BASIC. Added FOR ... NEXT loop. Example: >> do http://www.fys.ku.dk/~niclasen/rebol/bbcbasic.r connecting to: www.fys.ku.dk Script: "BBC BASIC" (19-Jul-2007) BASIC v. 0.1.0 >auto 10 for a=10 to pi step -2.3 20 for n%=1 to 3 step 2 30 print a n% 40 next 50 next 60 0 >run 10 1 10 3 7.7 1 7.7 3 5.4 1 5.4 3 | |
Group: !RebGUI ... A lightweight alternative to VID [web-public] | ||
btiffin: 5-Apr-2007 | Ashley; Well I'm more confused than when I started. I got sick of bad Courier and fixed it. It had to do with the order of 100dpi and 75dpi font lists and removing ghostscript font mapping. Anyway, now REBOL/View can't find Serif, Sans Serif or Monospace. The "real" names "DejaVu Serif", "DejaVu Sans", and "DejaVu Sans Mono" work in font [name: ] blocks. So, I can't help much yet. The short list (and I'll need to look into this more) is DejaVu Sans Mono for a good font-fixed DejaVu Serif for a good font-serif DejaVu Sans for a good font-sans-serif These names may be very specific to my setup...not sure yet. These fonts should map to "Monospace" "Serif" "Sans Serif", which I just broke. And after I mucked around the stock font names, which on this REBOL/View 2.7.5.4.2 18-Mar map to font-fixed = "courier" font-serif = "times" and font-sans-serif = "helvetica", all look way better now. Maybe I'll just let you get on with it, and quit mudding the waters :) | |
Group: SVG Renderer ... SVG rendering in Draw AGG [web-public] | ||
Steeve: 13-Oct-2009 | As far i am, i made some useful tiny mezz, perhaps some could be in R3. reuse: funco [b [block!]][head reduce/into b clear []] ** REUSE, reduce a block, but re-use always the same block ** Actually, 3 time slower than a reduce block, but save memory and GC recycles if used massivly. ** I use it to pass small blocks of coordinates. mulm: func [ {multiply a matrix [a b c d e f] by coordinates x y, return coordinates [x' y']} x y m [block!] ][ reuse [x * m/1 + (y * m/3) + m/5 x * m/2 + (y * m/4) + m/6] ] atan2: func [ {Angle of the vector (0,0)-(x,y) with arctangent y / x. The resulting angle is extended to -pi,+pi} x y ][ if x = 0 [x: 0.0000000001] add arctangent y / x pick [0 180] x > 0 ] Project: func [ {orthogonal projection of a point P on a line AB, return coordinates [x y]} ax ay bx by px py /local sx sy ux uy ratio ][ sx: bx - ax sy: by - ay ux: px - ax uy: py - ay ratio: sx * ux + (sy * uy) / (sx * sx + (sy * sy)) reuse [ratio * sx + ax ratio * sy + ay] ] vector-length: func [x1 y1 x2 y2][square-root add x2 - x1 ** 2 y2 - y1 ** 2] | |
Group: Rebol School ... Rebol School [web-public] | ||
Geomol: 8-Feb-2009 | >> time [loop 1000000 [pi ** 2]] == 0:00:00.468 | |
kib2: 24-Feb-2009 | How could I generate a random number (a real number) between 2 given values, ie between -pi and pi ? | |
kib2: 24-Feb-2009 | random pi gives me an integer | |
Anton: 24-Feb-2009 | Now divide by max-decimal (whatever that is) and multiply by desired range (eg. pi). | |
Geomol: 24-Feb-2009 | You asked how to make a random number between e.g. pi and -pi. There are a number of ULPs (Unit in the Last Place) between those two numbers. For 64 bit decimals, it's a large number. The possible decimals in computer arithmetic lie closer together around zero than for large numbers. If you had a routine, that would give you any possible 64 bit decimal number between pi and -pi with equal probability, then you would get a lot more numbers close to zero than close to either pi or -pi. The distribution wouldn't be flat (as you would expect). It's much better to choose, how many different values between pi and -pi, you need, and then make a random integer of that number, and do some calc to get the result between pi and -pi. I hope, it makes sense. | |
Group: rebcode ... Rebcode discussion [web-public] | ||
Oldes: 22-Oct-2005 | rc: rebcode[][ setd pi 3.14159265358979 print pi setd freq pi print freq ] | |
Oldes: 22-Oct-2005 | will print out ?unset? instead of freq == pi | |
Volker: 22-Oct-2005 | rc: rebcode[][ print pi setd pi 3.14159265358979 print pi set freq 0.0 setd freq pi print freq ] rc | |
Volker: 22-Oct-2005 | pi is already a decimal.. | |
Coccinelle: 20-Feb-2007 | and a radian is pi / 2, right ? | |
Maxim: 20-Feb-2007 | 2 * pi | |
Rebolek: 20-Feb-2007 | some example code (in C, but easy to rewrite): float a = 2.f*(float)sin(Pi*frequency/samplerate); float s[2]; s[0] = 0.5f; s[1] = 0.f; loop: s[0] = s[0] - a*s[1]; s[1] = s[1] + a*s[0]; output_sine = s[0]; output_cosine = s[1] | |
Group: Tech News ... Interesting technology [web-public] | ||
Terry: 24-Jun-2006 | The battle is shifting beyond Windows and Linux," he says. "Google isn't concerned about what executes down on the client machine, whether it's Windows or Linux. The action has moved up a level. The real innovation in software is not occurring in the context of the 1980s and 1990s PC. It's occurring in applications that reside in the broader Web. The interesting innovations are going to occur around different ways to organize and share and access information."" -- Paul Maritz (once 3rd in comand at Microsoft) regarding his new venture.. PI http://www.forbes.com/technology/2006/06/23/linux_vista_open_cz_dl_0623linux.html | |
Ashley: 8-May-2011 | Raspberry Pi computer: http://www.youtube.com/watch?v=pQ7N4rycsy4 http://www.raspberrypi.org/ | |
Henrik: 30-Aug-2011 | Raspberry Pi runs Quake 3: http://www.youtube.com/watch?v=e_mDuJuvZjI | |
Group: !REBOL3-OLD1 ... [web-public] | ||
Geomol: 5-Apr-2006 | Let's see another example with the extra block: f: closure [x /local a]Ê[a: 2 * pi] [(sine/radians x) / a] without: f: closure [x /local a] [a: 2 * pi (sine/radians x) / a] Is it something like this, you're thinking about? And will the first be faster than the second? | |
Geomol: 5-Apr-2006 | And the third possibility (which maybe not is very REBOLish): f: closure [x /local a: 2 * pi] [(sine/radians x) / a] | |
Geomol: 5-Apr-2006 | What is the speed of this compared to using closure (with the extra block): o: context [a: 2 * pi f: closure [x] [(sine/radians x) / a]] And then call it by: o/f 1 | |
Ladislav: 5-Apr-2006 | Geomol: my guess is, that if you wrote: context [a: 1 / 2 / pi set 'f closure [x] [a * sine/radians x]], you wouldn't be slower than the initialization block can be while retaining the "static nature" of the defined variables, that can be even changed when wanted | |
Geomol: 21-Aug-2009 | When investigating the creation of a MAP function in REBOL 2, I found that sending functions with refinement to map required some extra work (the need for a DO). The rules about get-words as arguments has changed in REBOL 3. Maybe I should talk to Carl about it, but I could discuss it with you guys first to not disturb Carl too much. First a REBOL 2 version of MAP, that can't cope with refinements: >> map: func [:f l /local r] [r: clear [] foreach i l [append r f i] r] >> map sine [0 30 90] == [0.0 0.5 1.0] f is the function, l the list and r the result. i is an item in the list. The critical part is append r f i The function f is evaluated taking the argument i. Easy to read and understand. But it can't cope with refinements, which are seen as the path! datatype. Example: >> map sine/radians reduce [0 pi / 6 pi / 2] == [sine radians sine radians sine radians] This can be fixed by putting a DO before f. Now it works both with and without refinements: >> map: func [:f l /local r] [r: clear [] foreach i l [append r do f i] r] >> map sine [0 30 90] == [0.0 0.5 1.0] >> map sine/radians reduce [0 pi / 6 pi / 2] == [0.0 0.5 1.0] In REBOL 3, the function is not evaluated: >> map: func [:f l /local r] [r: clear [] foreach i l [append r f i] r] >> map sine [0 30 90] == [sine sine sine] Including DO just makes it worse: >> map: func [:f l /local r] [r: clear [] foreach i l [append r do f i] r] >> map sine [0 30 90] == [make native! [[ "Returns the trigonometric sine." value [number!] "In degrees by default" /radians "Value is specified in radians" ]] make native! [[ "Returns the trigonometric sine." value [number!] "In degrees by default" /radians "Value is specified in radians" ]] make native! [[ "Returns the trigonometric sine." value [number!] "In degrees by default" /radians "Value is specified in radians" ]]] To make map behave correctly, I have to do something like: >> map: func [:f l /local r] [r: clear [] foreach i l [append r do reduce [f i]] r] >> map sine [0 30 90] == [0.0 0.5 1.0] >> map sine/radians reduce [0 pi / 6 pi / 2] == [0.0 0.5 1.0] Is this ok and accepted behaviour? Will it break many scripts? (Sorry for the long post, but I wanted to be precise.) | |
Tomc: 5-Nov-2009 | I realize these are decimal aproximations (at least on the 32 bit machine) but rebols mod function returns decimals for example mod (PI + 50.0) 10 . why would these aproximated large values not come back as their nearest decimal aproximations if t | |
Geomol: 9-Nov-2009 | Another thing, we have pi: >> pi == 3.14159265358979 Would it be an idea to have e equal to: >> exp 1 == 2.71828182845905 I mean, we can create pi ourselves with arccosine/radians -1 , so why is pi there? And if it is, why isn't e there? | |
BrianH: 9-Nov-2009 | Ah, but "float" is a keyword for programmers that implies binary floating-point numbers (usually IEEE754), while "real" is a keyword for what floating point numbers (binary or decimal) *appproximate*. You know, the real world. The "real" pi doesn't have a finite binary representation. That distinction is why I like "float" instead. All moot now though - we are stuck with decimal!. | |
BrianH: 16-Dec-2009 | Maxim: "what's the best way to convert a hex string to a decimal value in R3?" - Try this: >> pi == 3.14159265358979 >> enbase/base to-binary pi 16 == "400921FB54442D18" >> to-decimal debase/base "400921FB54442D18" 16 == 3.14159265358979 >> to-decimal debase/base enbase/base to-binary pi 16 16 == 3.14159265358979 You asked for the best way: No method that uses the issue! type for binary conversions could be considered the best way. | |
Steeve: 16-Dec-2009 | if it's for storing usage, then restoring, perhaps the base 64 format is enough. >> enbase to-binary pi == "QAkh+1RELRg=" >> to-decimal debase enbase to-binary pi == 3.14159265358979 | |
Group: Postscript ... Emitting Postscript from REBOL [web-public] | ||
Maxim: 7-Apr-2006 | 300dpi = 300 ticks in an inch. if you know the printer edges to be 1/2 inch, then you can juste calculate a 2250 wide bitmap (using US letter size paper) and send it . this works. simple math . | |
JaimeVargas: 15-Apr-2006 | Graham, Postscript is resolution independant. Certainly capable of more than 72dpi | |
JaimeVargas: 15-Apr-2006 | Graham, what I meant is that even to the unit is a *point* the fact is that you can more than 72 pixels in a inch. For example laserprinters have 300 to 1200. And there is some displays that 96dpi, and I have seem e-ink that gives you 150dpi(s). | |
Group: gfx math ... Graphics or geometry related math discussion [web-public] | ||
Steeve: 8-Feb-2011 | Found 2 versions in my scripts. atan2: func [ {Angle of the vector (0,0)-(x,y) with artangent y / x. The resulting angle is extended to -pi,+pi} x y ][ if x = 0 [x: 0.0000000001] add arctangent y / x pick [0 180] x > 0 ] atan2: func [x y][ x: x + 0.00000001 either x > 0 [ arctangent y / x ][ 180 + arctangent y / x ] ] | |
Group: Red ... Red language group [web-public] | ||
Dockimbel: 6-Nov-2011 | Well, I am not doing the ARM port only for Android, I target also iOS and some embedded boards (like e.g. the Raspberry Pi). | |
Dockimbel: 8-Jan-2012 | Float support so far: --- Red/System [ ] #import [ LIBC-file cdecl [ cos: "cos" [ x [float!] return: [float!] ] ] ] pi: 3.14159265358979 printf ["%.14f" cos pi] --- outputs: -1.00000000000000 | |
PeterWood: 22-Feb-2012 | This code will cause an access violation as clock in libc returns an integer not a pointer to an integer. pi: declare pointer! [integer!] #import [ LIBC-FILE cdecl [ read-cpu-clock: "clock" [ return: [pointer! [integer!]] ] ] ] pi: read-cpu-clock pi/value | |
Pekr: 23-Feb-2012 | Raspberry Pi got Fedora Remix yesterday. Can't wait for the release, and getting Red running there :-) |