News for hackers. Stuff that matters.
Re:The QNX Demo Disk: a full xNix OS, with GUI and browser, ... by ducktective on Friday October 07, 2022 @02:36PM (#33125254)
1- What's the FOSS alternative that is as good as QNX nowadays? FreeRTOS, NuttX, Zephyr etc are used for MCUs not general purpose computation AFAIK

2- What tech stack (language) you used for those challenges?

3- Your idea on Lisp (for these applications)?

Re:The QNX Demo Disk: a full xNix OS, with GUI and browser, ... by Animats on Friday October 07, 2022 @02:46PM (#33125359)
1. Nothing. Someone was writing a QNX-type kernel in Rust. What happened to that? There's L4, but it's too low-level. It's more of a hypervisor. People usually run another OS, usually a stripped-down Linux, on top of L4. QNX offers a POSIX API, so you can run applications directly.

2. C++. Here's the source code. [1]

3. No.

[1] https://github.com/John-Nagle/Overbot/

Re:The QNX Demo Disk: a full xNix OS, with GUI and browser, ... by snvzz on Friday October 07, 2022 @02:58PM (#33125489)
>People usually run another OS, usually a stripped-down Linux, on top of L4.

Look into Genode.

Re:The QNX Demo Disk: a full xNix OS, with GUI and browser, ... by MonkeyClub on Friday October 07, 2022 @05:10PM (#33126901)
> 3. No.

Why? No hope for real RT? (Or otherwise more generally due to the GC?)

Re:The QNX Demo Disk: a full xNix OS, with GUI and browser, ... by snvzz on Friday October 07, 2022 @02:57PM (#33125471)
>What's the FOSS alternative that is as good as QNX nowadays? FreeRTOS, NuttX, Zephyr etc are used for MCUs not general purpose computation AFAIK

SeL4 with CAmkES, or Genode.

Re:The QNX Demo Disk: a full xNix OS, with GUI and browser, ... by jonny_eh on Friday October 07, 2022 @05:14PM (#33126941)
How about WindRiver Linux? https://www.windriver.com/products/linux
Re:The QNX Demo Disk: a full xNix OS, with GUI and browser, ... by snvzz on Friday October 07, 2022 @05:35PM (#33127147)
Excluded, because it's Linux, with all its issues.

Huge TCB being the main one.

Re:The QNX Demo Disk: a full xNix OS, with GUI and browser, ... by andrekandre on Friday October 07, 2022 @07:57PM (#33128442)
tcb... thread control block, aka task_struct?
Re:The QNX Demo Disk: a full xNix OS, with GUI and browser, ... by snvzz on Friday October 07, 2022 @08:10PM (#33128515)
Trusted Computing Base.

i.e. The code that needs to be trusted. For Linux, it includes the whole kernel, and it is huge.

Re:The QNX Demo Disk: a full xNix OS, with GUI and browser, ... by andrekandre on Saturday October 08, 2022 @06:23AM (#33131183)
i see, thanks for the clarification!
Re:The QNX Demo Disk: a full xNix OS, with GUI and browser, ... by mise_en_place on Friday October 07, 2022 @03:51PM (#33126117)
Dunno if it’s an alternative but Linux had RT_PREEMPT and you can build a kernel that’s fully preemptable.
Re:The QNX Demo Disk: a full xNix OS, with GUI and browser, ... by PaulDavisThe1st on Friday October 07, 2022 @04:36PM (#33126589)
It's good, but ... there's "fully preemptable" and there's "fully preemptable". QNX is one of those, RT_PREEMPT kernels are the other.
Re:The QNX Demo Disk: a full xNix OS, with GUI and browser, ... by burstmode on Saturday October 08, 2022 @02:05AM (#33130183)
RT_PREEMT has nothing to do with "real" realtime. You never know WHEN the preemtion is gonna happen. Might be in 20ms, might be in 200.
Re:The QNX Demo Disk: a full xNix OS, with GUI and browser, ... by sph on Saturday October 08, 2022 @04:46AM (#33130806)
I just remembered that I've been running my desktop machine with `preempt=full` for a while now. I wonder why it's not the default for consumer distros yet.
Re:The QNX Demo Disk: a full xNix OS, with GUI and browser, ... by beagle3 on Friday October 07, 2022 @06:06PM (#33127449)
QNX was a true microkernel architecture that worked, and worked well. The basic building block was called IIRC Send/Receive/Reply: Every "system" call looked like a regular function call, but would "Send" a message to a different process, and (usually) suspend the caller; The other process would "Receive", do whatever was requested, and "Reply", at which point control went back (with the response) to the calling process. IIRC it was also possibly to do async calls, but in that case the other process would call ("Send") the response back, rather than "Reply". I might be confusing this with another system though.

device drivers weren't privileged - they were just another process you called into, and could be restarted in the case of a fault (rather than kernel panic or blue screen).

A system that doesn't provide this is not an alternative to QNX; It's just another operating system (which are all, in some ways, alternative to each other and thus QNX, but ...)

Re:The QNX Demo Disk: a full xNix OS, with GUI and browser, ... by pyinstallwoes on Friday October 07, 2022 @11:55PM (#33129678)
Sounds like Erlang !
Re:The QNX Demo Disk: a full xNix OS, with GUI and browser, ... by Matthias247 on Friday October 07, 2022 @11:39PM (#33129599)
In automotive infotainment systems, where QNX was used a lot in the past, it mostly had been replaced with combinations of Linux or Android on the non-realtime critical systems, and smaller microcontrollers which run realtime OS (OSEK and autosar derivates). The latter are usually not open source.
Re:The QNX Demo Disk: a full xNix OS, with GUI and browser, ... by pjmlp on Saturday October 08, 2022 @09:18AM (#33132034)
QNX is NVidia's deployment target OS with DRIVE OS for critical systems, with Linux used for development.
Re:The QNX Demo Disk: a full xNix OS, with GUI and browser, ... by kevin_thibedeau on Saturday October 08, 2022 @12:22AM (#33129771)
Minix 3 is closest to "as good as" minus the realtime support.