1201
34
AI Coding (geohot.github.io)
1202
45
1203
30
1204
41

Specifically, I'm interested in BEAM, but I'm not sure if I should go for Elixir or Gleam. What seems cool about Gleam is that it has static typing.

I have no experience with functional programming at all btw

1205
6

I've installed VSCode Web via docker on my local server at home and would like to open my production server through the editor. How do I do that? Is it even possible?

1206
44
1207
12
1208
26
1209
23

After months of hard work. Now we are happy to announce that brahma-firelight v1. 5 is out. I tried to make the best Rust based memory safe framework for JS inspired from deno runtime. Finally I achieved it by utilizing napi-rs and tokio with hyper http library. When I performed benchmarks brahma-firelight v1. 5 against bun's elysia on c6i_x4 instance with 16cpus Reaching 1257k Reqs in 11s. My framework literally performed 20% better than elysia. I'll be sharing the bench marks soon. You can check the npm registry by searching directly npm i brahma-firelight

Give a try I made lot of effort in writing this addon with express js ergonomics. Now any js dev can write Rust code without rust that's the Beauty of brahma-firelight. Give a try and share your feed back thanks.

1210
109
1211
62

cross-posted from: https://programming.dev/post/36983916

Freund wasn’t looking for a backdoor when he noticed SSH connections to his Debian testing system taking 500 milliseconds longer than usual. As a database engineer benchmarking PostgreSQL performance, he initially dismissed the anomaly. But the engineer’s curiosity persisted.

The backdoor’s technical sophistication was breathtaking. Hidden across multiple stages, from modified build scripts that only activated under specific conditions to obfuscated binary payloads concealed in test files, the attack hijacked SSH authentication through an intricate chain of library dependencies. When triggered, it would grant the attacker complete remote access to any targeted system, bypassing all authentication and leaving no trace in logs.

The backdoored versions 5.6.0 and 5.6.1 had been released in February and March 2024, infiltrating development versions of Fedora, Debian, openSUSE, and Arch Linux. Ubuntu’s upcoming 24.04 LTS release, which would have deployed to millions of production systems, was mere weeks away.

The technical backdoor was merely the final act of a three-year psychological operation that began not with code, but with studying a vulnerable human being.

1212
55
1213
21

Result presentation (first 25 mins) and discussion of an accessibility study that Thunderbird ran. They explain various accessibility technologies (like screen readers, eye tracking etc.) and problems they encountered in their design when users relied on these technologies.

Nothing really groundbreaking in here, but still good for challenging one's assumptions.

1214
60
submitted 1 year ago* (last edited 1 year ago) by Davriellelouna@lemmy.world to c/programming@programming.dev
1215
234
1216
55
1217
10

cross-posted from: https://gregtech.eu/post/18657076

if you've ever tried it, that is.

I'm considering giving it a go

1218
33
1219
17
1220
130
1221
40
submitted 1 year ago* (last edited 1 year ago) by Sunsofold@lemmings.world to c/programming@programming.dev

After seeing this post I just thought it would be an interesting discussion. Obvious limits apply of 'you have to have at least some documentation,' so I'm not talking about something where there is none, and the feature set minimum would be less a question of whether you could complete X arbitrary project and more 'does the feature set make it easy to do everything?' You could essentially write everything in assembly, but would you want to?

On an arbitrary 1-10 scale, (1 being 'I'll build the features from nothing as long as the docs are good' and 10 being 'Who needs documentation? I'll happily read through the undocumented code until I find the ones that make magic happen.') where do your preferences lie?

Oh, and integers only. You can be nuanced in your ideas but no 5.5s allowed.

1222
28

It's been a long time since 2023, when Bun.js arrived and disrupted the JavaScript world. During that time, I was working on something unusual—something that encourages all JS developers to write API code that actually runs on top of Rust.

I gave it my best and eventually published this framework on npm. Many people asked for async support, and after countless sleepless nights, I finally achieved it.

Have a look at this framework—still in beta, experimental, and currently working only on Linux, Windows, and ARM T4 on AWS. Brahma-JS is one of my favorite creations, and it has literally edged past uWebSockets.js.

At the same time, I’ve been thinking about the future of Node.js. It has dominated for the past 16 years, going through many ups and downs. I’m truly happy to be a part of this ecosystem and of npm.

1223
78
submitted 1 year ago* (last edited 1 year ago) by popcar2@programming.dev to c/programming@programming.dev

I've been researching programming languages to find a good, high level language that compiles to a single binary that is preferably pretty small. After tons of research, I landed on Nim and used it to make a quick txt parser for a project I'm doing.

Nim seems absolutely fantastic. Despite being sold as a systems programming language, it feels like Python without any of its drawbacks (it's fast, statically typed, etc.) - and the text parser I made is only a 50kb binary!

Has anyone here tried Nim? What's your experience with it? Are there any hidden downsides aside from being kinda unpopular?


Bonus: I want to give a shoutout to how easy it is to open a text file and parse it line-by-line in this language. Look at how simple and elegant this syntax is:

import os

if paramCount() == 0:
  quit("No file given as argument", 1)

let filepath = paramStr(1)

if not fileExists(filepath):
  quit("File not found: " & filepath, 1)

for line in lines(filepath):
  echo line
1224
29
1225
26

Software design is weird. I wrote this article about implementing a minimal kanban board and the trade-offs I needed to make.

view more: ‹ prev next ›

Programming

28304 readers
573 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 3 years ago
MODERATORS