Linux in Excel? Sure, why not ruin both
- Reference: 1746097330
- News link: https://www.theregister.co.uk/2025/05/01/linux_in_microsoft_excel/
- Source link:
Running Excel in Linux is notoriously difficult and something Microsoft does not support. Sure, Wine can probably get some older versions running to a limited extent, but going the other way around and getting Linux to run in Excel? That takes a special kind of determination.
Microsoft Excel has been put to work in ways the company's engineers could never have imagined, which includes running Doom in a spreadsheet. In 2024, the number-crunching software was used to [1]implement a 16-bit CPU , replete with 128 KB of RAM and a 128 x 128 display.
[2]
The latest application for Excel is [3]getting Linux running .
[4]
[5]
However, anyone hoping for a worksheet with some ferociously complicated formulas will likely be disappointed. In this instance, Excel is being used to perform as little more than one of the most unsuitable command-line consoles in history. The real work is being done by a native Windows DLL, called from Visual Basic for Applications (VBA).
The VBA macro uses the [6]mini-rv32ima RISC-V emulator, which does most of the heavy lifting. The output from the emulator is dropped into cells on an Excel spreadsheet, and hey presto – Linux booting up in Excel. Or at least, appearing to.
[7]BTW Windows Subsystem for Linux officially uses Arch now
[8]Fedora 42 has the Answer, but Ubuntu's Plucky Puffin isn't far behind
[9]How to stay on Windows 10 instead of installing Linux
[10]MX Linux 23.6 brings Debian freshness, without the systemd funk
The dependence on VBA and an external DLL means that running this anywhere but on native Windows is a no-no, so no macOS or cloud versions. It's also not particularly usable. The author wrote: "The thing is evidently very buggy but I did not want to spend a lot of time on it. This was done mostly for fun."
"Evidently this was cheating since I did not rewrite the emulator in VBA or Excel formulas," the author added, "but again I wanted to run Linux in Excel and this was one way to do so."
[11]
We can't imagine how slowly Linux would boot without "cheating," nor the effort and complexity required to port what the operating system needs to run into Excel formulas. The 16-bit CPU example is hardly a speed demon (although it is a handy educational tool for anyone curious about how things work at the silicon level).
The author, who goes by the online alias NSG650, told El Reg that the project had been tested with Office 2021 LTSC. "It is basically enough to send commands and receive outputs. You won't be able to use tools like vi, but for simple commands it is fine."
NSG650 also gave credit to Enderman for assistance in implementing text input and Cnolhr for work on the RISC-V emulator.
[12]
And the future? Don't hold your breath for updates: "I don't plan on adding any more functionality to this since this was done for fun. I don't see a lot of practical use for this. Maybe someone might need Linux running in their spreadsheet, but it's unlikely."
Microsoft did not mention running Linux in its spreadsheet application during this week's "What's New in Excel" [13]post . While [14]ActiveX will be disabled by default , VBA is likely to live on for a while yet. This means that as long as users don't mind allowing a DLL to be called from a macro, they'll still be able to run Linux from Excel. ®
Get our [15]Tech Resources
[1] https://www.theregister.com/2024/02/02/16_bit_cpu_excel/
[2] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_offbeat/bootnotes&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=2&c=2aBOanuvH73AXWV_L7pWhlgAAAQM&t=ct%3Dns%26unitnum%3D2%26raptor%3Dcondor%26pos%3Dtop%26test%3D0
[3] https://github.com/NSG650/LinuxInExcel
[4] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_offbeat/bootnotes&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=4&c=44aBOanuvH73AXWV_L7pWhlgAAAQM&t=ct%3Dns%26unitnum%3D4%26raptor%3Dfalcon%26pos%3Dmid%26test%3D0
[5] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_offbeat/bootnotes&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=3&c=33aBOanuvH73AXWV_L7pWhlgAAAQM&t=ct%3Dns%26unitnum%3D3%26raptor%3Deagle%26pos%3Dmid%26test%3D0
[6] https://github.com/cnlohr/mini-rv32ima
[7] https://www.theregister.com/2025/04/30/official_arch_on_wsl2/
[8] https://www.theregister.com/2025/04/24/ubuntu_fedora_spring/
[9] https://www.theregister.com/2025/04/22/windows_10_ltsc/
[10] https://www.theregister.com/2025/04/17/mx_linux_236/
[11] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_offbeat/bootnotes&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=4&c=44aBOanuvH73AXWV_L7pWhlgAAAQM&t=ct%3Dns%26unitnum%3D4%26raptor%3Dfalcon%26pos%3Dmid%26test%3D0
[12] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_offbeat/bootnotes&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=3&c=33aBOanuvH73AXWV_L7pWhlgAAAQM&t=ct%3Dns%26unitnum%3D3%26raptor%3Deagle%26pos%3Dmid%26test%3D0
[13] https://techcommunity.microsoft.com/blog/excelblog/whats-new-in-excel-april-2025/4399237
[14] https://www.theregister.com/2025/04/15/activex_microsoft_365/
[15] https://whitepapers.theregister.com/
Re: VBA
The first time I saw Excel it launched from DOS and brought in its own private Windows 2 runtime.
Yep, definitely disappointing that this effort doesn't emulate a system in VBA, which is surely possible, though there are definitely hoops to negotiate, like the lack of unsigned integers and bit-shifting operations. I wonder which is the simplest Linux-compatible ISA to emulate?
-A.
The idea of...
a single humungous excel formula (function)† the encompasses the Linux virtual machine (mostly the syscall interface I would imagine) is magnificently insane. In size I imagine would have to be very many orders of magnitude greater than the largest LLMs.
Even the less Olympian approach of emulating the execution of a Linux kernel in excel using a minimal processor (also emulated) demonstrates if not a limited grip on sanity, a need to get out more.
† Probably the same problem as specifying the denotational semantics of a Linux kernel.
Re: The idea of...
I imagine it would take an emulation of the simplest ISA that Linux supports (RISC V perhaps ?) alongside with memory and non-volatile storage.
No, I do not want to troubleshoot that spreadsheet either. In fact I do not want to see it. It's for the best if it's never created.
Re: The idea of...
I am left wondering at what point elephants standing on the back of turtles is involved in this Russian-doll-like chicanery
Pigeon Linux
I'm holding out for someone to implement a world wide flying pigeon CPU where messages are sent, received and interpreted by pigeons.
Oh, wait,... a message passing operating system... that must be Hurd hurting the flying pigeons. At least they both will finish in about the same time.
Re: Pigeon Linux
Something similar to this on the CPU scale?
https://www.rfc-editor.org/rfc/rfc2549
Re: Pigeon Linux
Yes, that was the thought.
But QoS is not required on simple CPUs pigeons, so using RFC1149 as a basis will suffice (as [1]BLUG showed ).
[1] https://blug.linux.no/rfc1149/
Linux everywhere
IIRC, Linus stated linux' goal as total world domination.
Running linux inside Excel is another step to world domination!
"You won't be able to use tools like vi, but for simple commands it is fine."
How long until we get vi in Excel?
Some men...
...just want to watch the world burn.
Re: Some men...
I want to see gamma rays, I want to hear X-rays, and I want to smell dark matter.
NeXT STep
Next step is to run Wine on that Linux and run Excel from within it.
VBA
If you can emulate ARM 1 in 808 lines of BBC Basic, why not?