Search found 205 matches

by Richard Russell
Wed Apr 04, 2018 5:48 pm
Forum: software & utilities for the pc, mac or unix
Topic: iOS edition of BBC BASIC announced
Replies: 38
Views: 1359

Re: iOS edition of BBC BASIC announced

If memory serves — though I'm not presently an iOS developer, and these things change all the time — TestFlight releases last for a fixed 60 days, whereas ad hoc builds last until the expiration of your current certificate, which is indeed usually further away That's my understanding too, and since...
by Richard Russell
Sat Mar 31, 2018 5:55 pm
Forum: software & utilities for the pc, mac or unix
Topic: iOS edition of BBC BASIC announced
Replies: 38
Views: 1359

Re: iOS edition of BBC BASIC announced

You seem already to support UIFileSharingEnabled; you should also consider LSSupportsOpeningDocumentsInPlace. I tried that today. The effect is indeed useful, but sadly it breaks the Custom URL Scheme (which BBC BASIC uses to allow a home-screen shortcut to run a specific BASIC program). This is to...
by Richard Russell
Fri Mar 30, 2018 11:37 am
Forum: software & utilities for the pc, mac or unix
Topic: BBC BASIC for SDL 2.0 v0.19a released
Replies: 21
Views: 952

Re: BBC BASIC for SDL 2.0 v0.19a released

pixelblip wrote:I am trying to program LEDs in BBC Basic.......fun stuff.

You need the supplied 'gpiolib.bbc' library for that. The library itself should contain sufficient instructions to get you started.

Richard.
by Richard Russell
Fri Mar 30, 2018 8:30 am
Forum: software & utilities for the pc, mac or unix
Topic: BBC BASIC for SDL 2.0 v0.19a released
Replies: 21
Views: 952

Re: BBC BASIC for SDL 2.0 v0.19a released

a basic window with 'Choose IDE' at the top of it and 'File or path not found' in the window. I would guess from that symptom that when you extracted the BBC BASIC zip file it didn't create the correct directory hierarchy; perhaps you accidentally told 'unzip' to use the 'do not make directories' o...
by Richard Russell
Mon Mar 26, 2018 2:24 pm
Forum: software & utilities for the pc, mac or unix
Topic: ART 4 Windows
Replies: 9
Views: 758

Re: ART 4 Windows

Happy for you to make it work for iOS and Android, would be happy to integrate any changes you make with my source so others could use it. I had assumed that the main necessary change would be to disable the 'save as PNG' capability, since that's not easy to do in a cross-platform way, but looking ...
by Richard Russell
Sun Mar 25, 2018 10:54 pm
Forum: software & utilities for the pc, mac or unix
Topic: ART 4 Windows
Replies: 9
Views: 758

Re: ART 4 Windows

I've shifted development over to Purebasic Can you target Android and iOS with that? The post to which I replied was asking about porting your BBC BASIC program to Android (which I think should be pretty straightforward - with the exception of saving to PNG - now you've made the missing bitmap avai...
by Richard Russell
Sat Mar 24, 2018 11:14 am
Forum: software & utilities for the pc, mac or unix
Topic: ART 4 Windows
Replies: 9
Views: 758

Re: ART 4 Windows

