Go to advanced search

by antiloquax
Mon Jul 30, 2012 10:30 pm
Forum: Other programming languages
Topic: lisp and scheme
Replies: 14
Views: 8275

lisp and scheme

I am starting to learn a bit of scheme and maybe lisp as well. I've seen that common lisp and guile are available in the arch repo. However, I have been using MIT scheme on my other Linux boxes. Does anyone have any experience with guile? Is it worth switching to that?
by antiloquax
Sun Jul 29, 2012 7:48 pm
Forum: Python
Topic: Could someone run through this code with me?
Replies: 23
Views: 2938

Re: Could someone run through this code with me?

Hi khh, Yes, you are of course right that window[0] refers to 82. What I was trying to explain was that the first time through the loop, window holds (82, 125) and from there we draw a black square etc. By the way, I didn't write this program - it was one of the other MagPi writers. I totally agree ...
by antiloquax
Sun Jul 29, 2012 7:33 pm
Forum: General programming discussion
Topic: Game Design
Replies: 4
Views: 1417

Re: Game Design

Great. Let us know how you get on!
by antiloquax
Sun Jul 29, 2012 9:42 am
Forum: Scratch
Topic: Is Scratch really viable on Raspberry Pi?
Replies: 128
Views: 41658

Re: Is Scratch really viable on Raspberry Pi?

Hi Clifford,
I really enjoyed playing your game. I haven't tried it on my Pi yet ...
by antiloquax
Sun Jul 29, 2012 7:12 am
Forum: Scratch
Topic: Is Scratch really viable on Raspberry Pi?
Replies: 128
Views: 41658

Re: Is Scratch really viable on Raspberry Pi?

Interesting comments. I use the Arch distro and Scratch runs pretty well (although a bit slower obviously compared to my dual-core PC). I am going to download your game and have a go! Scratch is quite central to the Foundation's Aims, I'd say, since it's the program that will be most helpful in gett...
by antiloquax
Sun Jul 29, 2012 7:03 am
Forum: General programming discussion
Topic: Game Design
Replies: 4
Views: 1417

Re: Game Design

Hi Dragoonx50, A good place to start would be Liam Fraser's Raspberry Pi Tutorials videos. This website has some great stuff on making games in Python: Professor Craven You could also have a look at some of the posts on my blog. This one has a sample program that does sound, key-presses and simple a...
by antiloquax
Sun Jul 29, 2012 6:55 am
Forum: Python
Topic: Could someone run through this code with me?
Replies: 23
Views: 2938

Re: Could someone run through this code with me?

windows = [(82, 125), (82, 215), (262, 125), (262, 215)] for window in windows: d.rect(screen, black, (window[0], window[1], 76, 76) ) d.rect(screen, white, (window[0] + 12, window[1] + 12, 22, 22) ) #tl d.rect(screen, white, (window[0] + 42, window[1] + 12, 22, 22) ) #tr d.rect(screen, white, (win...
by antiloquax
Sat Jul 28, 2012 8:43 am
Forum: General discussion
Topic: An nbench challenge
Replies: 32
Views: 11878

Re: An nbench challenge

My test results(without booting into X): MEMORY INDEX : 3.524 INTEGER INDEX : 4.420 FLOATING-POINT INDEX: 3.079 compiled with gcc-4.7 and: CFLAGS = -s -static -Wall -O3 -fomit-frame-pointer -funroll-loops -Wno-write-strings -Wno-sign-compare -mfloat-abi=hard -mfpu=vfp -mcpu=arm1176jzf-s -mtune=arm1...
by antiloquax
Fri Jul 27, 2012 10:22 pm
Forum: Python
Topic: Could someone run through this code with me?
Replies: 23
Views: 2938

Re: Could someone run through this code with me?

Think of the size = [400,400] as initializing 2 elements of an array. And the size[0] as referencing the first element of the array, while size[1] is referencing the second element of the array. Thanks Daverj, beat me to it! :D @D.E.L.B. I'm glad the blog post seemed clearer to you. Space is tight ...
by antiloquax
Fri Jul 27, 2012 10:18 pm
Forum: General discussion
Topic: An nbench challenge
Replies: 32
Views: 11878

Re: An nbench challenge

I've had a go with the arm1176jzf-s flags and -O2 (GCC 4.7)
Looks like I should run it with O3 as well, as per khh points above. I'll run that tomorrow!
arm flags and -O2
by antiloquax
Fri Jul 27, 2012 6:21 pm
Forum: General discussion
Topic: An nbench challenge
Replies: 32
Views: 11878

Re: An nbench challenge

gritz wrote: ... I feel that wringing the snot out of it (and possibly invalidating the warranty) is totally missing the point.
But it's fun ...

