Go to advanced search

by Heater
Tue Jun 25, 2019 6:03 am
Forum: General programming discussion
Topic: A Final Fibonacci Challenge
Replies: 601
Views: 18053

Re: A Final Fibonacci Challenge

ScriptBasic, Is it my understanding all fibos using GMP leak? If it is then your understanding is wrong. Where would you get that idea from? I know of no languages that use GMP that have memory leaks apart from ScriptBaisc and it's GMP extension. Sometimes I wonder if you ever read what I write for ...
by Heater
Mon Jun 24, 2019 11:05 pm
Forum: General discussion
Topic: The RPi4 makes no sense to me. Fight me!
Replies: 17
Views: 574

Re: The RPi4 makes no sense to me. Fight me!

jayeye, I have always considered the Raspberry Pi as a platform for embedded systems,... I see your mistake immediately. You clearly have no idea why the Pi was created in the first place. Certainly not as a platform for embedded systems. On the other hand why not? Plenty of embedded systems have di...
by Heater
Mon Jun 24, 2019 7:34 pm
Forum: Other programming languages
Topic: BaCon - BASIC to C converter
Replies: 12
Views: 202

Re: BaCon - BASIC to C converter

Hardly surprising.

That fibo algorithm is mind bendingly slow. And gets exponentially slower as the numbers get bigger.

Given that fibo(4784969) has a million digits it would take multiple times the age of the universe to run even if it did not segfault.
by Heater
Mon Jun 24, 2019 7:29 pm
Forum: General programming discussion
Topic: A Final Fibonacci Challenge
Replies: 601
Views: 18053

Re: A Final Fibonacci Challenge

I don't think anyone said it was.

Makes no difference anyway, it needs fixing.

Finding out and understanding what the problem is may prevent similar head scratching for future extension developments.
by Heater
Mon Jun 24, 2019 6:57 pm
Forum: General discussion
Topic: Raspberry Pi 4 Thread - general discussion
Replies: 278
Views: 12211

Re: Raspberry Pi 4 Thread - general discussion

What's with all the shouting?

Nothing missing there that most of us need.

Can't wait to get my hands on a few with all that 64 bit 4GB lovelyness.
by Heater
Mon Jun 24, 2019 6:38 pm
Forum: Other programming languages
Topic: BaCon - BASIC to C converter
Replies: 12
Views: 202

Re: BaCon - BASIC to C converter

Wow, that is insane!

A BASIC to C compiler written in shell script. 10,500 lines of it all in one file!

My hat is off to the skill and tenacity of it's author. That is very humbling.
by Heater
Mon Jun 24, 2019 6:31 pm
Forum: General programming discussion
Topic: A Final Fibonacci Challenge
Replies: 601
Views: 18053

Re: A Final Fibonacci Challenge

ScriptBasic, I noticed you edited your post there. I'm quite honored to be likened to PeterO. Thank you. Sorry about the snipey remark about ScriptBasic's memory hygiene. I was bit frustrated that my original bug report seemed not to have hit the spot. As it turns out I'm having the same issue with ...
by Heater
Mon Jun 24, 2019 3:41 pm
Forum: General discussion
Topic: Regular restart vs power on after electricity drop down
Replies: 11
Views: 723

Re: Regular restart vs power on after electricity drop down

I don't consider some changes in permissions as a breaking problem. Assuming they got tightened up for good reason not slacked off. A bit annoying perhaps but trivial to attend to. But that is the thing, if you really want to be sure your stuff will work on an OS change you have to check for all the...
by Heater
Mon Jun 24, 2019 3:20 pm
Forum: General discussion
Topic: Is the new Raspberry Pi 4 vulnerable to Meltdown and Spectre attacks?
Replies: 12
Views: 680

Re: Is the new Raspberry Pi 4 vulnerable to Meltdown and Spectre attacks?

gkaiseril, Most viruses are machine dependent ... True. ...and this virus as many rely on the Intel and AMD family of chips Not true. These attacks depend of processor optimization features that can be present in any processor architecture. I have no idea if our Pi's ARM cores employ such features t...
by Heater
Mon Jun 24, 2019 9:48 am
Forum: General discussion
Topic: Raspberry Pi 4 Thread - general discussion
Replies: 278
Views: 12211

Re: Raspberry Pi 4 Thread - general discussion

jamesh, Under the skin, much is different. This is the biggest HW change in Pi history. I have no doubt about that. Don't care. Same form factor, same mounting holes, same GPIO, same power requirements, same .... looks like I'm going to be very happy it does not break anything I currently do with Pi...
by Heater
Mon Jun 24, 2019 9:27 am
Forum: General discussion
Topic: Raspberry Pi 4 Thread - general discussion
Replies: 278
Views: 12211

Re: Raspberry Pi 4 Thread - general discussion

Ha! I disable WiFi and such with a soldering iron. Or just side cutters!

Well done everyone. The Pi 4 is great news.

Mostly the same, but mo' better, just how we like it.
by Heater
Mon Jun 24, 2019 9:19 am
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1188
Views: 32220

Re: ScriptBasic

ScriptBasic, You would create another BIGINT extension module. No doubt. But then it would have a different name and perhaps different method names and perhaps not work the same way. To make us of it one would have to rewrite all ones code to use HEATER::PLUS...(say) instead of GMP2::ADD and so on. ...
by Heater
Mon Jun 24, 2019 9:08 am
Forum: General programming discussion
Topic: A Final Fibonacci Challenge
Replies: 601
Views: 18053

