Heater
Posts: 15998
Joined: Tue Jul 17, 2012 3:02 pm

Re: Liberation through Computer Literacy

Fri Nov 01, 2019 5:56 pm

Onko sinulla suomalaista kissaa?
Memory in C++ is a leaky abstraction .

ejolson
Posts: 5425
Joined: Tue Mar 18, 2014 11:47 am

Re: Liberation through Computer Literacy

Fri Nov 01, 2019 6:25 pm

Heater wrote:
Fri Nov 01, 2019 5:56 pm
Onko sinulla suomalaista kissaa?
In order to be fully liberating, computer literacy must be accessible to plants and animals of all species, phylum, race, gender and nationality among other things. If any content cannot be made compliant with the ADA Americans with Disabilities Act

https://www.ada.gov/pcatoolkit/toolkitmain.htm

that content must be deleted, see in particular Chapter 5 on website design. Printed books are currently excepted due to environmental concerns related to burning all of them.

User avatar
John_Spikowski
Posts: 1614
Joined: Wed Apr 03, 2019 5:53 pm
Location: Anacortes, WA USA
Contact: Website Twitter

Re: Liberation through Computer Literacy

Fri Nov 01, 2019 6:37 pm

Heater wrote:
Fri Nov 01, 2019 5:56 pm
Onko sinulla suomalaista kissaa?
Sorry I'm Polish decent. I inherited Savu.

User avatar
Burngate
Posts: 6306
Joined: Thu Sep 29, 2011 4:34 pm
Location: Berkshire UK Tralfamadore
Contact: Website

Re: Liberation through Computer Literacy

Fri Nov 01, 2019 7:06 pm

ejolson wrote:
Fri Nov 01, 2019 6:25 pm
... computer literacy must be accessible to plants and animals of all species, phylum, ...
What have you got against fungi and their relatives? It's not as if they didn't give us penicillin and the like. And where would we be without yeast?

I can understand missing out viruses and phages, and even bacteria, archaia, etc. even though soil and our guts rely on them to work, but really ...

User avatar
davidcoton
Posts: 5052
Joined: Mon Sep 01, 2014 2:37 pm
Location: Cambridge, UK
Contact: Website

Re: Liberation through Computer Literacy

Fri Nov 01, 2019 8:49 pm

John_Spikowski wrote:
Fri Nov 01, 2019 6:37 pm
Heater wrote:
Fri Nov 01, 2019 5:56 pm
Onko sinulla suomalaista kissaa?
Sorry I'm Polish decent. I inherited Savu.
Czy masz fińskiego kota?
Signature retired

User avatar
John_Spikowski
Posts: 1614
Joined: Wed Apr 03, 2019 5:53 pm
Location: Anacortes, WA USA
Contact: Website Twitter

Re: Liberation through Computer Literacy

Fri Nov 01, 2019 9:33 pm

You can find a job with the Finnish language.

Heater
Posts: 15998
Joined: Tue Jul 17, 2012 3:02 pm

Re: Liberation through Computer Literacy

Sat Nov 02, 2019 8:35 am

Oddly enough every place I worked in Finland required one to work in English. Being international companies like Nokia.

Except one smaller branch of a smaller corporation that used Swedish in all it's code comments and documentation. Luckily they only had a about three lines of comments in their code base so it did not cause to much confusion for me.

I did once find comments in Finnish in piles of assembler. But that was in England! In the BIOS of the PC's Nokia was exporting in the 1980's. Again luckily confusion was avoided by their sparsity.

(If anyone ever tells you to comment your code well, just say "no" and point them to this post for the reason why.)
Memory in C++ is a leaky abstraction .

ejolson
Posts: 5425
Joined: Tue Mar 18, 2014 11:47 am

Re: Liberation through Computer Literacy

Sat Nov 02, 2019 4:13 pm