@Eben - yes, I've just been having a look at the -O3 flag and wondering about -Ofast?
I'll try the options you mentioned.
mark
by antiloquax
Fri Jul 27, 2012 4:10 pm
Forum: General discussion
Topic: An nbench challenge
Replies: 32
Views: 11878

Re: An nbench challenge

Can you share the compiler flags you used to get these results, and maybe the resulting binaries? Some initial thoughts: gcc 4.7 seems to make a significant difference versus 4.6 We do well versus Cortex A8 on floating point, less well on memory and integer Okay, I just ran with the gcc that came w...
by antiloquax
Fri Jul 27, 2012 11:05 am
Forum: General discussion
Topic: An nbench challenge
Replies: 32
Views: 11878

Re: An nbench challenge

Oh, I tried again at 500 for sdram and it booted. Here's the output.
sdram_500
by antiloquax
Fri Jul 27, 2012 10:34 am
Forum: General discussion
Topic: An nbench challenge
Replies: 32
Views: 11878

Re: An nbench challenge

Here's the results when sdram increased to 450
1ghz_sdram_450
by antiloquax
Fri Jul 27, 2012 9:35 am
Forum: General discussion
Topic: An nbench challenge
Replies: 32
Views: 11878

Re: An nbench challenge

Here's my results for the stock settings on Raspbian:
nbench_stock_rasbian

This is with over-clocking to 1000. Sdram speed was 400 (RPi would not boot when set to 500).
nbench_1ghz
by antiloquax
Fri Jul 27, 2012 7:34 am
Forum: Python
Topic: Could someone run through this code with me?
Replies: 23
Views: 2938

Re: Could someone run through this code with me?

So, would it matter if you had the [400, 400] in like this: ((400, 400))? Yes, that's right. batrect.center = ((size[0]/2), (size[1] - 50)) This was one of the bits that got changed by the editor. I originally wrote: batrect.center = (screenrect.centerx, (screenrect.bottom - 50)) Both do the same t...
by antiloquax
Fri Jul 27, 2012 7:21 am
Forum: General discussion
Topic: An nbench challenge
Replies: 32
Views: 11878

Re: An nbench challenge

Hi Eben, I haven't used nbench before - I will have a go later. In the meantime, I thought I'd share the results of a simple benchmarking I did, comparing the Squeezed Puppy release with Arch in a couple of configurations. I ran this command to do a very simple benchmark. (from a console, not within...
by antiloquax
Fri Jul 27, 2012 6:16 am
Forum: Python
Topic: Python - what version
Replies: 3
Views: 1801

Re: Python - what version

Python 3 comes with a script called 2to3 which converts python 2 code to python 3.

I would recommend going with Python 3, if you are a beginner.
There are some links to good tutorials on my website:
RaspberryPy.co
by antiloquax
Fri Jul 27, 2012 6:00 am
Forum: Python
Topic: Could someone run through this code with me?
Replies: 23
Views: 2938

Re: Could someone run through this code with me?

Hi D.E.L.B., size = [400, 400] makes a "size" a list with 2 elements. This way you can pass "size" to the command that creates the Pygame graphics window. This is the way Liam did it in his tutorial videos, and I think it's neater. You can just pass the actual numbers to "pygame.display.set_mode". Y...
by antiloquax
Fri Jul 27, 2012 5:48 am
Forum: Python
Topic: Python Video (gui fibonacci program)
Replies: 2
Views: 914

Re: Python Video (gui fibonacci program)

Thanks kobzar!
I will be making some more.
by antiloquax
Thu Jul 26, 2012 9:24 am
Forum: C/C++
Topic: Prof Jerry Cain (Stanford)
Replies: 0
Views: 1147

Prof Jerry Cain (Stanford)

I am really enjoying these Lectures (Programming Paradigms).
Lots of great detail on things like memory management, the pre-processor etc.
by antiloquax
Sun Jul 15, 2012 8:18 pm
Forum: General programming discussion
Topic: Starting editor / compiler on the Pi
Replies: 4
Views: 1904

Re: Starting editor / compiler on the Pi

Hi,
Here's a page with some good tutorials for Python listed.

I also have a couple of blog posts that may help:
Team Python
100Mudcats
by antiloquax
Sun Jul 15, 2012 8:13 pm
Forum: General programming discussion
Topic: Learning how to code
Replies: 10
Views: 6246

Re: Learning how to code

Hi I have also collected a few links to some useful on-line tutorials, here.
They include some of the things mentioned by stevepdp.
by antiloquax
Sun Jul 15, 2012 8:12 pm
Forum: General programming discussion
Topic: Geany failed to execute
Replies: 2
Views: 1335

Re: Geany failed to execute

It could be that the build command in Geany is not set up correctly. Choose "Build" from the top menu bar and then "Set Build Command". Down near the bottom of the window there should be a bit labeled "execute". Have a look at what is entered there. Here's an example: http://ubuntuone.com/2D1Ro1QIeS...

Go to advanced search