News for hackers. Stuff that matters.
Re:Excel-Virtual-Machine: C Compiler which targets Excel by rodikana on Tuesday November 30, 2021 @10:00PM (#29400163)
Why? Because we can that's why!
Re:Excel-Virtual-Machine: C Compiler which targets Excel by unnah on Wednesday December 01, 2021 @06:33AM (#29402770)
It could be useful if there was a C program you would like to run, but the only tool available was Excel. Maybe strict IT admins had disabled the ability to run anything but Office, and even VBA macros were disabled. Although in that scenario it would be better if the compiler was written in C and could bootstrap itself.
Re:Excel-Virtual-Machine: C Compiler which targets Excel by IncRnd on Tuesday November 30, 2021 @10:02PM (#29400175)
I think we need a compiler written in excel!
Re:Excel-Virtual-Machine: C Compiler which targets Excel by im_down_w_otp on Tuesday November 30, 2021 @10:23PM (#29400292)
Sheets for modules. A column for each function. A row for each line of code. I weirdly would love to see this.
Re:Excel-Virtual-Machine: C Compiler which targets Excel by mikaraento on Wednesday December 01, 2021 @04:53AM (#29402281)
That is pretty much how macros worked in Excel 4.
Re:Excel-Virtual-Machine: C Compiler which targets Excel by kitd on Wednesday December 01, 2021 @02:31AM (#29401578)
I once wrote an x86 assembler in Lotus 123.
Re:Excel-Virtual-Machine: C Compiler which targets Excel by exikyut on Wednesday December 01, 2021 @02:32AM (#29401587)
[Need for citation intensifies]
Re:Excel-Virtual-Machine: C Compiler which targets Excel by Banana699 on Wednesday December 01, 2021 @01:56PM (#29407634)
I don't mean to put down OP but isn't it kinda straight forward since assembly is just a 1:1 correspondence with machine instructions? simply pasting the assembly program into a column then looking up each mnemonic in an association table linking each mnemonic with it's machine representation and writing the result into a new column would work. The Labels->Addresses mapping is another lookup but over the program column itself, looking up the row where the label is defined and using that as the offset from the start address of the program. An assembler is just a fancy string processor, Excel is mighty good at string processing.

What I would bet a respectable sum on is that you can't parse/process/interpret even the simplest recursive languages (e.g. arithemtic, Expr ::= Expr + Expr | NUMBER) from pure Excel. Forget expressing the algorithm, there isn't even a suitable data structure to iterate over.

Re:Excel-Virtual-Machine: C Compiler which targets Excel by kitd on Wednesday December 01, 2021 @04:57AM (#29402312)
Apologies, this was over 30 years ago!

IIRC it made extensive use of lookup tables, both building them and being driven by them.

It wasn't a complete implementation, but it proved the theory and scratched an itch.

Re:Excel-Virtual-Machine: C Compiler which targets Excel by exikyut on Thursday December 02, 2021 @06:19AM (#29414791)
That's really cool :) and makes perfect sense.

I can see what you mean about it scratching an itch. Definitely piqued my interest!

(Varying "citation needed" didn't quite convey genuine curiosity the way I thought it would.)

Re:Excel-Virtual-Machine: C Compiler which targets Excel by mcbuilder on Tuesday November 30, 2021 @10:43PM (#29400412)
Yes, but can it run DOOM?
Re:Excel-Virtual-Machine: C Compiler which targets Excel by IncRnd on Tuesday November 30, 2021 @11:12PM (#29400579)
That's always the question!

Here is a video of a doom-alike in excel, explained by someone with a bird on his head. He's not clippy, but a real person with a bird on his head. [1]

Here is a video displaying a walk-through of the Excel easter egg that showed the Hall of Tortured Souls! [2]

[1] https://www.youtube.com/watch?v=s105jek4WUI

[2] https://www.youtube.com/watch?v=WGqD-J_pRvs

Re:Excel-Virtual-Machine: C Compiler which targets Excel by fortran77 on Wednesday December 01, 2021 @09:35AM (#29403955)
The bird moves to his hand halfway through.
Re:Excel-Virtual-Machine: C Compiler which targets Excel by IncRnd on Wednesday December 01, 2021 @04:29PM (#29409368)
Thankfully, the bird's location doesn't affect the graphical rendering power of Excel.
Re:Excel-Virtual-Machine: C Compiler which targets Excel by notinty on Tuesday November 30, 2021 @11:57PM (#29400840)
[fixed]
Re:Excel-Virtual-Machine: C Compiler which targets Excel by IncRnd on Wednesday December 01, 2021 @12:24AM (#29400982)
Thanks!
Re:Excel-Virtual-Machine: C Compiler which targets Excel by tonyedgecombe on Wednesday December 01, 2021 @01:57AM (#29401399)
Excel 95 contained an Easter egg which was a doom like game.
Re:Excel-Virtual-Machine: C Compiler which targets Excel by laumars on Wednesday December 01, 2021 @02:32AM (#29401588)
It was 3D but it wasn’t really Doom like. It reminded me more of Magic Carpet.

There was a Windows 95 screen saver that was Doom like though.

Re:Excel-Virtual-Machine: C Compiler which targets Excel by DHowett on Wednesday December 01, 2021 @09:21AM (#29403817)
Excel 98 had an Easter egg which was like Magic Carpet! If I recall correctly, you fly over a twisted purple and orange landscape while an obelisk emits the credits.

95 had the “Hall of Tortured Souls”—a 2.5D first-person walker—which was more Doomlike.

Re:Excel-Virtual-Machine: C Compiler which targets Excel by laumars on Thursday December 02, 2021 @02:35AM (#29413495)
Oh yeah. I completely forgot about that one

https://youtu.be/kK0M74E8PS4

Re:Excel-Virtual-Machine: C Compiler which targets Excel by Narishma on Wednesday December 01, 2021 @11:21AM (#29405393)
There was no Excel 98.
Re:Excel-Virtual-Machine: C Compiler which targets Excel by mrguyorama on Wednesday December 01, 2021 @03:53PM (#29408995)
They mean the excel included in Office `97. That's the disk I'm holding in my hand and that's the version I experienced the weird flying easter egg.
Re:Excel-Virtual-Machine: C Compiler which targets Excel by DHowett on Wednesday December 01, 2021 @09:10PM (#29411695)
Whoops! Yes, thanks.
Re:Excel-Virtual-Machine: C Compiler which targets Excel by tonyedgecombe on Wednesday December 01, 2021 @12:20PM (#29406399)
There was on the Mac.