Go to advanced search

by ejolson
Wed Aug 07, 2019 8:38 pm
Forum: General programming discussion
Topic: Project Digital Apocalypse Not Now
Replies: 1061
Views: 39572

Re: Project Digital Apocalypse Not Now

bensimmo, I really want a browser based solution to sit alongside the prime one, so I can test on various devices. OK. Just for you. Insane British Anagrams found in your browser from a downloaded dictionary. http://otaniemi.conveqs.fi:9000/www/ That's quite impressive. While I didn't check every a...
by ejolson
Wed Aug 07, 2019 7:37 pm
Forum: General programming discussion
Topic: Project Digital Apocalypse Not Now
Replies: 1061
Views: 39572

Re: Project Digital Apocalypse Not Now

Since the cream is supposed to rise to the top your chart must be upside down :) I just got a letter from the zombies which read Our zanagram.c program is 100% fat free. For more information let us in now. I tried turning the chart rightside up, but every time the screen on my phone shifted and tur...
by ejolson
Wed Aug 07, 2019 5:53 pm
Forum: General programming discussion
Topic: Project Digital Apocalypse Not Now
Replies: 1061
Views: 39572

Re: Project Digital Apocalypse Not Now

Just for completeness I have also tested other algorithms in Python but they were all slower than the method using ordered strings. Here is the version using ordered prime numbers (selfgrams_prime.py). It might be interesting to see how it performs RPi 4 running Buster. Fantastic! Another bar to ad...
by ejolson
Wed Aug 07, 2019 5:04 pm
Forum: General programming discussion
Topic: Project Digital Apocalypse Not Now
Replies: 1061
Views: 39572

Re: Project Digital Apocalypse Not Now

John_Spikowski wrote:
Wed Aug 07, 2019 4:56 pm
VB doen't run on the RPi so would it still count?
Visual Basic .NET runs on the Raspberry Pi using Mono and the open-source vbnc compiler.
by ejolson
Wed Aug 07, 2019 3:42 pm
Forum: General programming discussion
Topic: Project Digital Apocalypse Not Now
Replies: 1061
Views: 39572

Re: Project Digital Apocalypse Not Now

Great your Turboencabulator is working well. At 0.637s it's running v3 of my Rust twice as fast as my latest effort on a Pi 3 at 1.457s. And nearly as fast at it runs on my PC at 0.580s. My C++ solution using GMP for the prime hash Thanks! I now have a name for the new Pi. Since turboencabulator is...
by ejolson
Wed Aug 07, 2019 5:23 am
Forum: General programming discussion
Topic: Project Digital Apocalypse Not Now
Replies: 1061
Views: 39572

Re: Project Digital Apocalypse Not Now

That looks great. Preliminary results are now in for the Pi 4B version of the Insane British Anagram Bar Chart of Fame. http://fractal.math.unr.edu/~ejolson/pi/anagram/fame4.png The colors got mixed up, but I've left them that way because the change helps distinguish the new chart from the Pi 3B+ o...
by ejolson
Wed Aug 07, 2019 1:14 am
Forum: General programming discussion
Topic: Project Digital Apocalypse Not Now
Replies: 1061
Views: 39572

Re: Project Digital Apocalypse Not Now

That aluminium case for the Pi 4B certainly looks nice. Given my budget, I suspect a different solution will present itself that involves scavenging heatsinks from surplus motherboards. More details as things develop. The wicked case is expensive and that level of cooling is not needed. Its kind of...
by ejolson
Wed Aug 07, 2019 12:52 am
Forum: General discussion
Topic: Why moving to 64bit?
Replies: 170
Views: 6959

Re: Why moving to 64bit?

BTW, Microsoft has been supporting both 32-bit and 64-bit versions of Windows for 12 years now. Of course Microsoft has plenty of resources to do this. More like 18 years, as have virtually all linux distros. I hate to quibble but while it was true a test version of 64-bit linux was demonstrated in...
by ejolson
Tue Aug 06, 2019 4:58 pm
Forum: General programming discussion
Topic: Project Digital Apocalypse Not Now
Replies: 1061
Views: 39572