Burngate wrote:
Fri Nov 01, 2019 7:06 pm
ejolson wrote:
Fri Nov 01, 2019 6:25 pm
... computer literacy must be accessible to plants and animals of all species, phylum, ...
What have you got against fungi and their relatives? It's not as if they didn't give us penicillin and the like. And where would we be without yeast?
With a sound not unlike when the dog developer rolled down the stairs as a puppy, Fido burst through the door yelping. What wrong? I asked. The lead developer of FidoBasic howled, I've just returned from touring five of the ten events nearest to the second age of personal computing in four dimensional space time. Oh that, I replied. How are Dr Who's teeth?

Tail wagging the lead developer of FidoBasic went on, it turns out that the animated orange cat is not fully ADA compliant since Scratch can't be used with screen readers for the blind. Further, there was an antidiscrimination lawsuit in which some fungi acting on behalf of the toxoplasma gondii claimed the latter had been denied liberation through computer literacy as part of an intentional act favouring the mouse. As a result Scratch will soon be deleted from the curriculum reform and replaced by FidoBasic.

How can that be, I questioned. FidoBasic hasn't even entered beta-testing yet. The canine coder growled, ADA support is so important that testing is not needed--just the paperwork to show compliance. K9 helped me. To convince the lawyers, the key was demonstrating the use of line numbers in FidoBasic source code.
Last edited by ejolson on Sat Nov 02, 2019 5:05 pm, edited 2 times in total.

Heater
Posts: 15998
Joined: Tue Jul 17, 2012 3:02 pm

Re: Liberation through Computer Literacy

Sat Nov 02, 2019 5:02 pm

Oh boy, that means node-red is taboo as well.

Pretty much half the educational material put out by the Pi Foundation is likely cause for a law suite.
Memory in C++ is a leaky abstraction .

ejolson
Posts: 5425
Joined: Tue Mar 18, 2014 11:47 am

Re: Liberation through Computer Literacy

Sat Nov 02, 2019 5:19 pm

Heater wrote:
Sat Nov 02, 2019 5:02 pm
Oh boy, that means node-red is taboo as well.
I've found a little bleach clears up most problems caused by fungi.

Here on the liberal frontier, making all online educational materials accessible following the guidelines of Chapter 5 is essential. Moreover, no software can appear in school budgets that hasn't been certified ADA compliant.

Since there is a loss for every gain in a zero-sum game, one can only hope the pyramid scheme called education is not a zero-sum game. At the same time, I'm at a loss how to replace the foundation's lesson plans in Scratch with FidoBasic. I fear K9 obscured the clumsy way in which irrational line numbers are used to express the liberating paradigms of n-level meta-programming.

My opinion is that further testing of different programming languages is warranted, maybe by means of a well-formulated challenge problem.

User avatar
John_Spikowski
Posts: 1614
Joined: Wed Apr 03, 2019 5:53 pm
Location: Anacortes, WA USA
Contact: Website Twitter

Re: Liberation through Computer Literacy

Sat Nov 02, 2019 6:11 pm

I'm for challenges that don't require me to change my career field.

@ejolson is the most qualified to present useful challenges. Heater tends to enjoy absurd too much.

ejolson
Posts: 5425
Joined: Tue Mar 18, 2014 11:47 am

Re: Liberation through Computer Literacy

Sat Nov 02, 2019 6:25 pm

John_Spikowski wrote:
Sat Nov 02, 2019 6:11 pm
I'm for challenges that don't require me to change my career field.
You seemed interested in the Tatami problem. I wonder if anyone will post working code for computing T(s) so those of us in the gallery can commence with comparing the expressivity of various languages while eating peanuts.
Last edited by ejolson on Sat Nov 02, 2019 6:53 pm, edited 1 time in total.

Heater
Posts: 15998
Joined: Tue Jul 17, 2012 3:02 pm

Re: Liberation through Computer Literacy

Sat Nov 02, 2019 6:51 pm

John_Spikowski,
@ejolson is the most qualified to present useful challenges. Heater tends to enjoy absurd too much.
I don't know about qualified but that is a rather odd judgement. Of the two challenges we have undertaken so far mine may have been an absurd extension of schoolboy arithmetic but ejolson's was insane :)

