Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - bb010g

Pages: 1 ... 31 32 [33] 34
481
News / Re: Supersonic Ball 0.9.1 released!
« on: December 24, 2013, 06:43:49 pm »
I got this (running Arch):
Code: [Select]
[brayden@archbook downloads]$ love supersonicball-0.9.1.love
Error: main.lua:3: attempt to call a nil value
stack traceback:
main.lua:3: in function 'load'
[string "boot.lua"]:394: in function <[string "boot.lua"]:387>
[C]: in function 'xpcall'

482
TI-Nspire / [BASIC] slang - The Stack LANGuage
« on: December 23, 2013, 11:51:36 pm »
A project I've had for a while; now posting. Think Joy, but less complete. It is slow, I warn, but it works and has a cool module system. (I may overhaul it and make it faster if I get bored/interested.) It also houses a string find and replace function that I'm quite proud of. (Note: Wait for my next project, as it will probably be faster by then.) If you have any optimizations/recommendations, please post them.

Just put it in your MyLib folder. Have fun!

483
TI Z80 / Re: VVVVVV
« on: December 18, 2013, 09:32:08 pm »
Are you going to add room names?

484
Math and Science / Re: The Complete N00bs Guide to Calculus I (AP Calc AB)
« on: December 17, 2013, 10:22:52 pm »
What about hyperreals?

485
TI Z80 / Re: VVVVVV
« on: December 16, 2013, 09:51:45 pm »
Would it be possible to do a version of Pushing Onwards in this for those with the Orion?

486
Math and Science / Re: .9 repeating equals 1?
« on: December 16, 2013, 12:52:31 am »

487
HP Calculators / Re: Adventures with the HP 28S
« on: December 14, 2013, 04:25:58 pm »
Functional Programming

