Go to advanced search

by RichardRussell
Fri May 24, 2019 1:02 pm
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1398
Views: 96442

Re: ScriptBasic

I think it's stretching it a bit to call it "first class functions". Probably. Using the Rosetta Code definition, my program does achieve the required functionality (creating a composite function at run-time). If I understand your code it's storing and passing pointers ...
by Heater
Fri May 24, 2019 12:07 pm
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1398
Views: 96442

Re: ScriptBasic

... to call it "first class functions". If I understand your code it's storing and passing pointers to functions around. Like the C example on that Rosetta page does. If pointers are first class data types in the language that indirection makes the functions second class. Also the what about returning ...
by rpdom
Fri May 24, 2019 10:06 am
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1398
Views: 96442

Re: ScriptBasic

... in some closures and recursion and there is no chance. I had some fun, many years ago, writing a BBC BASIC program that would implement the Rosetta Code First-class functions task. As it states in the comment, strictly speaking you cannot return a function in BBC BASIC (although you could ...
by RichardRussell
Fri May 24, 2019 9:03 am
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1398
Views: 96442

Re: ScriptBasic

... in some closures and recursion and there is no chance. I had some fun, many years ago, writing a BBC BASIC program that would implement the Rosetta Code First-class functions task. As it states in the comment, strictly speaking you cannot return a function in BBC BASIC (although you could ...
by Gavinmc42
Thu May 16, 2019 7:48 am
Forum: Other programming languages
Topic: General language discussion.
Replies: 176
Views: 14790

Re: General language discussion.

Test to see if every single example works on Pi's?
http://rosettacode.org/wiki/Rosetta_Code
Start with Wumpus hunting?
by Heater
Mon May 06, 2019 2:49 pm
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1398
Views: 96442

Re: ScriptBasic

RichardRussell, There are Fibonacci solutions for many more languages at Rosetta Code. We know. Rosetta Code is a great resource. Many of them don't meet the fibo(4784969) challenge criteria. Cannot get a result in any reasonable time or cannot produce a million ...
by RichardRussell
Mon May 06, 2019 1:44 pm
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1398
Views: 96442

Re: ScriptBasic

Heater wrote:
Mon May 06, 2019 12:56 pm
Evidence for which is the collection of code samples we now have here: https://github.com/ZiCog/fibo_4784969
There are Fibonacci solutions for many more languages at Rosetta Code.
by Botspot
Thu Apr 25, 2019 10:58 pm
Forum: General discussion
Topic: Chromium Flash not displaying text properly
Replies: 2
Views: 167

Chromium Flash not displaying text properly

I run Rosetta Stone online language courses on Chromium on my Raspberry Pi. It uses flash to display the entire site. On the main page, all the text displays as vertical rectangles with an X inside (🖾) instead of the text that ...
by ejolson
Fri Apr 12, 2019 9:34 pm
Forum: Off topic discussion
Topic: Why Avoid BASIC on RPi?
Replies: 2312
Views: 162908

Re: Why Avoid BASIC on RPi?

Only 140 lines of code [for JavaScript] vs 371 for the ScriptBasic above. The x86 assembler version of MD5 on Rosetta Code results in the following comparison: $ wc md5.* 370 832 6451 md5.bas 140 1238 6181 md5.js 267 848 5515 md5.x86 777 2918 18147 total It is interesting that ...
by LdB
Mon Apr 01, 2019 12:13 pm
Forum: C/C++
Topic: CT Clamp with Raspberry Pi (AC Current Sensor)
Replies: 5
Views: 9741

Re: CT Clamp with Raspberry Pi (AC Current Sensor)

It's called Root Mean Square http://practicalphysics.org/explaining-rms-voltage-and-current.html The C and C++ code is on rosetta for n samples to return the RMS The assumption is there is a few samples per cycle and n should be exactly 1 cycle by preference. That means a number of ...
by Botspot
Fri Jan 25, 2019 2:29 pm
Forum: Troubleshooting
Topic: Problems with text in browser Chromium
Replies: 1
Views: 268

Re: Problems with text in browser Chromium

Have the same problem running Rosetta Stone online language courses on my Pi. This is the first time I've seen someone else with the same font issue. I have a feeling Adobe Flash is to blame. Does your remote desktop website use Flash?
by Gavinmc42
Tue Jan 01, 2019 10:00 am
Forum: Off topic discussion
Topic: Why Avoid BASIC on RPi?
Replies: 2312
Views: 162908

Re: Why Avoid BASIC on RPi?

Yippee Rust fibo to u128 on my Gentoo64 box is the same, big numbers next. A Go version, the Rosetta Code example needs googles help to compile Why does Go look easier to read than C++? Need to get Golang on the Pi now. package main import "fmt" // fibonacci is a function ...
by Gavinmc42
Tue Jan 01, 2019 9:29 am
Forum: Off topic discussion
Topic: Why Avoid BASIC on RPi?
Replies: 2312
Views: 162908

Re: Why Avoid BASIC on RPi?

Rosetta Code - fibo Rust example, interestingly Rust has 128bit integers on my Linux Mint Celeron box , try on Gentoo64 Pi next. use std::mem; fn main() { let mut prev = 0; // Rust needs this type hint for the checked_add ...
by Gavinmc42
Fri Dec 14, 2018 9:40 am
Forum: Off topic discussion
Topic: Why Avoid BASIC on RPi?
Replies: 2312
Views: 162908

Re: Why Avoid BASIC on RPi?

What language is going to be best for Quantum computers? Is there a language that uses other bases, Sumerian base 60 is good for Humans, but AI and future computers will use?. Trinary- Yes, No, Maybe? Trinary is pretty good for humans too, laws are black(no) and white (yes) but most of the time we l...
by RichardRussell
Tue Nov 21, 2017 12:36 pm
Forum: General discussion
Topic: Prizewinning 'Forces of Darkness' game
Replies: 13
Views: 1590

Re: Prizewinning 'Forces of Darkness' game

... Windows version and others are available for download) and they also allow it to do "almost anything": there are over 500 solutions to tasks at Rosetta Code ! BBC BASIC has historically always been a 'lean and mean' language with only essential or commonly-used functions in the core interpreter, ...
by bensimmo
Sat Jul 08, 2017 3:00 pm
Forum: Automation, sensing and robotics
Topic: Distributed Computing for BOINC
Replies: 3
Views: 6442

Re: Distributed Computing for BOINC

... but they don't interest me. What project can the Pi's run. BITD I had a few teams, in the background was seti and a few Einstein's of course, Rosetta was a main one after Find-a-Drug had reached it's target and some internet mapping one that I forget the name of. I may even be on the BOINC ...
by ejolson
Fri Dec 09, 2016 3:46 pm
Forum: General programming discussion
Topic: Making readable modifyable code.
Replies: 309
Views: 66928

Re: Making readable modifyable code.

... hangs as well. It would appear the Smalltalk code in the repository can not be viewed through a web interface. I did find some code examples on Rosetta Code but not Hunt the Wumpus. The Cholesky factorization routine FloatMatrix>>#cholesky | l | l := FloatMatrix zero: numRows. 1 to: numRows ...
by sarossell
Sat Mar 05, 2016 8:01 pm
Forum: Other programming languages
Topic: FUZE BASIC is now on Rosetta Code
Replies: 55
Views: 9313

Re: FUZE BASIC is now on Rosetta Code

Well THAT escalated quickly. ZombieBASIC. I love it. I'm a huge fan of the TV series The Walking Dead. I prefer zombies over vampires because vampire are a-holes - they do that sh** on purpose, while zombies are just mindlessly hungry and like to hang out in shopping malls for the food. You know, li...
by gordon@drogon.net
Sat Mar 05, 2016 5:56 pm
Forum: Other programming languages
Topic: FUZE BASIC is now on Rosetta Code
Replies: 55
Views: 9313

Re: FUZE BASIC is now on Rosetta Code

Sounds like somebody wants to keep their Zombies confined in a cage or some such. As we know such plans always fail. Rather like the security of computer systems don't you think? Hm... A new metric for security: "Does it pass the Zombie test?" ... However I've added some aliases into RTB :-) shambl...
by Heater
Sat Mar 05, 2016 5:53 pm
Forum: Other programming languages
Topic: FUZE BASIC is now on Rosetta Code
Replies: 55
Views: 9313

Re: FUZE BASIC is now on Rosetta Code

Sounds like somebody wants to keep their Zombies confined in a cage or some such.

As we know such plans always fail.

Rather like the security of computer systems don't you think?
by gordon@drogon.net
Sat Mar 05, 2016 5:43 pm
Forum: Other programming languages
Topic: FUZE BASIC is now on Rosetta Code
Replies: 55
Views: 9313

Re: FUZE BASIC is now on Rosetta Code

The Design Principles of the Zombie system seem be mutually exclusive: * There should be sensible guarantees against overwriting system memory, monopolising CPU cycles, and releasing malicious entities into the world. * The language must be inherently evil. Well, I guess that's Zombies for you. Inh...
by Heater
Sat Mar 05, 2016 5:32 pm
Forum: Other programming languages
Topic: FUZE BASIC is now on Rosetta Code
Replies: 55
Views: 9313

Re: FUZE BASIC is now on Rosetta Code

The Design Principles of the Zombie system seem be mutually exclusive:

* There should be sensible guarantees against overwriting system memory, monopolising CPU cycles, and releasing malicious entities into the world.

* The language must be inherently evil.
by gordon@drogon.net
Sat Mar 05, 2016 5:07 pm
Forum: Other programming languages
Topic: FUZE BASIC is now on Rosetta Code
Replies: 55
Views: 9313

Re: FUZE BASIC is now on Rosetta Code

Heater wrote:Cool. ZombieBASIC never stops, right? No matter how hard you try to kill it. More than can be said of much modern software. I think you are on to something.
See also: http://www.dangermouse.net/esoteric/zombie.html

-Gordon
by Heater
Sat Mar 05, 2016 4:56 pm
Forum: Other programming languages
Topic: FUZE BASIC is now on Rosetta Code
Replies: 55
Views: 9313

Re: FUZE BASIC is now on Rosetta Code

Cool. ZombieBASIC never stops, right? No matter how hard you try to kill it. More than can be said of much modern software. I think you are on to something.
by rpdom
Sat Mar 05, 2016 4:51 pm
Forum: Other programming languages
Topic: FUZE BASIC is now on Rosetta Code
Replies: 55
Views: 9313

Re: FUZE BASIC is now on Rosetta Code

DougieLawson wrote:You're wrong. NIML/BASIC won't need "PRINT" it will have "SAY", "WRITE" or "EMIT".
Now you've got me thinking about writing code in a ZombieBASIC

Code: Select all

10 GROAN "BRAINZZZ"
20 LURCHTO 10
:D

Go to advanced search