84 points · by svenfaw · 5y ago · 67 comments
I agree that Lazarus looks more mature, however shifting to a pure C backend would actually allow them to be more portable as I believe Lazarus uses FPC which can use a LLVM backend. While LLVM supports most modern platforms, there are lots of less popular architectures that lack LLVM support.
Personally I never liked using any basic derived language for "Real work", but not sure if that was because I was a Delphi guy.
I'm skeptical that targeting C opens up any meaningful additional platform support beyond what FPC natively supports. Even relatively new and/or niche architectures like RISC-V and Xtensa appear to be supported by FPC.
(C code also isn't perfectly portable by any stretch of the imagination, so just having some random C compiler for your platform of choice and some emitted C code doesn't really guarantee that you'll end up with a compatible, working solution.)
I've never used Lazarus or FPC beyond just opening it up and playing with it in years past, but it is interesting how much that ecosystem seems to offer.
[0]: discussed in the first paragraph here: https://www.freepascal.org/
The only other project I can think of which remains relatively unknown but still manages to chug along is Tcl (supported by Flightaware and a bunch of other companies iirc).
it works.
You must be speaking of the demo version.
Gambas is a mature, current-generation OO BASIC, has a vast array of libraries, a JIT and is completely open source software.
--
The switch from FSAM to GCC slows down the compilation time. What about the compiled software speed?
Edit: the linked post is a few months old. In a later post, Fred (Laboureur) mentions an example of a +50% speed increase.
As to the “use case”, it still seems like a nice interpreted language for tiny computers based on microcontrollers and for embedded platforms in general.
Still to this day, nothing has lived up to the hype that was actually delivered by VB5 and VB6. Insane productivity.
Answering not really about 'BASIC', but "PureBasic" (it is not the abstract language but the product).
Personally:
Whenever I want to do some fast coding.
And then, in my case, basically all of my personal desktop applications and compiled shell commands. Because really, it is so pleasant to code on it.
In general:
When you want a lightweight, efficient, specialized environment to quickly get things done, in a framework that is close to low-level (memory structures etc.) and want a compiled result.
And about the "BASIC" part: the BASIC implementation of PureBasic is practically not that different from "reasoning in C" (and you can use the C libraries upon need), but the PB libraries and the IDE makes writing comfortable.
I basically never found a better alternative around this concept: light, powerful, fast, low-level, comfortable.
What do you use it for?
An example comes to mind of something pending: there is a recorded debate I should listen to, but of the three participants one is a screamer-in-the-mike and another a low-bass-baritone-in-the-distance. Loop through the audio data compressing the "hypnotist" and the "maniac" at similar amplitude levels, using different wave transformations at different times and with continuity, then compile a command for future cases: a task for your swiss-army-knife PureBasic.
In a way, there is a specific spirit behind it: you are given a computer: the most basic, natural thing you want to do it is code on it. PB represents for me "the default coding system that should have come with the OS" - as some computers had decades ago.
Things might start getting confusing in countries like India, of course, but I don't see the problem in this specific case.
I do have a problem with their homepage related to languages though: you can't get from English to Spanish or Italian on mobile without going through some weird state machine of what language makes sense to list next. There's always the option to switch to English, but I can't see Italian or Spanish from every other page.
As a non-American native speaker of English (Australian), I always feel a little bit excluded when I see an American flag used to represent my native language.
I'm not bothered by the UK flag to quite the same extent – can't deny the language originated in England (although maybe one should really use the English flag not the UK one)
But I think the ideal is to drop the flags and just call them by their native names – English, Français, Deutsch, etc. Or use ISO 639 codes – EN(G), FR(A), DE(U), etc. (Non-technical audiences might find the codes unfamiliar, but for a programming language website that shouldn't be a concern.) Nobody is going to feel excluded, even in the slightest, by either of those approaches.
Consider how that comes across for many people in Northern Ireland, among other places. Just because they speak English, it doesn’t mean they want anything to do with the English (or British) flag.
There’s some more discussion on this here:
Flag as a symbol of language - stupidity or insult?
— https://www.irt.org/articles/js173/
Don't use flags to indicate languages!
— https://www.w3.org/International/questions/qa-link-lang#flag...
Flag Problems
If the site is localized into de_DE and fr_FR then it makes perfect sense to use the country flags. In more general terms: When the site is localized into the locale of specific country/nation and that country/nation has that language as its only official language.
The official language of Great Britain is English. The various other languages spoken in the countries that are part of UK are regional/local. So using GB flag for locale en_GB is appropriate.
US flag for en_US.
Brazilian flag for pt_BR.
Portuguese flag for pt_PT.
Whereas for example Canada has both French and English as official languages right. So if you are writing for fr_CA or en_CA locales then it would be inappropriate indeed to use Canadian flag (since in that case it doesn’t say which language), and equally wrong to use French or USA flag because those flags imply fr_FR and en_US. So if either fr_CA or en_CA is among your target locales, either use text for everything instead of flags, or use flags for the locales that have them and text for fr_CA and en_CA. Likewise for other countries with multiple official languages.
Australia apparently has no official language at the federal level. So the Australian flag should not be used for en_AU locale. Instead text should be used for en_AU locale.
A lot of English text isn't clearly identifiable as belonging to a certain dialect. A single text can be a collaborative work between people using different dialects of English and so different parts of the document can end up being spelled in different ways. Spelling differences aren't always as simple as American vs British – -ize spellings are preferred over -ise in American English, yet -ize spelling is also permitted (if less common) in British English (so-called Oxford spelling). I myself speak Australian English, but in certain contexts (especially talking about computers, or at work – I work for a US-based company) I tend to Americanise my English a little bit. Australian English is neither American nor British – it tends to be closer to British mostly (e.g. petrol not gasoline), but sometimes is closer to American instead (e.g. truck not lorry), and sometimes does its own thing–e.g. Americans say bell peppers and the British say sweet peppers but Australians for some reason use the Latin name capsicum (for the mild ones, not the spicy ones) – which is not unique to Australia, New Zealand and Indian English do that too.
Anyway, we don't need to tag documents with the precise dialect of English. We all understand each other pretty well anyway.
Also, locale != language. Locale is about stuff like date formats, number formats, etc. It is rare for a non-interactive website – as opposed to an interactive webapp - to support multiple locales.
I know. But ideally you’d still be conforming to some sort of locale for each of your chosen languages.
Even static text can refer to dates. And while ISO 8601 really is the proper unambiguous way to refer to all-numeric dates we still have the British and most of rest of the world preferred way of day-month-year, whereas with American English the preferred way is month-day-year.
And likewise, if you are writing for an Australian audience then the assumed currency when you say naked “dollars” will be AUD. Whereas text for Canadian audiences will have CAD being the assumed meaning of naked “dollars”.
And that’s why I mean that there often is a locale tied even to text. But you are absolutely right that it is complicated, and that often smaller sites will be written with a global audience in mind and no clear locale. But then the rule still applies. And since you are then not using en_US nor en_GB etc, but just plain en, there is no flag for that and you’d represent it with text saying just “English”.
Yes, it's true that languages tend to be country-specific (e.g. en-US: USA, en-GB: UK, pt-BR for Brazilian Portuguese, etc), but while that's technically true, the majority of Indo-European languages that have spread widely across many nations, don't have enough differences between them to justify using a single specific country flag to represent all of them (namely, en-GB, en-CA, en-AU, and en-US, they're hardly even separate dialects).
In short: Flags identify countries, not languages.
By analogy, it's like using the Java language logo to represent all Java-derived languages (C#, Swift, Golang, Kotlin) because they're mutually-intelligible.
Swift and Go do not belong to that list.