So, I think I might be a nerd.
@SDF.ORG is running a BBS called bitzone. On this BBS they have a door game called LORD (League of the Rare Dragoon (not to be confused with Legend of the Red Dragon, of which it is clearly a knock-off)).
The fact that I'm playing this game in the first place is kind of nerdy, but wait, there's more.
In said game you have a character with various stats. One of these stats is "charm", which seems to get you discounts in the shops. Unfortunately, there's nothing to say exactly how this relationship works. So I've decided to try to reverse-engineer it with #emacs #org-mode.
I've created a table to track my purchases. It tracks my charm at the time of purchase, the list price for the item, and the price I actually paid. There's also an additional colum that calculates the actual discount, but that's trivial.
Anyhoot, I'm adding some code to this file that reads the values in the table and computes the simplest polynomial function that satisfies the equation:
$$price_{actual}=f(charm,price_{list})$$
This is done with the aim of predicting how much I'd actually spend on an item before actually buying it. It of course assumes that the equation being used is a polynomial equation, but I'm hoping it'll at least be able to approximate with a large enough set of data points.
Am I doing this because it's reasonable?
No.
I'm doing it because it's an interesting challenge... and I'm a nerd.
CC: @tob
Plan A to Y
in reply to Alice Averlong🏳️⚧️ • • •now my brain is stuck on the idea of next-day sandwich delivery
"Your sandwich will arrive sometime tomorrow between 2-5pm and does not require a signature"
Jonathan Lamothe likes this.
Alda Vigdís
in reply to Plan A to Y • • •Jonathan Lamothe likes this.
BigHeadMode
in reply to Plan A to Y • • •@Plan_A_to_Y
What kinda f----ing McDonald's has a message? Whaddu-I say I want a burger tomorrow? What the--?
youtube.com/watch?v=KwXeFDroKy…
mcdonalds answering machine
ROID (YouTube)David Zaslavsky
in reply to Alice Averlong🏳️⚧️ • • •Luna Lactea
in reply to David Zaslavsky • • •The Witch of Crow Briar
in reply to David Zaslavsky • • •The Witch of Crow Briar
in reply to The Witch of Crow Briar • • •Alice Averlong🏳️⚧️
in reply to Alice Averlong🏳️⚧️ • • •it's actually way, way worse than I implied, and this isn't any kind of joke
You can get SIX computers for the price of a nice sub sandwich delivered to your door
Justin To #НетВойне reshared this.
jordan
in reply to Alice Averlong🏳️⚧️ • • •Alice Averlong🏳️⚧️
in reply to jordan • • •The cat who walks thru walls
in reply to jordan • • •mDuo13 📖
in reply to jordan • • •Alien software, human hardware
in reply to Alice Averlong🏳️⚧️ • • •I kind of like though that i can buy a 6-pack of tiny computers at all.
when i was 10, i built a handheld computer from 2 wood pieces and painted buttons and a display on it.
kind of gone a long way since then.
Daniel V.
in reply to Alice Averlong🏳️⚧️ • • •linear cannon
in reply to Alice Averlong🏳️⚧️ • • •as i was pointing out the other day, i can order two of these devices that would put a mid-2000s touchscreen PDA to shame and it costs me $25.
i just have to bring my own operating system and unfortunately the ones for this class of device all died
(which is why i'm sitting here making my own)
evening bx
in reply to linear cannon • • •linear cannon
in reply to evening bx • • •it is an ESP32 board that has no brand name on it but is resold under the name of numerous vendors, documentation here lcdwiki.com/2.8inch_ESP32-32E_…
i also am developing with the LilyGo T-Deck Plus as a target, which is conveniently available at my local MicroCenter
2.8inch ESP32-32E Display - LCD wiki
www.lcdwiki.comlinear cannon
in reply to linear cannon • • •2.8” 240x320 ESP32 LCD Display | With WiFi and BLE | IoT & Embedded Projects
elecrow.openhardwareAlice Averlong🏳️⚧️
in reply to linear cannon • • •evening bx
in reply to linear cannon • • •linear cannon
in reply to evening bx • • •yes! i am missing things like that because all the stuff that exists and is usable now is either Android or some weird custom thing with vendor lock-in, and way too big of a computer in any case.
that's why i am making software for things like these devices for myself, and in the hope it will be useful for others
linear cannon
in reply to linear cannon • • •i have visions of running a clock app with all the alarm and stopwatch functionality you might want, a simple calendar app (probably with syncing), a simple email app, notes (drawing and text), calculator (maybe even graphing calculator eventually), and a terminal app to access the shell functionality on the RTOS i'm building this atop
and i'm working on loadable apps with an SDK. i plan to create a port of Quake as a demo of the capabilities of it, for heavier devices with the RAM for it (like the T-Deck). DOOM should also be possible on devices without lots of RAM
evening bx
in reply to linear cannon • • •linear cannon
in reply to evening bx • • •i am actually using Zephyr as the RTOS/kernel, basically as a pre-made microkernel that already makes a lot of the same decisions i would have anyway (plus, i use it at work too).
but it doesn't have all of the things i need. it doesn't have "apps" in the conventional sense, it is designed around an assumption that your firmware contains exactly one "app" that does everything. which works for 99% of commercial products that need to do precisely one thing
so i'm just writing all of my "OS middleware" to handle loading and managing user-facing apps, switching between them, and coordinating their use of resources like the display, etc
evening bx
in reply to linear cannon • • •linear cannon
in reply to evening bx • • •yes, and Zephyr supports a lot of other microcontrollers too. my firmware image builds without source changes for some RISC-V and ARM based microcontrollers as well as the Xtensa-based ESP32s
there's some missing functionality though, like dual-core SMP support (you can do AMP, with each core running a different firmware image), and there is currently no driver for high-speed MIPI-DBI displays using the LCD peripheral. but other than that most things work fine
evening bx
in reply to linear cannon • • •@linear wait, so does AMP mean gur second core loads off a different parition / regeon of flash???
or does gur first core load code into ram and then start gur second core?
(i've never actually used an AMP system before and basically all of my SMP experience is on x86 or arm)
linear cannon
in reply to evening bx • • •your first guess was correct, it is a separate partition in flash, though i am not sure how the second core is started, and that may actually still be kicked off by the first core.
paste.sr.ht/~ky0ko/8e27b0506bd…
this device tree file contains the partition layout i have define for my LilyGo T-Deck, which is set up for A/B partitions for each image type. you'll notice there are two flash partitions each for the main cpu, appcpu, and lpcore.
PROCPU (protocol CPU) is the name for core 0, and its name is omitted. APPCPU is the name for core 1. originally it was intended that core 0 handled wireless comms, core 1 handled GUI stuff, but nobody really does that. i currently don't use the appcpu or the low power core for anything.
8e27b05 — paste.sr.ht
paste.sr.htevening bx
in reply to linear cannon • • •@linear Ooh, that's more straight forward then i expected, i might have to try this out next time im doing an esp32 project
hmm, i wonder if i could have gur second core run a baremetal program to implement a virtual machine, and have gur first core run everything else
linear cannon
in reply to evening bx • • •you would even have the conveniences of Zephyr on the second core if you do this, and assign hardware specifically to one core or the other (ymmv; it depends very heavily on what is attached to the board and how, they can't share peripherals)
it supports first class integration with OpenAMP, which handles providing a communication channel between the cores. i've used this professionally in a medical device, to communicate between cores running an RTOS and controlling FPGA fabric, and cores running Linux on the same Xilinx SoC, it's pretty nifty
Clara 🏳️⚧️
in reply to Alice Averlong🏳️⚧️ • • •Heathen 🐈
in reply to Alice Averlong🏳️⚧️ • • •I'm guessing there's also delivery fees and a tip for the sandwich, so you might be able to claim 8 computers for that price, perhaps more.
Damn, now I'm hungry for computers.
Jonathan Lamothe
in reply to Alice Averlong🏳️⚧️ • •Nina Kalinina likes this.
Alice Averlong🏳️⚧️
in reply to Jonathan Lamothe • • •@me yeah that's an RP2040 thing. It has 6 banks of SRAM, two of which are 4KB each, and the remaining ones are 64KB.
so it's 256KB+8KB
Jonathan Lamothe likes this.
BigHeadMode
in reply to Alice Averlong🏳️⚧️ • • •I don't use Pico / embedded hardware much. What is this comparable to? Early 90s computers and the SNES?
youtube.com/watch?v=WaPJmCgseQ…
BBC Micro emulation on a $4 Raspberry Pi Pico
Raspberry Pi (YouTube)rk: it’s hyphen-minus actually
in reply to Alice Averlong🏳️⚧️ • • •Bee (sleep-deprived)
in reply to Alice Averlong🏳️⚧️ • • •Klaus Frank
in reply to Alice Averlong🏳️⚧️ • • •From Okesska With Love
in reply to Alice Averlong🏳️⚧️ • • •Dr. Bruce Simpson
in reply to Alice Averlong🏳️⚧️ • • •C.
in reply to Alice Averlong🏳️⚧️ • • •Jeff Craig
in reply to C. • • •Duke
in reply to Jeff Craig • • •kasperd
in reply to Alice Averlong🏳️⚧️ • • •Alice Averlong🏳️⚧️
in reply to kasperd • • •