File or path not found at line 0 It appears to be looking for a file TOOLSTRIP.BMP which isn't in the Zip? Incidentally I can't even run the original version on my PC, because my laptop screen is only 720 pixels high (after Windows' automatic DPI scaling) and the program attempts to create a window...
by Richard Russell
Fri Mar 23, 2018 6:04 pm
Forum: software & utilities for the pc, mac or unix
Topic: iOS edition of BBC BASIC announced
Replies: 38
Views: 1359

Re: iOS edition of BBC BASIC announced

did you consider just using TestFlight for distribution? The disadvantage is that it's a similar review process as for the App Store proper The limit of 100 devices of each type for 'ad hoc' distribution is likely to be far greater than the demand (it certainly is at the moment) and the administrat...
by Richard Russell
Fri Mar 16, 2018 6:14 pm
Forum: software & utilities for the pc, mac or unix
Topic: iOS edition of BBC BASIC announced
Replies: 38
Views: 1359

Re: iOS edition of BBC BASIC announced

At first glance, there's no way to coerce an area of memory into being treated as a structure, though? You can, otherwise structures would be considerably less useful, but it does mean using an indirection operator. To make it slightly nicer, there's a PROC_setptr in the supplied library 'dlglib.bb...
by Richard Russell
Fri Mar 16, 2018 9:39 am
Forum: software & utilities for the pc, mac or unix
Topic: iOS edition of BBC BASIC announced
Replies: 38
Views: 1359

Re: iOS edition of BBC BASIC announced

How, on a non-Beeb platform, do you even discover the address of an integer variable? address_of_variable = ^variable This is supported, and has been for a long time, in BB4W (Windows), BBCSDL (Windows, Linux, Mac OS, Raspberry Pi, Android, iOS) and BASICPlus (RISC OS). Not in any variant of 6502 B...
by Richard Russell
Thu Mar 15, 2018 5:44 pm
Forum: software & utilities for the pc, mac or unix
Topic: iOS edition of BBC BASIC announced
Replies: 38
Views: 1359

Re: iOS edition of BBC BASIC announced

That's not remotely fantasy. Language runtime implementation is not one of my more major CV items, but I have spent a few years doing it, one way or another. The "fantasy" to which I was referring was that anybody would have the time, inclination and knowledge to re-write (then test and d...
by Richard Russell
Thu Mar 15, 2018 2:04 pm
Forum: software & utilities for the pc, mac or unix
Topic: iOS edition of BBC BASIC announced
Replies: 38
Views: 1359

Re: iOS edition of BBC BASIC announced

Is there any evidence that they'll span the address space at byte resolution? I didn't specifically address this question in my earlier reply, but I think it's well known that BBC BASIC (unlike some other BASICs) has always had the property that floating-point numbers have at least as much precisio...
by Richard Russell
Thu Mar 15, 2018 12:26 pm
Forum: software & utilities for the pc, mac or unix
Topic: iOS edition of BBC BASIC announced
Replies: 38
Views: 1359

Re: iOS edition of BBC BASIC announced

What precision are the floating-point numbers? Limited by the ARM CPU to 64-bit 'doubles'; on x86 versions it's 80-bits ('long double'). And doesn't that make a mockery of attempts to write portable code? 'Portable' code is not an issue: anything that will run in a 64-bit environment should run in ...
by Richard Russell
Wed Mar 14, 2018 11:33 pm
Forum: software & utilities for the pc, mac or unix
Topic: iOS edition of BBC BASIC announced
Replies: 38
Views: 1359

Re: iOS edition of BBC BASIC announced

Now, how do I import and run a program I have written in BBC BASIC (using BeebEm) Something else to consider are the implications of BBC BASIC for iOS being '64-bit'. For example a simple program like this will work perfectly: 10 DIM p 4 20 !p = 123456 30 PRINT !p but if you use p% instead of p: 10...
by Richard Russell
Tue Mar 13, 2018 4:48 pm
Forum: software & utilities for the pc, mac or unix
Topic: iOS edition of BBC BASIC announced
Replies: 38
Views: 1359

Re: iOS edition of BBC BASIC announced

how do I import and run a program I have written in BBC BASIC using BeebEm Is this program in Acorn tokenised format? If so you'll need to convert it to a .bbc file, most easily by loading and re-saving in BB4W (the trial version is fine for this). There's not enough demand for importing Acorn-form...
by Richard Russell
Tue Mar 13, 2018 1:23 pm
Forum: software & utilities for the pc, mac or unix
Topic: iOS edition of BBC BASIC announced
Replies: 38
Views: 1359

Re: iOS edition of BBC BASIC announced

reconfigure BBC BASIC so that @usr$ points directly to the Documents folder OK, I've made that change. I've used a slightly risky approach to locating the Documents folder but hopefully it will be OK. Now, @usr$ is the 'shared' folder, so you can easily copy files into or out of BBC BASIC using iTu...
by Richard Russell
Tue Mar 13, 2018 9:30 am
Forum: software & utilities for the pc, mac or unix
Topic: iOS edition of BBC BASIC announced
Replies: 38
Views: 1359

Re: iOS edition of BBC BASIC announced

if Codea can do it, why can't BBC BASIC? According to what I can find at their website, Codea can't create an app on the iOS device, it can only prototype it. The final app is built in Xcode on a Mac in the normal way. I don't think it would be too difficult to do the same for BBC BASIC, but it wou...
by Richard Russell
Mon Mar 12, 2018 11:28 pm
Forum: software & utilities for the pc, mac or unix
Topic: iOS edition of BBC BASIC announced
Replies: 38
Views: 1359

Re: iOS edition of BBC BASIC announced

I need to enable 'file sharing' in my BBC BASIC app Right, getting there! I've now enabled file sharing in my app, and I can see the Documents folder both from BBC BASIC and from outside via a USB link (in my case using iMazing). This is allowing me to copy programs in and out, but it's a bit incon...
by Richard Russell
Mon Mar 12, 2018 10:47 pm
Forum: software & utilities for the pc, mac or unix
Topic: iOS edition of BBC BASIC announced
Replies: 38
Views: 1359

Re: iOS edition of BBC BASIC announced

I have not tried it from my Mac yet but pretty sure it is not accessible. From memory you can basically only see the images folder. Some research suggests that I need to enable 'file sharing' in my BBC BASIC app before its files can be seen by iTunes (or a file manager app like iMazing ). I'll expe...
by Richard Russell
Mon Mar 12, 2018 10:44 pm
Forum: software & utilities for the pc, mac or unix
Topic: iOS edition of BBC BASIC announced
Replies: 38
Views: 1359

Re: iOS edition of BBC BASIC announced

You can copy / paste but I suspect there may be some tokenising confusion? You can't (successfully) paste a tokenised program, any more than you can in Windows! Transferring BASIC code via the clipboard assumes that it is in plain text format (or at least UTF-8). Edit: Looking more carefully, the i...
by Richard Russell
Mon Mar 12, 2018 12:40 pm
Forum: software & utilities for the pc, mac or unix
Topic: iOS edition of BBC BASIC announced
Replies: 38
Views: 1359

Re: iOS edition of BBC BASIC announced

I was assuming that at some stage you were going to release it as an app on the App Store. No more so than it being my intention to release the Android edition on the Google Play store! If it was easy then of course doing so would be a no-brainer, but knowing just how determined both Google and App...
by Richard Russell
Mon Mar 12, 2018 12:01 am
Forum: software & utilities for the pc, mac or unix
Topic: iOS edition of BBC BASIC announced
Replies: 38
Views: 1359

Re: iOS edition of BBC BASIC announced

By code, I mean any and all code. This may include BASIC commands and functions as a program You are apparently talking not about technical restrictions that affect BBC BASIC (such as the inability to execute code in memory that I discussed) but rather administrative rules that determine whether an...
by Richard Russell
Sun Mar 11, 2018 7:44 pm
Forum: software & utilities for the pc, mac or unix
Topic: iOS edition of BBC BASIC announced
Replies: 38
Views: 1359

Re: iOS edition of BBC BASIC announced

I was of the understanding that any external 'code' (not contained in the app) is unacceptable to Apple. That's not so much the issue that is relevant to BBC BASIC. What matters is that you cannot allocate 'executable' memory (technically, if you specify the PROT_EXEC flag to mmap it is ignored) so...
by Richard Russell
Sun Mar 11, 2018 6:35 pm
Forum: software & utilities for the pc, mac or unix
Topic: iOS edition of BBC BASIC announced
Replies: 38
Views: 1359

Re: iOS edition of BBC BASIC announced

Are you able to load and save programs? Import / export etc.? You can certainly load and save programs or data files from/to internal memory, but I'm not familiar enough with iOS to know how easy it is to access that memory from 'outside'. With Android you can generally connect the device to a PC u...
by Richard Russell
Sun Mar 11, 2018 11:43 am
Forum: software & utilities for the pc, mac or unix
Topic: iOS edition of BBC BASIC announced
Replies: 38
Views: 1359

iOS edition of BBC BASIC announced

A brand new iOS edition of BBC BASIC is now available for beta-testing. This is a 64-bit app (as is mandated by Apple) so will run only on devices with a 64-bit CPU. In practice this means those devices that can run iOS 11, i.e. the iPod 6th generation, iPhone 5S or later, iPad Air or later, or iPad...
by Richard Russell
Thu Feb 08, 2018 2:55 pm
Forum: off-topic
Topic: Why did CISC prevail?
Replies: 21
Views: 835

Re: Why did CISC prevail?

memory access is 200x slower than register accesses but you have lots of it so you don't need worry so much about instruction compactness. On-chip caches are relatively small however so 'instruction compactness' is still relevant, hence the Thumb instruction set (although it's noteworthy that there...
by Richard Russell
Thu Feb 08, 2018 11:47 am
Forum: off-topic
Topic: Why did CISC prevail?
Replies: 21
Views: 835

Re: Why did CISC prevail?

My understanding was that the branch prediction and speculative evaluation in 64-bit ARM CPUs effectively makes the conditional instruction execution redundant I suppose the challenge for ARM is how to maintain its edge in terms of power efficiency, which is presumably why it has captured most of t...
by Richard Russell
Thu Feb 08, 2018 9:54 am
Forum: off-topic
Topic: Why did CISC prevail?
Replies: 21
Views: 835

Re: Why did CISC prevail?

Something else I find interesting is that the 64-bit ARM architecture has ditched one of the key features of the original 32-bit instruction set: that every instruction can be conditional. There are just a few conditional instructions left in the 64-bit set, such as conditional jumps. This is much m...
by Richard Russell
Sun Jan 28, 2018 5:16 pm
Forum: off-topic
Topic: 40
Replies: 27
Views: 1140

Re: 40

crj wrote:a BBC-style Bluetooth keyboard would be an awesome thing.

The keyboard is the one thing that virtually everybody agrees on, and making it Bluetooth keeps all the options open. It could be paired with a Raspberry Pi, or with custom hardware, or with a mobile device.

Richard.
by Richard Russell
Sat Jan 27, 2018 10:31 am
Forum: off-topic
Topic: 40
Replies: 27
Views: 1140

Re: 40

The one thing I love about old computers is that you switch them on and the come on instantly! But then so do 'always on' smart devices such as mobile phones and tablets. I'm not too concerned about start-up time if you only very rarely need to reboot the device anyway. I use BBC BASIC on my phone ...