1
submitted 18 hours ago by [email protected] to c/[email protected]
3
submitted 2 months ago by [email protected] to c/[email protected]

ArkScript is an interpreted/compiled language since it runs on a VM. For a long time, runtime error messages looked like garbage, presenting the user with an error string like "type error: expected Number got Nil" and some internal VM info (instruction, page, and stack pointers). Then, you had to guess where the error occurred.

I have wondered for a long time how that could be improved, and I only started working on that a few weeks ago. This post is about how I added source tracking to the generated bytecode, to enhance my error messages.

2
submitted 3 months ago by [email protected] to c/[email protected]
3
submitted 3 months ago by [email protected] to c/[email protected]
5
submitted 3 months ago by [email protected] to c/[email protected]

I finally found a better memory layout to store variables in ArkScript, and I got a 76% performance boost on the binary tree benchmark, and a 21% perf boost on Ackermann(3, 7) Who knew using a contiguous storage buffer could be beneficial? 🤡

I retraced all the performance improvements I applied to ArkScript through the last five years, with updated benchmarks, AND DAMN what a journey.

4
submitted 3 months ago by [email protected] to c/[email protected]

Generating swaggers at compile time

Hi everyone!

I’m sharing with you a solution I designed for generating swaggers (http4s, tapir, open api) for apps.

At work we always had to remember to launch the app and all the databases containers, which was cumbersome and we would often forget to update the swaggers (which led to generated code for clients that wasn’t up to date).

132
submitted 7 months ago by [email protected] to c/[email protected]

I wanted to design a funny keyboard with an alternative to TRRS, so I made this floppy disk sized keyboard! (Perfect replica, under 10cm x 10cm)

I made a build guide for it too: https://lexp.lt/posts/floppy_keyboard/

[-] [email protected] 42 points 8 months ago

I feel like a lot of open source projects redirect to a discord or private discussion system like slack (even worse).

And it doesn’t help at all because it can’t be indexed and can quickly disappear on a while on the admin side. You can also be banned for no reason. Searching those platforms is horrendous, I don’t want to search a badly indexed system and then ask a question because I can’t find the answer to a problem, and be told it has been discussed 30 times.

Give me a bloody wiki or old fashioned phpbb forum.

6
submitted 8 months ago by [email protected] to c/[email protected]

I tried accessing https://programming.dev/c/programming_languages but it tells me that the community can not be found. Is that a lemmy bug?

1
submitted 8 months ago by [email protected] to c/[email protected]
160
submitted 9 months ago by [email protected] to c/[email protected]

TLDR: perfctl is a crypto mining and proxy jacking malware that exploits about 20’000 common missconfigurations to install itself on Linux servers. Mostly using a 10/10 CVE on Apache RocketMQ.

It is very persistent and can reinstall itself even when you have deleted all the perfctl and perfcc files. It hides itself by removing logs, network packets, and stopping all activity once you login to the machine.

Monitoring cpu usage using tools (I use net data on my server) can help identify infections (100% cpu usage when « idle »).

[-] [email protected] 113 points 9 months ago

They are trying to make foldable iPhones because everyone else is making a foldable phone, but have they stopped and asked themselves if people want and need a foldable?

I have yet to see a real use case for something like a Samsung Z flip, and carrying a bulky Z fold phone in my pocket only to be able to have a tablet once in a while and watch a movie is not interesting enough.

3
submitted 9 months ago by [email protected] to c/[email protected]

I’ve started putting the (long) forum posts I make about ArkScript on my blog, so that more people can follow the development. I must say I like the look of it, that’s also helping me getting back into blogging!

40
Shredding code at Zed (registerspill.thorstenball.com)
submitted 9 months ago by [email protected] to c/[email protected]
[-] [email protected] 34 points 9 months ago

So they are allowed to pirate content actually? Even if it’s not Netflix or YouTube they take screenshots of potentially copyrighted content

[-] [email protected] 33 points 9 months ago

From what I saw it was actually rising. A lot of Brazilian signed up when X was banned in their country and all the indicators are going up it seems. I don’t know where they got their numbers, to me it feels like they needed an excuse to cut costs.

[-] [email protected] 33 points 9 months ago

« creating an AI fund to back projects in these [poorer] nations, establishing AI standards and data-sharing systems, and creating resources such as training to help nations with AI governance. »

So basically burn money and energy on some hallucinating algorithm should be as important as investing in green energy and reducing CO2 levels. That makes sense. Like, yeah, totally onboard. What could go wrong?

[-] [email protected] 32 points 9 months ago

How come the hallucinating ghost in the machine is generating code so bad the production servers hallucinate even harder and crash?

[-] [email protected] 79 points 10 months ago

Who needs tests when you have users?

The testing environment is production!

[-] [email protected] 42 points 1 year ago

The AltStore: am I a joke to you?

[-] [email protected] 51 points 1 year ago

I'm getting fed up about all those articles "rust x something: the future?", "I rewrote in rust it's now memory safe". I get the rust safeties and all, but that doesn't automatically make everything great, right ? You can still write shit code in any language that can RM -rf all your disk, or let security gaps here and there without intending to.

[-] [email protected] 47 points 2 years ago

Ask yourself: do you really need a performance boost or are you just chasing the numbers to avoid a non-existant problem?

[-] [email protected] 31 points 2 years ago

Damn, I had to watch the video to compare with the review (I'm very skeptical of anything AI), and this is right on point

[-] [email protected] 41 points 2 years ago

People prefer having something generating shitty code and not checking it, instead of asking or searching on internet for a substantially better solution

view more: next ›

SuperFola

0 post score
0 comment score
joined 2 years ago