Re: Project Digital Apocalypse Not Now

I'm all for not putting training wheels on kids bikes. Worked for me. However there is overwhelming and ever mounting evidence to suggest that mature, experienced, skilled, C/C++ programmers cannot produce safe code. As such they need all the "training wheels" they can get. Rather than training whe...
by ejolson
Tue Aug 06, 2019 1:55 pm
Forum: General programming discussion
Topic: Project Digital Apocalypse Not Now
Replies: 1061
Views: 39572

Re: Project Digital Apocalypse Not Now

With those memories in mind I conclude that C/C++ are most certainly not good as a first programming language for beginners to programming. Crashing the entire operating system with a user-level program written in C did not happen with the original Kernighan and Ritchie C compiler on the PDP-11 nor...
by ejolson
Tue Aug 06, 2019 8:48 am
Forum: General programming discussion
Topic: Project Digital Apocalypse Not Now
Replies: 1061
Views: 39572

Re: Project Digital Apocalypse Not Now

Edit: When I replace all those short circuit operatirs, "++", "|=", etc, with their long hand equivalents in fftbench it runs at exactly the same speed. Not surprising I guess. So which version did you think was the most readable? I have been looking at C for so many decades that I find the += form...
by ejolson
Tue Aug 06, 2019 3:09 am
Forum: General programming discussion
Topic: Project Digital Apocalypse Not Now
Replies: 1061
Views: 39572

Re: Project Digital Apocalypse Not Now

Feature set takes precedence over speed. For those who have just joined or still spectating, the present thread is discussing the Insane British Anagram Challenge described in https://www.raspberrypi.org/forums/viewtopic.php?f=31&t=240287&start=725#p1504861 As elaborated on in the post https://www....
by ejolson
Mon Aug 05, 2019 11:53 pm
Forum: General programming discussion
Topic: Project Digital Apocalypse Not Now
Replies: 1061
Views: 39572

Re: Project Digital Apocalypse Not Now

1) ScriptBasic has no arrays in the normal sense of indexing some memory some place. Rather it has linked lists. Requiring a search of the list to find the required array indexed item. Though I haven't looked at the code, the performance of regular arrays in ScriptBasic appears similar to other Bas...
by ejolson
Mon Aug 05, 2019 10:56 pm
Forum: General programming discussion
Topic: Project Digital Apocalypse Not Now
Replies: 1061
Views: 39572

Re: Project Digital Apocalypse Not Now

John_Spikowski, I'm curious how the HASH method relates to the approach being taken? The fundamental problem is how do we know that one word is an anagram of another. A hash table is one way of implementing associative arrays that doesn't on average experience the O(n) slowdown exhibited by linear ...
by ejolson
Mon Aug 05, 2019 10:13 pm
Forum: General programming discussion
Topic: Project Digital Apocalypse Not Now
Replies: 1061
Views: 39572

Re: Project Digital Apocalypse Not Now

Paeryn, Wouldn't your while loop in output_anagrams ... Turns out that "for i in 0..size {..." is not only easier on the eyes but seems to be a few percent faster. I have not measured it rigorously but it's a win anyway. When I discovered that "for i in 0..size" surprisingly meant "for i in 0, 1, ....
by ejolson
Mon Aug 05, 2019 6:16 pm
Forum: General programming discussion
Topic: Project Digital Apocalypse Not Now
Replies: 1061
Views: 39572

Re: Project Digital Apocalypse Not Now

Now I have to go though all my code and fix a hundred clippy warnings so as to keep the Rust style. Is it possible cargo clippy is meant to be a joke based on the artificial intelligence of the same name from the Microsoft office suite? I asked the canine coder whether FidoBasic enforced any partic...
by ejolson
Mon Aug 05, 2019 1:39 am
Forum: General programming discussion
Topic: Project Digital Apocalypse Not Now
Replies: 1061
Views: 39572

Re: Project Digital Apocalypse Not Now