I see nothing in the least bit absurd about searching for points in 2-D space. Boringly normal in fact.
Memory in C++ is a leaky abstraction .

User avatar
John_Spikowski
Posts: 1614
Joined: Wed Apr 03, 2019 5:53 pm
Location: Anacortes, WA USA
Contact: Website Twitter

Re: Liberation through Computer Literacy

Sat Nov 02, 2019 7:50 pm

ejolson wrote:
Sat Nov 02, 2019 6:25 pm
John_Spikowski wrote:
Sat Nov 02, 2019 6:11 pm
I'm for challenges that don't require me to change my career field.
You seemed interested in the Tatami problem. I wonder if anyone will post working code for computing T(s) so those of us in the gallery can commence with comparing the expressivity of various languages while eating peanuts.
I'm willing to put some time into the Tatami challenge. No interest in mapping the universe.

Hopefully THIS will get us started.

I wish I would have stumbled upon this site for the fibo challenge.
Last edited by John_Spikowski on Sun Nov 03, 2019 3:59 am, edited 1 time in total.

ejolson
Posts: 5425
Joined: Tue Mar 18, 2014 11:47 am

Re: Liberation through Computer Literacy

Sun Nov 03, 2019 3:21 am

In order to speed the release of FidoBasic, I was convinced to let the dog developer borrow my Pi 4B. Hours later I heard a loud crunching noise followed by barking and then the sound of a broken blender.

Fearing the worst, I looked inside the dog's house. Little bits of graph paper were everywhere and Fido was frantically trying to pull out the pieces which had become stuck in the flux ports of the entropy distributor using the only tools available: the canine's canines.
John_Spikowski wrote:
Sat Nov 02, 2019 7:50 pm
Hopefully THIS will get us started.
That's a very interesting collection of diagrams. After careful comparison, it appears Fido had combined the two challenge questions and was covering spacetime with four-dimensional Tatami cylinders before the resulting folly was unceremoniously ingested into the turbo encabulator's main entropy distributor.

When questioned, the lead developer whined, I don't know anything about your homework problems. I was debugging one of the ADA unit tests for FidoBasic and something happened. Have you seen any zombies around here?
Last edited by ejolson on Sun Nov 03, 2019 7:06 pm, edited 3 times in total.

User avatar
John_Spikowski
Posts: 1614
Joined: Wed Apr 03, 2019 5:53 pm
Location: Anacortes, WA USA
Contact: Website Twitter

Re: Liberation through Computer Literacy

Sun Nov 03, 2019 3:53 am

Is FidoBasic the utopian BASIC we strive to create?

User avatar
John_Spikowski
Posts: 1614
Joined: Wed Apr 03, 2019 5:53 pm
Location: Anacortes, WA USA
Contact: Website Twitter

Re: Liberation through Computer Literacy

Sun Nov 03, 2019 4:13 am

Since @Heater doesn't seem interested in rugs, maybe he can take on this challenge if he has the balls. :D

The sequence of tetrahedral numbers, the number of balls in a triangular pyramid.

Image

The first few numbers are easy to calculate by hand:

1, 4, 10, 20, 35, 56, ...

ejolson
Posts: 5425
Joined: Tue Mar 18, 2014 11:47 am

Re: Liberation through Computer Literacy

Sun Nov 03, 2019 4:28 am

John_Spikowski wrote:
Sun Nov 03, 2019 3:53 am
Is FidoBasic the utopian BASIC we strive to create?
I think FidoBasic is a utopia mostly in the sense that it doesn't exist on Earth.

For those who have recently joined, a photograph of the turbo encabulator borrowed by the lead developer of FidoBasic appears earlier in this thread.

https://www.raspberrypi.org/forums/view ... 5#p1514565

It is also worth reiterating that the upcoming problem--whatever it is--is not a contest with only one winner, but instead a challenge in which everyone who writes a functioning program wins.

User avatar
John_Spikowski
Posts: 1614
Joined: Wed Apr 03, 2019 5:53 pm
Location: Anacortes, WA USA
Contact: Website Twitter