I love functional programming (lambda calculus, Haskell, LISP) a lot. I also love RPN (RPL, Joy, Cat). They fit pretty well together. However, the 28S does not have compiler that is sufficiently smart enough to use list fusion (it doesn't compile AFAIK) so these can be slow. Use them for quick programs or proof-of-concepts, but not in large programs where speed is an issue.

MAP
MAP takes a list and a program and maps the program over the list.
Example: «{ 1 2 3 } « 1 + » MAP», when evaluated, returns {2 3 4}.
Code: [Select]
« OVER SIZE → l p s
  « l s FOR i
    l i GET p EVAL
    NEXT s →LIST
  »
»

MAPE (MAP Effectual)
MAPE takes a list and a program and applies the program to each argument, but doesn't care about outputs. Useful with PIXEL or putting things onto the stack.
Example: { (0,1) (0,2) (1,3) } « PIXEL » MAPE », when evaluated, plots the points (0,1), (0,2), and (1,3).
Code: [Select]
« OVER SIZE ROT ROT → l p
  « 1 SWAP FOR i
    l i GET p EVAL
    NEXT
  »
»

RANGE
RANGE takes a start, end, and a step, and returns a list from start to the closest number less than or equal to end, going by step.
Example: « 4 7 0.2 RANGE », when evaluated, returns { 4 4.2 4.4 4.6 4.8 5 5.2 5.4 5.6 5.8 6 6.2 6.4 6.6 6.8 7 }.
Code: [Select]
« → a b s
  « { } a b FOR i
    i +
    s STEP
  »
»

ZIPP (ZIP Program)
ZIPP takes two lists and a program and applies a program to each pair, stopping when one list runs out of items. (It's not called ZIP because that takes two lists returns a list of tuples (2 item lists here), but that doesn't have much use on a slow system like this and I'm lazy and could make it with « « { } + + » ZIPP ».)
Example: « { 1 2 3 } { 4 5 6 } « * » ZIPP », when evaluated, returns { 1 10 18 }.
Example: « { 1 2 3 } { 4 5 6 } « R→C » ZIPP », when evaluated, returns { (1,4) (2,5) (3,6) }.
Code: [Select]
« → xs ys p
  « { } 1 xs SIZE ys SIZE MIN FOR i
    xs i GET ys i GET p EVAL +
    NEXT
  »
»

ZIPPD (ZIP Program Duplicate)
Acts like ZIPP, except it takes one item as the first argument and acts as if the first list was infinite and composed only of it.
EXAMPLE: « 6 { « 7 * » « 2 - » « 2 ^ » } « EVAL » ZIPPD », when evaluated, returns { 42 4 36 }. You may ask, "Why not use MAP?" You cannot make a program that injects a local variable into a nested program (eg. « 42 « { « 7 / » } SWAP « → x « « x SWAP EVAL» MAP » » » EVAL », when evaluated would not return { 6 }, but 'x' as → only scopes one level.
Code: [Select]
« → x ys p
  « { } 1 ys SIZE FOR i
    x ys i GET p EVAL +
    NEXT
  »
»

Edit: Clarification and usage

488
HP Calculators / Adventures with the HP 28S
« on: December 14, 2013, 02:29:04 pm »
A friend of the family gave me his HP 28S ADVANCED SCIENTIFIC CALCULATOR about a month ago, and I've been playing and hacking around with it. I figured that I'll document my findings and programs here, for posterity's, curiosity's, and the open source spirit's sake.

(Image coming soon)

489
Humour and Jokes / Re: 9001 signs you're addicted to calcs and Omni
« on: November 28, 2013, 02:10:44 pm »
6050: You yelp when you see an expensive calc you lack on sale. (True story)

490
News / Re: HP-Prime prototype performance test: color graphic programs
« on: August 14, 2013, 01:36:18 am »
Ok I've debugged my program, now it works perfectly :)

(image)

img2prime.zip

bb010g > can you recompile it for linux ?

Also, you can now throw as many images as you want on it.

I'm planning to have a program to do sprites with RECTs by Thursday, but for now:
http://db.tt/9PLl5hL8

491
News / Re: HP-Prime prototype performance test: color graphic programs
« on: August 13, 2013, 05:38:39 pm »
And here is a small converter for windows : img2prime.zip (just drag and drop the image to convert on it) :)

(image)

It even handles transparency :P

But I'm not sure if the ":64" are always necessary.

For Linux and OS X users:
The source file is small enough that you can install the PureBasic demo and compile an executable for deeph's program on your respective platform.
I have attached an i686 Linux executable made on Arch Linux with GCC 4.8.1-2, for those on Linux who don't want to install it. (If it doesn't work, just pull down the demo.)
http://db.tt/9PLl5hL8

492
News / Re: HP-Prime prototype performance test: color graphic programs
« on: August 08, 2013, 09:43:03 pm »
thanks, I'll try that code later. As for decimals, I mean that in the emulator, I noticed that stuff like A+1.1 is noticeably slower than A+1. I'll have to give that another try when i get home on my comp.
It might be that the C++ compiler is able to optimize Ints and Integers more than Floats and Doubles on the computer, yet on the calculator they are just as fast.

493
News / Re: HP-Prime DVT prototype test and pictures
« on: August 08, 2013, 02:22:36 am »
I'm hoping that something like the custom add-in system on the Prizm is available. (I'm guessing native code would be in C++, if the emulator team and the calculator team are the same.)

494
HP Calculators / Prime Wiki Discussion
« on: August 08, 2013, 12:03:30 am »
Hey! We have a wiki! It's at http://tiplanet.org/hpwiki/. Go do stuff there.

Spoiler For Old stuff:
Since there's no real place to get good Prime information (the manual included with the emulator is out of date), here's a thread where you can post things you found. Please try to keep it down to one post per person by editing in new content. Also, feel free to put in something found by someone else, as long as you give attribution.

Prime Emulator Download Link:
http://tiplanet.org/forum/archives_voir.php?id=19496 (adriweb)
It can be ran with no issues in Wine, for those not on Windows.

Function information:
Use the on-calc help. Browse by pressing Tree and using the screen or the arrows, or by pressing Key and pressing the first key you use to get to a function.

Mathematics:
When multiplying a constant by a variable, you have to use *. (2*A+2 instead of 2A+2) (DJ Omnimaga on IRC)

Text diplay:
To color text, you have to use one of the TEXTOUT functions with a RGB function as the color.
If you feed a TEXTOUT function a negative length, the text is italicized and underlined, ignoring the background color (if supplied).

495
You can give a RGB[A] value to drawing functions. For example, you can do this for a colored hello world:
Code: [Select]
EXPORT hello_world()
BEGIN
RECT();
TEXTOUT_P("Hello World!",50,50,0,RGB(0,136,204));
FREEZE;
END;
The commands have changed. Look through the help while in the editor. It's amazing.

Pages: 1 ... 31 32 [33] 34