Re: A Final Fibonacci Challenge

ScriptBasic,
Finally 64 bit with enough ram to run it.
Not really. ScriptBasic eats all the 8GB of my PC when running the fibos. I'm sure it could happily gorge itself on 16, 32 ... MB !

Most code I run on the Pi, including all our other language fibos uses very little of the old Pi's 1GB.
by Heater
Mon Jun 24, 2019 7:47 am
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1188
Views: 32220

Re: ScriptBasic

ScriptBasic, The GMP2 extension module source is in the sandbox. The fibo() function is included. Yes I know. It's horrible. ... res = mpz_get_str(NULL,10,g_Res); besSET_RETURN_STRING(res); free(res); ... Looks like strings returned from mpz are being freed correctly. I have idea what happens to the...
by Heater
Mon Jun 24, 2019 7:26 am
Forum: General programming discussion
Topic: A Final Fibonacci Challenge
Replies: 601
Views: 18053

Re: A Final Fibonacci Challenge

Now we have to do all our Fibo timings again on the Pi 4 :)
by Heater
Mon Jun 24, 2019 7:15 am
Forum: General programming discussion
Topic: A Final Fibonacci Challenge
Replies: 601
Views: 18053

Re: A Final Fibonacci Challenge

ScriptBasic,

Please see my reply in the ScriptBasic thread: https://www.raspberrypi.org/forums/view ... 8#p1483988
by Heater
Mon Jun 24, 2019 7:11 am
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1188
Views: 32220

Re: ScriptBasic

ScriptBasic, In reply to you questions on the Fibonacci thread: Once again I present codes and results demonstrating memory leaks in ScriptBasic and the GMP2 extension. See below. I can call the GMP fibo() function in loop with no memory runaway. (user created buffer) Please show your code because I...
by Heater
Mon Jun 24, 2019 3:33 am
Forum: General discussion
Topic: rpi cluster
Replies: 2
Views: 94

Re: rpi cluster

Sure there is a chance. Depends what kind of "cluster".

What kind of cluster do you want?
by Heater
Mon Jun 24, 2019 1:50 am
Forum: General programming discussion
Topic: A Final Fibonacci Challenge
Replies: 601
Views: 18053

Re: A Final Fibonacci Challenge

ScriptBasic, Fact is all memory used is released by ScriptBasic when the program ends. I'm sure that is true. It's totally pointless though. Linux will reclaim all it's memory back after it has killed a run away ScriptBasic program anyway! That is how things get done no matter what program or what l...
by Heater
Sun Jun 23, 2019 7:21 pm
Forum: General programming discussion
Topic: A Final Fibonacci Challenge
Replies: 601
Views: 18053

Re: A Final Fibonacci Challenge

ScriptBasic,

Code: Select all

Can you post what fibo versions are known to leak?
See code and bug report in this post on the ScriptBasic thread:

https://www.raspberrypi.org/forums/view ... 0#p1482283
by Heater
Sun Jun 23, 2019 1:00 pm
Forum: General programming discussion
Topic: A Final Fibonacci Challenge
Replies: 601
Views: 18053

Re: A Final Fibonacci Challenge

ejolson, Do you reset the list of memos before calculating a new Fibonacci number? No. Actually I thought I'd removed the memoization altogether, it does not save very much time, turns out I did not... I was so hung up on managing memory between the Javascript world and the C++ world via emscripten'...
by Heater
Sat Jun 22, 2019 9:09 pm
Forum: General discussion
Topic: Regular restart vs power on after electricity drop down
Replies: 11
Views: 723

Re: Regular restart vs power on after electricity drop down

jadro, I understand the fear of an operating system upgrade. People running important software will do a lot of testing of their applications on a new OS release before putting it into production. Thing is, you will have to face moving to a new Raspbian release eventually. Perhaps the best thing to ...
by Heater
Sat Jun 22, 2019 4:52 pm
Forum: General programming discussion
Topic: A Final Fibonacci Challenge
Replies: 601
Views: 18053

Re: A Final Fibonacci Challenge

Suspecting it might be useful to be able to calculate Fibonacci numbers other than F(4784969) I added an input box to my online Fibonacci calculator. It's rough and ready and I suspect it has a memory leak, might hang up if you calculate big fibos too often without reloading. It breaks the challenge...
by Heater
Sat Jun 22, 2019 3:57 pm
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1188
Views: 32220

Re: ScriptBasic

ScriptBasic,
Peter switched to MIT about a year ago.
I see no evidence of that anywhere.

Not on ScriptBasic.com : http://scriptbasic.com/license.html

Not on Peter's ScriptBasic repository: https://github.com/verhas/ScriptBasic/b ... icense.txt

Do you have a link to such a statement?
by Heater
Sat Jun 22, 2019 1:49 pm
Forum: General programming discussion
Topic: A Final Fibonacci Challenge
Replies: 601
Views: 18053

Re: A Final Fibonacci Challenge

I don't think nvm caters for global node installation. The whole point really is to manage node versions. This means one can use different versions for different jobs, verify new versions before going to production etc. This was very useful when node was under such rapid development a few years back...

Go to advanced search