Re: Liberation through Computer Literacy

Sun Nov 03, 2019 4:43 am

For those who have recently joined, a photograph of the turbo encabulator borrowed by the lead developer of FidoBasic appears earlier in this thread.
Have you heard about heatsinks? :o

User avatar
John_Spikowski
Posts: 1614
Joined: Wed Apr 03, 2019 5:53 pm
Location: Anacortes, WA USA
Contact: Website Twitter

Re: Liberation through Computer Literacy

Sun Nov 03, 2019 6:14 am

Thanks for the almost instantaneous responses to both challenges.
Attachments
Thank_You.jpeg
Thank_You.jpeg (5.14 KiB) Viewed 2233 times

User avatar
bensimmo
Posts: 4638
Joined: Sun Dec 28, 2014 3:02 pm
Location: East Yorkshire

Re: Liberation through Computer Literacy

Sun Nov 03, 2019 8:13 am

John_Spikowski wrote:
Sun Nov 03, 2019 4:43 am
For those who have recently joined, a photograph of the turbo encabulator borrowed by the lead developer of FidoBasic appears earlier in this thread.
Have you heard about heatsinks? :o
On a Pi4 they are pointless, the heat spreader and design mean a fan just blowing over it works best, heat is removed close to the source.
Although I still think fans blowing straight down creates more stall points compared to an angled fan. But I have no airflow whatsits to show that.
Plus it's whatever you have to hand ;-)

jahboater
Posts: 5798
Joined: Wed Feb 04, 2015 6:38 pm
Location: West Dorset

Re: Liberation through Computer Literacy

Sun Nov 03, 2019 9:45 am

bensimmo wrote:
Sun Nov 03, 2019 8:13 am
On a Pi4 they are pointless, the heat spreader and design mean a fan just blowing over it works best, heat is removed close to the source.
If you don't want a fan (for many obvious reasons) then a heat sink is useful.

Heater
Posts: 15998
Joined: Tue Jul 17, 2012 3:02 pm

Re: Liberation through Computer Literacy

Sun Nov 03, 2019 9:47 am

If ejolson used heatsinks, if his machine did not have that impeller, it would not be a Turbo Encabulator now would it:

Image
Memory in C++ is a leaky abstraction .

User avatar
John_Spikowski
Posts: 1614
Joined: Wed Apr 03, 2019 5:53 pm
Location: Anacortes, WA USA
Contact: Website Twitter

Re: Liberation through Computer Literacy

Sun Nov 03, 2019 9:58 am

My RPi 4B 4GB kit came with 4 heatsinks.

Heater
Posts: 15998
Joined: Tue Jul 17, 2012 3:02 pm

Re: Liberation through Computer Literacy

Sun Nov 03, 2019 12:02 pm

Code: Select all

// Tatami.rs

const N_MAX: i32 = 100000000;

fn tatami(s: i32) -> i32 {
    let mut v: Vec<u8> = vec![0; N_MAX as usize];
    let n_max_sqrt: i32 = (N_MAX as f64).sqrt() as i32;

    for i in 0..n_max_sqrt {
        let mut k2: i32;
        let mut k3: i32;
        let mut k: i32 = 1;
        
        loop {
            k2 = (k * i) + k + 2;
            k3 = ((k + 1) * i) - k - 3;
            if k2 > k3 {
                break;
            } 
            if (i * k2) >= N_MAX {
                break;
            }
            for j in k2..=k3 {
                if (((i & j & 1) > 0)) || (i * j >= N_MAX) {
                    continue;
                }
                v[(i * j) as usize] += 1;
            }
            k += 1;
        }
    }
    for i in 0..N_MAX {
        if v[i as usize] == s as u8 {
            return i;
        }
    }
    assert!(false, "Should never get here!");
    s
}

fn main() {
    println!("The smallest room size s for which T(s) = 200 is {}", tatami(200));
}
Memory in C++ is a leaky abstraction .

Return to “General programming discussion”