No, plan B is good old fashioned mutexs and shared memory, like the good old days, but using Rust's standard lib. Plan C is to resurrect my one and only attempt at a compiler years ago... I have only had a quick look at D, is that any better? I think the digital apocalypse could be ended right now ...
by ejolson
Sun Aug 04, 2019 5:41 pm
Forum: General programming discussion
Topic: Project Digital Apocalypse Not Now
Replies: 1061
Views: 39572

Re: Project Digital Apocalypse Not Now

Ah, well, time for plan B. Is plan B to use Swift, Go, C# or Kotlin? My Pi 4B is still in the box, after waiting to get one, I don't now have time to even open the box. If the digital apocalypse doesn't happen first, next week should provide time to figure out a reasonable cooling solution and make...
by ejolson
Sun Aug 04, 2019 2:53 pm
Forum: C/C++
Topic: compile Linux C programs to use cpu cores exclusively
Replies: 26
Views: 1114

Re: compile Linux C programs to use cpu cores exclusively

just to be sure: Even for that cpu_set_t cpus approach I still have to set in config.txt isolcpus=2,3 or don't I? With systemd things may have changed or may change tomorrow. It's worth adding the isocpus line and then checking it is enough to prevent system tasks from being scheduled on those proc...
by ejolson
Sun Aug 04, 2019 1:28 pm
Forum: General discussion
Topic: 4gb - 4B Demand must be high.
Replies: 134
Views: 5939

Re: 4gb - 4B Demand must be high.

So, why DO people want the 4GB, when the 2GB would do the job? ...seems like a lot of responses on this thread are just "bigger is better, so I've got to have bigger"... Quite. Part of the demand for 4GB is likely due to its potential as a green desktop replacement, a market niche that is relativel...
by ejolson
Sun Aug 04, 2019 1:28 am
Forum: General programming discussion
Topic: Project Digital Apocalypse Not Now
Replies: 1061
Views: 39572

Re: Project Digital Apocalypse Not Now

Well that's a bummer. My Rust code may be "safe" but as I was experimenting with threads in Rust I managed to get my program to segfault. Can't for the life of me find where to send Rust bug reports. Is it possible to install a signal handler for SIGSEGV in Rust? The advantage of using a popular an...
by ejolson
Sat Aug 03, 2019 8:00 pm
Forum: General programming discussion
Topic: Project Digital Apocalypse Not Now
Replies: 1061
Views: 39572

Re: Project Digital Apocalypse Not Now

hello_world is closer to normal English and is therefore easier to read. In my opinion, it is not practical to enforce coding standards at the language level because identical standards may not be suitable for all the different application domains that a general purpose language is meant to cover. ...
by ejolson
Sat Aug 03, 2019 7:14 pm
Forum: General programming discussion
Topic: Project Digital Apocalypse Not Now
Replies: 1061
Views: 39572

Re: Project Digital Apocalypse Not Now

I did not understand the "a = a + 3" thing. That is a particularly confusing expression, because there is no number except perhaps infinity that is equal to itself after adding three. While gcc and clang create identical code for many of the equivalent but longer expressions, it is likely Kernighan...
by ejolson
Sat Aug 03, 2019 2:41 am
Forum: General programming discussion
Topic: Project Digital Apocalypse Not Now
Replies: 1061
Views: 39572

Re: Project Digital Apocalypse Not Now

Unfortunately, Micro Center sold their Pi 4 stock last week. Therefore, except for a couple Zeros and SD cards, my shopping resulted in failure. Today the shopping went better and thanks to my generous wife I now have a Raspberry Pi 4B. After I figure out cooling and a case, it should be possible t...
by ejolson
Fri Aug 02, 2019 11:33 pm
Forum: General programming discussion
Topic: Project Digital Apocalypse Not Now
Replies: 1061
Views: 39572

Re: Project Digital Apocalypse Not Now

Does the language used have to run on Linux? Ideally the program would run on the Raspberry Pi. For example, a language available only under RISC OS, Windows IOT or Plan 9 would be interesting. In that case, one could copy the insane British dictionary from Raspbian to the other operating system an...

Go to advanced search