HNHacker News
TopNewBestAskShowJobs

linkdd

2,632 karma · joined June 19, 2019

email: david.jose.delassus@gmail.com

  - https://link-society.com
  - https://krouter.cloud
  - https://flowg.cloud
  - https://linkdd.github.io
  - https://david-delassus.medium.com
submissionscomments
linkdd··on Ask HN: Any calory-tracking app without the need for an account?
Thanks for the links, I'll check them out.

The Jupyter Notebook idea is actually quite nice, I might do that as well.

I have an app called OpenFoodFacts that allow me to scan the barcode of the food I buy to check for many things, including the kcal amount.

For the gyms, this is not my cup of tea. I'm a bit of an hermit and like the comfort of my home, so the exercising will have to be done at home. But I'm sure they have plenty of tips for that, I will look more into it. Thank you :)

linkdd··on Scriptable operating systems with Lua (2014) [pdf]
Yes, njs. My dumb mind expanded the "n" to "node".
linkdd··on Scriptable operating systems with Lua (2014) [pdf]
IIRC, Lua in Nginx is deprecated in favor of the NodeJS module. I see more and more Nginx extensions written in JS, for SAML authentication, HTTP ACME challenge, etc...
linkdd··on Show HN: A new open-source automation tool as an alternative to Ansible/Salt
There is https://pyinfra.com/

As a sidenote, I also made a small experiment a while ago : https://github.com/linkdd/tricorder/

But it's a bit of a chicken-and-egg problem. Without users, I don't know how it should be used, without features I won't get any users. So for now, it's in a state of "I'll address bug reports and feature requests, but I won't actively develop it".

linkdd··on Show HN: Logfmtxx – Header only C++23 structured logging library using logfmt
Which is good for 100% of my use cases, since I don't deal with real time systems, or performance intensive applications, or memory/allocation constrained environments.

No need to use the bazooka to kill an ant.

linkdd··on Show HN: Logfmtxx – Header only C++23 structured logging library using logfmt
Which my library propose with the very simple concept `as_string_trait` that requires the presence of a method `std::string as_string() const`.

It's good enough for 100% of my use cases.

linkdd··on Show HN: Logfmtxx – Header only C++23 structured logging library using logfmt
debug/info/warn/error methods are coming. For the latter, since I use a pack expansion ( `...` ) of `field<T>`, maybe it is already possible to omit the type name. I shall put that in a test case and update the README :)

Thank you for the feedback.

linkdd··on Show HN: Logfmtxx – Header only C++23 structured logging library using logfmt
How is it dated? That's how the Python logging library works, that's how Go's `slog` package works, that's how most of Rust's structured logging crates works.

I guess the definition of "effortless" varies from people to people, I find this "no hard setup required" way to be effortless.

linkdd··on Show HN: Logfmtxx – Header only C++23 structured logging library using logfmt
> Most libraries focus on silly things like formatting and filtering which are all trivial problems.

I wanted to print structured data on stdout, without any fuss. All the other libraries that try to tackle the non trivial problems you mention, feel like a bazooka aiming at the ant that is my use case.

linkdd··on Show HN: Logfmtxx – Header only C++23 structured logging library using logfmt
Here are a few reasons:

  - boredom
  - DIY
  - fun
  - practicing concepts, type traits, if constexprs, ...
  - spdlog has too many features, I just need one
  - why not?
linkdd··on Show HN: Logfmtxx – Header only C++23 structured logging library using logfmt
Agree, but I don't have enough experience yet with modules (I find them confusing). Maybe for later, PRs are welcome :)
linkdd··on Show HN: Logfmtxx – Header only C++23 structured logging library using logfmt
I'm using `std::function` and `std::vector` in the implementation, which allocates.

I haven't written any benchmark, but I assume this would be the bottleneck. I made this tool for a small CLI utility not concerned about performance.

I'd be happy to receive recommendations (and even PRs) though.

linkdd··on Ask HN: Do you believe AGI is (practically) possible?
> a computer system generally as smart and capable as a median human

This implies:

  1. a median human is somehow smart
  2. a system that behaves like a human is desirable
For (1), I think it's highly debatable regarding the amount of dumb errors/mistakes I (and the average developer/sys admin) make daily, heck even hourly/minutely. Yesterday, I did commit a format string instead of a formatted string (aka: `"{foo}bar"` vs `f"{foo}bar"` in Python. That's not really smart.

For (2), do we want an autonomous system to mimic the weakest link in the security chain of an IT system? aka: the human. Do we want AIs that put passwords next to the computer screen? Or use `password123` because it's easier to remember?

