Go to advanced search

by ejolson
Sat Dec 15, 2018 5:59 am
Forum: Off topic discussion
Topic: Why Avoid BASIC on RPi?
Replies: 2312
Views: 167734

Re: Why Avoid BASIC on RPi?

You might think the worlds top supper computers could tackle this during their lunch break. Turns out they can't. It was done on a souped up PC (4 x Xeon E7-8890 v3 @ 2.50 GHz (72 cores, 144 threads) 1.25 TB DDR4 RAM + 20 x 6 TB disk) A souped up PC makes a wonderful node for a supper computer, esp...
by ejolson
Sat Dec 15, 2018 1:34 am
Forum: Off topic discussion
Topic: Why Avoid BASIC on RPi?
Replies: 2312
Views: 167734

Re: Why Avoid BASIC on RPi?

Adjusting the allocated memory as a function of n allows computing larger Fibonacci numbers without having to change anything but n in the code. Altered so you may just change the N manifest at the start (I agree this is better). 4 spaces indentation, moved open curlies back etc. /* * fibonacci.c -...
by ejolson
Fri Dec 14, 2018 10:32 pm
Forum: Off topic discussion
Topic: Why Avoid BASIC on RPi?
Replies: 2312
Views: 167734

Re: Why Avoid BASIC on RPi?

I was able to reduce the MFACT thing from 12 to 11 which saved some memory. Agreed, I think a simple counting of how deep the temporary memory allocations go comes up with the number 11. I further made it 12 just to be safe. Adjusting the allocated memory as a function of n allows computing larger ...
by ejolson
Fri Dec 14, 2018 10:18 pm
Forum: Off topic discussion
Topic: Why Avoid BASIC on RPi?
Replies: 2312
Views: 167734

Re: Why Avoid BASIC on RPi?

Now, I'm no teacher but I imagine that if the topic was the mathematical niceties of the fast fibo algorithm or karatsuba I would want to have the students try it out in a language that quick and easy to write. Short and sweet. Where the algorithm is clear to see in the code and does not require wr...
by ejolson
Fri Dec 14, 2018 8:42 pm
Forum: Off topic discussion
Topic: Why Avoid BASIC on RPi?
Replies: 2312
Views: 167734

Re: Why Avoid BASIC on RPi?

Here is a simplified version of the C code. Thanks for the update. Feel free to add your name to the source along with a description of your modifications. I'm surprised you removed the equation which determines how much memory will be needed as a function of n. Was it not working, or did you just ...
by ejolson
Fri Dec 14, 2018 5:18 pm
Forum: Off topic discussion
Topic: Why Avoid BASIC on RPi?
Replies: 2312
Views: 167734

Re: Why Avoid BASIC on RPi?

PeterO, You are certainly especially dispended. In fact you get my vote for presenting the most interesting response to this challenge. Sadly I still can't get it to run with the ALGOL 60 to C translator I have here. It translates OK but the resulting executable segfaults. A problem for another day...
by ejolson
Fri Dec 14, 2018 4:56 pm
Forum: Off topic discussion
Topic: What was your first computer?
Replies: 527
Views: 214582

Re: What was your first computer?

I feel young I am 13 with a hp pavilion g6 Congratulations. That is a nice computer. Have you tried Raspberry Pi Desktop on it? It difficult to imagine, but in 40 years that Pavilion G6 computer will look like this https://upload.wikimedia.org/wikipedia/commons/thumb/e/ee/Pdp-11-40.jpg/576px-Pdp-11...
by ejolson
Fri Dec 14, 2018 5:15 am
Forum: Off topic discussion
Topic: Why Avoid BASIC on RPi?
Replies: 2312
Views: 167734

Re: Why Avoid BASIC on RPi?

Wow 27 pages already, that is unexpected. I would advise not relying on oabi compatibility support going forward. Apparently it's still enabled in raspberry pi foundation kernels but other kernels may have it turned off (it comes at a performance penalty) and arm64 kernels don't support it at all. ...
by ejolson
Fri Dec 14, 2018 1:41 am
Forum: General discussion
Topic: 64-bit operating system
Replies: 358
Views: 142385

Re: 64-bit operating system

My 2 cents is that while I’d love to see a 64 bit “official” Raspian If kids NEED 64bit OS's then does the OS distribution NEED to be Raspbian? From what I understand, Raspbian is for the benefit of teachers and parents who just want the computer to be configured by default in a way suitable for ch...
by ejolson
Thu Dec 13, 2018 9:53 pm
Forum: Off topic discussion
Topic: Why Avoid BASIC on RPi?
Replies: 2312
Views: 167734

Re: Why Avoid BASIC on RPi?

I saw this in the news recently: The total number of photons emitted by all the stars in the universe from day one (13.7 billion years ago) has been estimated as 4e84 Which you can easily store in a standard "double" in C. While the estimate has only one digit precision, an 84 digit integer can onl...
by ejolson
Thu Dec 13, 2018 7:43 pm
Forum: Off topic discussion
Topic: Why Avoid BASIC on RPi?
Replies: 2312
Views: 167734

Re: Why Avoid BASIC on RPi?

This is interesting: I tweaked my high() and low() methods to return views of the original digits rather than making copies. With the following result: Number of allocations and memcpy's down from almost 2 billion to 1.4 billion. Run time down from 73 seconds to 55 seconds. All in all 37% faster th...
by ejolson
Thu Dec 13, 2018 6:54 pm
Forum: Off topic discussion
Topic: Why Avoid BASIC on RPi?
Replies: 2312
Views: 167734

Re: Why Avoid BASIC on RPi?

I could not find a license or source to Richard Russell's BASIC. He open-sourced it a couple months ago citing failing health as the reason and uploaded a tarball somewhere. I don't think anyone jumped in to help or even put it on GitHub, but something of the sort appears to be what he wants. Any v...
by ejolson
Thu Dec 13, 2018 6:54 am
Forum: Off topic discussion
Topic: Why Avoid BASIC on RPi?
Replies: 2312
Views: 167734

Re: Why Avoid BASIC on RPi?

Oh... I was replying to ejolson's question about why __udivmoddi4 wasn't listed only to get a message that their post didn't exist, lost what I'd written. Sorry, I finally realized what you meant by It doesn't count time spent in external code and retracted my question. I didn't know your reply wou...
by ejolson
Wed Dec 12, 2018 6:01 pm
Forum: General discussion
Topic: A Pi Pie Chart
Replies: 173
Views: 23489

Re: A Pi Pie Chart

A Pi pie chart for the ASUS Tinker Board which uses a quad-core ARM Cortex A17 CPU running at 1.8 GHz was independently posted in a different thread . I have regenerated the chart and posted the results here so they can be more easily compared. http://fractal.math.unr.edu/~ejolson/pi/pichart/a17open...
by ejolson
Wed Dec 12, 2018 3:49 pm
Forum: Off topic discussion
Topic: Why Avoid BASIC on RPi?
Replies: 2312
Views: 167734

Re: Why Avoid BASIC on RPi?

Yay! Good news. It would nice to suppress the leading zeros so only a million digits are printed. I wonder whether the 60-fold performance difference is from the memory allocations or from using Karatsuba all the way down to 1-digit numbers. As I mentioned in my previous post, using the efficient a...
by ejolson
Wed Dec 12, 2018 8:59 am
Forum: Off topic discussion
Topic: Why Avoid BASIC on RPi?
Replies: 2312
Views: 167734

Re: Why Avoid BASIC on RPi?

If NEON helps why not. But as long as it does not show up in your source as some funky assembler. That is not Pascal. From my point of view the present project compares the expressiveness of Basic to other programming languages by measuring in each language how efficiently the Karatsuba multiplicat...
by ejolson
Tue Dec 11, 2018 7:23 pm
Forum: Off topic discussion
Topic: Why Avoid BASIC on RPi?
Replies: 2312
Views: 167734

Re: Why Avoid BASIC on RPi?

After all we already have a BASIC solution in FreeBASIC by ejolson by which to compare readbilty/understandability. Unfortunately, the FreeBASIC solution is not complete as it is missing the Karatsuba multiplication routine. I had been hoping some other BASIC enthusiast would finish it. Do you need...
by ejolson
Tue Dec 11, 2018 7:41 am
Forum: Off topic discussion
Topic: Why Avoid BASIC on RPi?
Replies: 2312
Views: 167734

Re: Why Avoid BASIC on RPi?

Gavinmc42, "In the beginning all we had was Basic, you young whipper snappers have so many choices...." , Grumpy old man hat on Bah! Young'n's. In the beginning was FORTRAN, we had FORTRAN and ALGOL, BASIC was the new kid on the block. Actual grumpy old man :) Unfortunately, starting with Fortran 9...
by ejolson
Tue Dec 11, 2018 6:52 am
Forum: Off topic discussion
Topic: Why Avoid BASIC on RPi?
Replies: 2312
Views: 167734

Re: Why Avoid BASIC on RPi?

I'll try to answer some of your questions, but please keep in mind I've only written one incomplete Fibonacci program in FreeBASIC. Precompiled object libraries? FreeBasic? Hmm will it compile on my Gentoo64 Pi? I think object libraries are possible. FreeBASIC is essentially a C preprocessor so it s...
by ejolson
Tue Dec 11, 2018 3:59 am
Forum: Off topic discussion
Topic: Why Avoid BASIC on RPi?
Replies: 2312
Views: 167734

Re: Why Avoid BASIC on RPi?

Wow How, where, when, why, who and at what time will the C++ Fibonacci code be ready? Once the challenge of creating a super-amazing graphical network multiplayer rewrite of the classic BASIC Star Trader game using ultra-modern non-line-numbered BASIC is finished and demonstrates the tremendous imp...
by ejolson
Tue Dec 11, 2018 2:13 am
Forum: Off topic discussion
Topic: Why Avoid BASIC on RPi?
Replies: 2312
Views: 167734

Re: Why Avoid BASIC on RPi?

I was catching up on the latest Bluetooth 5.0 modules for IoT sensors for Pi's and found this. https://connectivity.lairdtech.com/wireless-modules/bluetooth-modules/bluetooth-5-modules/bl652-series-bluetooth-v5-nfc SmartBasic in a tiny module. the chip used is the Microbit's bigger brother, the nRF...
by ejolson
Mon Dec 10, 2018 10:43 pm
Forum: Off topic discussion
Topic: Why Avoid BASIC on RPi?
Replies: 2312
Views: 167734

Re: Why Avoid BASIC on RPi?

Or should we all go back to using RT/11 for our operating system, and Mini Computers that take up the entire corner of a room consuming more power than the rest of the house and capable of up to 10MIPS using only 16-bit integer operations? RT-11 runs quite well on the Raspberry Pi under SIMH. Curre...
by ejolson
Mon Dec 10, 2018 8:31 pm
Forum: General discussion
Topic: 64-bit operating system
Replies: 358
Views: 142385

Re: 64-bit operating system

It would be interesting to see an example of a reasonably written program which solves a real problem that runs 2-times slower on 64-bit compared to 32-bit. Are there any examples that can be quantitatively compared? I suspect the only thing that's slower might be a program reading/writing vast num...
by ejolson
Mon Dec 10, 2018 7:44 pm
Forum: Off topic discussion
Topic: Why Avoid BASIC on RPi?
Replies: 2312
Views: 167734

Re: Why Avoid BASIC on RPi?

The claim made by a programmer that text files are human readable is similar to the claim made by a Christian that nothing can be done without God. In both cases words have been omitted that make it necessary for the listener to ignore the literal meaning and infer the real meaning. The real meaning...
by ejolson
Mon Dec 10, 2018 6:43 pm
Forum: Off topic discussion
Topic: Why Avoid BASIC on RPi?
Replies: 2312
Views: 167734

Re: Why Avoid BASIC on RPi?

I created a github repository to hold solutions to the fibo(4784969) challenge. It is fine with me to include my fibonacci.c program written in ANSI C and my fibo.bas program written in FreeBASIC. If new versions of those codes get posted on this forum I would appreciate if you also update the repo...

Go to advanced search