|
big ugly regex doesn't seem so bad now, given these lovely alternatives
|
# ? Dec 14, 2024 02:04 |
|
|
# ? Jan 22, 2025 21:55 |
|
ryanrs posted:The bytecode is platform-dependent. not entirely, the man page claims it only cares about the triplet of lua version, platform word size, and platform byte order which makes sense, as there's no native machine code in luac output, just VM bytecode. guess they chose to define the VM as using the platform's native word size and byte order. which, in turn, also makes sense given the whole theme of easy integration into C unfortunately you're probably needing to cross compile for a 32-bit LE lua runtime in a 64-bit LE host. i saw some references to patching luac to be a cross compiler but it may well be true that the easiest path is running luac in qemu as jabor suggested alternatively, if you can get a luac compiled for 32-bit x86 on your dev box, which i presume is an x86 linux, that'd do the job without even needing qemu
|
# ? Dec 14, 2024 02:34 |
|
If the endianness is the same, maybe it's sufficient to #define LUA_32BITS 1 That's what I do for the microcontrollers (although maybe it would have picked 32 anyway). e: but also imagine someone downloading my repo and the build instructions are "First, install qemu..." This is why I'm using Python for the host-side Linux tools, it should already be there. ryanrs fucked around with this message at 02:55 on Dec 14, 2024 |
# ? Dec 14, 2024 02:49 |
|
Powerful Two-Hander posted:the way to make it "readable" was to replace newlines with spaces then pipes with newlines "retry on success" is an incredible policy
|
# ? Dec 14, 2024 03:08 |
|
"replicate success" got mistranslated
|
# ? Dec 14, 2024 03:15 |
|
ha ha, I've been making GBS threads on Lua's memory usage, but I have evidence there's a pretty big memory leak somewhere in my C code...
|
# ? Dec 14, 2024 04:36 |
|
ryanrs posted:ha ha, I've been making GBS threads on Lua's memory usage, but I have evidence there's a pretty big memory leak somewhere in my C code... pro tip dont reserve an object pool and then not use it (from experience, as always)
|
# ? Dec 14, 2024 05:48 |
|
I only call malloc in a dozen places (and not because it's hidden behind another allocator function). Most of them could be turned into arrays on the stack. Anything with convoluted control flow or weird lifetimes has been pushed into Lua-land, so the remaining C is pretty simple. e: the leak was obvious with one testing bisection and inspection of the code. ryanrs fucked around with this message at 06:24 on Dec 14, 2024 |
# ? Dec 14, 2024 06:20 |
|
redleader posted:"retry on success" is an incredible policy it's not even retry on success it's just hard coded to try three times because the second two fails are "hey I already did this"
|
# ? Dec 14, 2024 09:57 |
|
Powerful Two-Hander posted:it's not even retry on success it's just hard coded to try three times because the second two fails are "hey I already did this" its like hitting the elevator button, but for api calls
|
# ? Dec 14, 2024 10:11 |
|
Carthag Tuek posted:its like hitting the elevator button, but for api calls at work they have those annoying ones where you key the floor into a lovely touchscreen with poor response times and it tells you which one to go to and if you press the floor you're on it thinks for a few seconds and gives you a sarcastic "you are already on floor x". it also lets you put in 99 (which sometimes happens because the POS screen is so bad) and again, sits for a few seconds and goes "there is no floor 99"
|
# ? Dec 14, 2024 10:35 |
|
Powerful Two-Hander posted:at work they have those annoying ones where you key the floor into a lovely touchscreen with poor response times and it tells you which one to go to and if you press the floor you're on it thinks for a few seconds and gives you a sarcastic "you are already on floor x". the elevator touch screen is idempotent
|
# ? Dec 14, 2024 10:59 |
|
yes but the shaft is a twenty story column of steel and concrete
|
# ? Dec 14, 2024 16:15 |
|
|
# ? Dec 14, 2024 16:30 |
|
idempotent shaft? I hear they have drugs for that now
|
# ? Dec 15, 2024 20:42 |
|
Share Bear posted:this is growing smaller and smaller per python dev survey stats (https://lp.jetbrains.com/python-dev...source=PSF-blog) , but of course that does not catch people who dont fill out the survey I assure you, as someone who spent his half-of-a-phd working on a theorem prover written in a bespoke object system built in python 2, not only do academics not give a poo poo about filling out developers' surveys but they also do not know that developers' surveys exist things that they also do not know anything about : virtual environments
|
# ? Dec 15, 2024 23:12 |
|
as a former academic, this is entirely true
|
# ? Dec 15, 2024 23:37 |
|
ugh familysearch changed their login flow so now my scraping script is broken
|
# ? Dec 19, 2024 09:54 |
|
I hope you eventually find them
|
# ? Dec 19, 2024 14:21 |
|
ryanrs posted:I hope you eventually find them lol i just wanna to download a bunch of digitized microfilm of accounting records from the early 1700s ;_;
|
# ? Dec 19, 2024 17:29 |
|
Carthag Tuek posted:lol a tale as old as time
|
# ? Dec 19, 2024 19:34 |
|
ryanrs posted:yeah, there is no real case where mail thieves hack my poo poo. more likely is they learn to skip this building, or come back and kick my rear end or whatever. the real threat is probably getting shot, tbh. Follow up: two of my sensors monitoring an unused storage space. Wood-grain camouflage to blend in with the surroundings. 6000mAh battery should last a couple months. I can't do firmware updates over LoRa, but I can jump to Nordic's bluetooth bootloader and reflash the microcontroller over Bluetooth LE from my phone. I have to walk near to the sensor to load new firmware, but I don't have to touch it or plug in a cable. I'm still working on the network stack, so I've had to load new firmware a couple times already. I had to drop the LoRa modulation down to 30 bytes/sec to get full coverage of the property, which seems strange. Furthest distance is 100 meters, but with a lot of concrete and earth. The sensor antennas are little stick-on molex decals. The max distance test was to one of those antennas, flat against concrete, under a car, beneath a California soft-story garage dug into a hill. So that's pretty bad propagation circumstances, but I'm still surprised I needed to drop down to LoRa BW=62,500, SF=11.This is with 1 watt at 915 MHz. The central server node is on a 12-element yagi, because I happened to have one in the ol' junk box. It's on one side of the property, pointing at the weakest coverage, and nearby nodes live in the sidelobes. This works quite well. TBH it kinda feels like I'm having to work too hard for reliable coverage. Like maybe I forgot to enable the final tx power amplifier or something. But I run SDRSharp with an Airspy mini for debugging, so I'm pretty sure of what I'm putting on the air. I know 900 MHz really gets its rear end kicked by concrete and earth, but I expected I'd get more mileage out of reflections and such at 100m.
|
# ? Dec 21, 2024 05:37 |
|
Dijkstracula posted:I assure you, as someone who spent his half-of-a-phd working on a theorem prover written in a bespoke object system built in python 2, not only do academics not give a poo poo about filling out developers' surveys but they also do not know that developers' surveys exist as someone who had the pleasure of working with (bio)chemists writing protein folding ML algorithms in python, yeah their stuff was apparently pretty good though, they wanted to protect their secrets before deploying for a darpa-sponsored project it was kinda interesting I guess
|
# ? Dec 22, 2024 20:51 |
|
Carthag Tuek posted:lol gently caress are you doing? tracking down some ancient fortune from the dutch golden age left in banks all over the world?
|
# ? Dec 22, 2024 21:02 |
|
Deep Dish Fuckfest posted:gently caress are you doing? tracking down some ancient fortune from the dutch golden age left in banks all over the world? nah its danish royal land accountings, like tenant farmers, taxes & such. when youve exhausted the extant church registers & probates theyre one of the only ways to trace further back but the familysearch image viewer is slow as balls so i prefer to just download the whole digitized film and go through it offline while annotating the images
|
# ? Dec 23, 2024 09:28 |
|
achewood comic sans comic but it's the guy who invented his shirt has {{- toYaml . | nindent 8 }} written on it idk somebody else do it i'm more of what you might call an ideas guy
|
# ? Dec 24, 2024 18:14 |
|
stop doing computer work on Yule eve tia
|
# ? Dec 24, 2024 20:15 |
|
Carthag Tuek posted:stop doing computer work on Yule eve tia I'm helping my son do a project in scratch right now and it is a little too much like pair programming with a jr engineer
|
# ? Dec 24, 2024 23:21 |
|
The Fool posted:I'm helping my son do a project in scratch right now and it is a little too much like pair programming with a jr engineer This is my Christmas eve dream family memory, congrats
|
# ? Dec 24, 2024 23:24 |
|
I just get drunk and criticise my own cooking so same I guess
|
# ? Dec 24, 2024 23:34 |
|
The Fool posted:I'm helping my son do a project in scratch right now and it is a little too much like pair programming with a jr engineer The trick to programming in scratch is to instead write your code in something else and transpile to scratch: https://github.com/aspizu/goboscript
|
# ? Dec 25, 2024 00:06 |
|
write in decker because then you can ask questions to ij in the thread. juniors deffo often need a reminder that actual peeps write the underlying libraries and poo poo and you can sometimes talk to em for the purposes of this conversation child counts as junior
|
# ? Dec 25, 2024 00:07 |
|
bob dobbs is dead posted:write in decker because then you can ask questions to ij in the thread. juniors deffo often need a reminder that actual peeps write the underlying libraries and poo poo and you can sometimes talk to em this
|
# ? Dec 25, 2024 00:15 |
|
junior devs are children yes
|
# ? Dec 25, 2024 00:17 |
|
root of all eval posted:This is my Christmas eve dream family memory, congrats was same but now I find myself saying "How do you think we should add update every item in the list" to my son and I'm not sure anymore
|
# ? Dec 25, 2024 01:33 |
|
Antigravitas posted:The trick to programming in scratch is to instead write your code in something else and transpile to scratch: https://github.com/aspizu/goboscript didnt know about that, that looks cool, will have to try it bob dobbs is dead posted:write in decker because then you can ask questions to ij in the thread. juniors deffo often need a reminder that actual peeps write the underlying libraries and poo poo and you can sometimes talk to em is that the hypercard clone? it looks cool
|
# ? Dec 25, 2024 01:35 |
|
Antigravitas posted:The trick to programming in scratch is to instead write your code in something else and transpile to scratch: https://github.com/aspizu/goboscript whoa this looks neat, gonna give it a try too
|
# ? Dec 25, 2024 03:19 |
|
The Fool posted:was same but now I find myself saying "How do you think we should add update every item in the list" to my son and I'm not sure anymore also, "that's too many comparisons for a single if statement"
|
# ? Dec 25, 2024 04:51 |
|
you're advertising the notion of touching puter to the kid, not actually teaching em serious touching, if they're doing scratch
|
# ? Dec 25, 2024 05:00 |
|
|
# ? Jan 22, 2025 21:55 |
|
he's a child bob
|
# ? Dec 25, 2024 05:38 |