My point is, we don't want AGI as smart as us, we want AGI smarter than us, and far more efficient that us. I don't want an AGI that forget the `f` in my example earlier.

linkdd··on Writing a Postgres logical replication system in Golang
March 08, 2024.

News from the future? Who cares about causality?

linkdd··on TriOTP, the OTP Framework for Python Trio
Author here,

I just posted a link to an article mentioning this project --> https://david-delassus.medium.com/writing-python-like-its-el... (friend link to bypass paywall, HN seems to remove the auth token).

Ask me anything.

linkdd··on Show HN: Letlang, written in Rust, targeting Rust, now has a specification
FYI: HN seems to remove the query string, which contained an auth token to bypass the paywall, so here you go, full link:

https://david-delassus.medium.com/letlang-specification-fina...

linkdd··on Boring Python: dependency management (2022)
For Django projects, I made a gist as a template of what I use: https://gist.github.com/linkdd/4aac2c2efc4a51af6ca4b05f395de...

In there, you'll find the settings.py split by environment (like you would have in the Elixir world), and a multistage Docker image designed to be cache-friendly (for faster Docker builds). Some stages even run the test suite, so it could be compared to a CI pipeline.

Not having build dependencies in the production image is definitely a good approach.

linkdd··on Boring Python: dependency management (2022)
I don't know about pipfile.lock nor pip-compile, once I tested poetry I stuck to it without rethinking it (because I have better things to do than test all the package managers out there).

But the poetry.lock contains hashes as well.

linkdd··on Boring Python: dependency management (2022)
Of this specific solution yes, of the "ecosystem" no. This has been solved by many other solutions (pipenv, poetry, pdm, etc...).
linkdd··on Show HN: Pong Wars
Chaotic means "small change in initial conditions lead to big changes in long term behavior". Best examples of this are double pendulums.

It is still fully deterministic.

linkdd··on I built my own 16-Bit CPU in Excel [video]
The video is already 1 day old. Where is the DOOM port?
linkdd··on Show HN: Shipp, a deadly simple package manager for your C/C++ projects, in Rust
One solution could be to add a `build` and `install` field to the dependency in the project's manifest, I'll see with the feedback if this is worth implementing.

For now, you simply have to add a `shipp.json` file. For SDL I have a repository `shipp-pkg-sdl` (not yet published) which contains only the `shipp.json` file and a submodule to the latest release. It's not perfect, but it works well for now :)

linkdd··on Ask HN: Would anyone recommend GraphQL over REST for teams just starting up?
GraphQL shines when your data model is already a graph, when you have polymorphism and expose nodes/edges and follow the "Relay" pattern.

But it shines only for the frontend. It is a nightmare on the backend to implement efficiently.

Then, you have Hasura, which will compile the GraphQL request into an SQL request. Hasura provides a REST-like schema with GraphQL syntax. At that point, just stick with REST.

linkdd··on Free and Open Source Alternative to Airdrop
I bought it 10 years ago, it cost me less than 50€. And every interactive device has an operating system, no matter how simple it is. Just to accept inputs from my remote and displaying menus to configure lightning/colors/volumes/etc., it needs an OS.
linkdd··on Free and Open Source Alternative to Airdrop
Back when I was teaching, I was using sharedrop to share the project files, slides, exam solutions (after the exam of course), etc... to my students.

I used to set up a local http server with `python -m http.server` until one of my student told me about sharedrop.io

linkdd··on Free and Open Source Alternative to Airdrop
No, free software is different than "does not cost money". You can pay for free software. For example the OS of my TV (not a smart TV but still) is free and opensource, yet I paid for it when I bought my TV.
linkdd··on Show HN: I made an app people call "Airdrop for Android"
I've always been using https://www.sharedrop.io/
linkdd··on Memory leak proof every C program
Obviously, the "free-less programs" are not a "one size fits all" option. Like pretty much everything in IT and the dev world.
linkdd··on Memory leak proof every C program
If you're writing a library, you're not writing a program.

If you write a C library, it is a good practice to leave the allocations to the library user, or at least provide a way to override the library's allocator. Allowing your user to write a free-less *program*.

linkdd··on Show HN: Header only C++23 library for gamedev (back end agnostic)
The engine as a whole is unfinished, I'm extracting the parts that are working, because I've procrastinated too much the past few months.

Everything presented in the README is working. There is even a small test suite to prove it.

← PreviousPage 3 of 29Next →