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: What are your favorite examples of elegant software?
Python Trio[0] (an alternative async stack to the builtin asyncio).

It allowed me to implement a mini OTP framework in Python[1].

[0] - https://trio.readthedocs.io/

[1] - https://linkdd.github.io/triotp/

linkdd··on Ask HN: Is all code crap?
This can fail too:

  $ ./helloworld.py >file.txt
What if the hard drive is full?
linkdd··on Ask HN: Is all code crap?
Programming is the art of adding bugs to an empty text file.
linkdd··on Show HN: Radiopaper – Troll-resistant public conversations
The "seen" feature on whatsapp/facebook is the most infuriating feature that ever existed IMHO.

It's just so frustrating to have no replies when you know the message have been read.

HN is free of such shenanigans and it's been so far the best experience I've had on the internet.

linkdd··on Show HN: Radiopaper – Troll-resistant public conversations
> The key mechanism that makes Radiopaper different from other social networks, and more resistant to trolling and abuse, is that messages are not published until the counterparty replies or accepts your comment.

My mind is blown at how simple and elegant this solution is!

Great work there.

linkdd··on Ask HN: A genie appears. What do you wish for?
Could you hack this to find a theory of everything?

Just hear every possible theory out there, every math, every interpretations, etc... until you find the true one. Sort of like a Guess Who game.

linkdd··on Ask HN: A genie appears. What do you wish for?
I'm not sure I understand the question, but I would say yes, if I could stop time for a while to just work, then unpause it and live life to its fullest (the other way around is useless since everybody else is frozen), that would be awesome.

> What do you think about death?

I try not to think about it too much. Contemplating your own mortality when you have anxiety and procrastinate easily, this is a highway to a depressive state (at least for me). I prefer to practice mindfulness.

linkdd··on Ask HN: A genie appears. What do you wish for?
I have the chance to love my work. I started a few years ago a company with a friend of mine that I've known and worked with for 10 years. I try to spend as much time as possible with my family, and the rest is just work.

I would basically still do the same thing if I didn't have to, but without the overwhelming pressure.

I would also travel more, my work can be done remotely, and I'd love to meet more people from around the world. But 90% of the money I earn goes to food/water/rent.

My procrastination just makes me do in a few days what I could do in a few hours. I don't really delay stuff, I just do it slower. I've stop pressuring myself into doing it quick because it would increase my anxiety.

linkdd··on Ask HN: A genie appears. What do you wish for?
Not having to work to be able to live.

I love to work, to develop new stuff etc... But the pressure of being required to make some profit so I can pay rent, food, water, heat, etc... just takes almost all the fun out of it. If we could live in some utopia where every fundamental needs would be fulfilled, I am 100% certain my procrastination and my anxiety would just go away.

linkdd··on The Twelve-Factor App (2011)
> Explain XKCD is great

Thanks for the tip, I added it to my favorites.

Could it be used to implement a Slack bot similar to /giphy?

linkdd··on The Twelve-Factor App (2011)
I love those, but the only one I remember is https://xkcd.com/927/

It's always pleasant to see them pop up in conversations.

linkdd··on The Twelve-Factor App (2011)
Is HN a search engine for xkcd?

Honestly people, do you have them indexed somewhere?

I'm amazed by your ability to find the appropriate xkcd whenever it's needed. Me, I'd have to spend at least half an hour on Google trying to find it, and then give up or see that someone else already posted it.

I love this community.

linkdd··on Understanding the Rust toolchain when you come from the C/C++ world
The whole article is (voluntarily) an oversimplification of how things happen.

It's mainly intended to create a mapping "C world" <-> "Rust world", and from there you can go into the multiple rabbit holes that are compiler designs.

In the past, I've written some toy programming languages, targeting Assembly (nasm). The toolchain was mycompiler + nasm + ld. Very much like a straightforward cc+as+ld (which of course is more complex than this in 2022).

Now, I'm writing a more serious programming language, targeting Rust. And I wanted to know more about the toolchain and rustc.

I've been writing Rust code for a few months now, and I never stopped before to think about "what is a crate" or "how does it relates to C/C++ toolchains".

As a friend of mine said:

> Rust is easy, write shitty code and let the compiler tell you how to fix it.

linkdd··on How much does fast thinking matter in Lichess games?
> PS: I've never seen a player with a high bullet rating but a low blitz/rapid rating, so I'm not sure how to interpret a negative result either.

I don't have a "high rating" in bullet, but it's higher than my blitz/rapid ratings.

Why ? I'm impatient. When I wait for my opponent to play their move, I lose focus. When they take 30s to 1min to think about a move that seems obvious to me, it just makes me lose my train of thought.

Because of this, I play mostly only bullet games and puzzle rush. I'm at ~2400 in tactics on lichess, and ~1900 in bullet.

linkdd··on Managing mental health while running a startup
It's not 80h/week vs 40h/week, it's how many weeks can you endure it.

It's how far you go, not how fast you go.

linkdd··on Anatomy of a Django/HTMX Project
Thank you, this works well :)
linkdd··on Anatomy of a Django/HTMX Project
Django + HTMX is truly awesome to work with.

It reminds me a bit of Phoenix LiveView in the Elixir world.

One note though, the use of `hx-boost` will not update the address in the URL bar, which is problematic if you refresh the page.

Also, I'm using TailwindCSS within my Django templates. At first I didn't like it, I was not understanding the difference with writing `style` attributes and it looked like an anti-pattern to me. But after using it for a while, it's just quicker to refactor, and easier to get it right.

The next thing I'll try with HTMX is to integrate it with SVG. How awesome would it be to have C4 models or other diagrams where you can click the boxes to "zoom in"? I wonder if PlantUML can generate partial diagrams...

linkdd··on [dead]
The way you rephrased is much better, now it sounds like concern and not a snarky attack.
linkdd··on [dead]
Comment of yours from the thread you linked:

  > > I feel so happy and excited just thinking about the possibilities these techs are going to bring.
  > Like what? All I can think of are the poor art students who I guess we should pay for their educations and will never have careers?
Sounds like you're not only asking why it is exciting, but you're also making a useless, mean, possibly offensive comment about art studies.

Why did you need to say "poor art students" and "will never have careers"? Certainly, the HN crowd don't like snarky/mean comments like that, it's why it's in the community rules.

linkdd··on Ask HN: GNU/Linux Distro for a Baby
> [..] baby less then 1yo [...] as we all know, that age is old enough to introduce a person to computers.

No it's not. Children screen time should be monitored carefully.

I recommend reading the work of Serge Tisseron (psychologist specialized in child development) on 3-6-9-12[0] (maybe use a translator, this is in french).

3, 6, 9 and 12 being the key ages in the development of a child. No screen before 3 years old basically as it can be harmful to the child's development.

  [0] - https://www.3-6-9-12.org/
linkdd··on How Do I get my Co-Founder to Leave?
> We didn’t sign any type of contract at all

Pardon my naivety but, couldn't you just consider them out of the company? Write them off the website, stop inviting them to meetings, revoke their access/credentials/...

There is no contract, so what can they do legally?

linkdd··on I Avoid Async/Await
In Javascript, a Promise is started as soon as it is created. In other words, this is not the `await` that starts the Promise.

If the first await is the slowest, the second one will return immediately (like calling .then on an already resolved promise).

linkdd··on Ask HN: Whatever Happened to Elixir?
Still using it to build Kubirds[0] (a Kubernetes operator for monitoring/alerting).

WhatsApp is built with Erlang, as well as RabbitMQ. Discord is built with Elixir.

Some people are starting to build NIFs in Rust with Rustler[1].

Erlang/Elixir and OTP are far from dead. But since there is not a new version every 3 minutes, it's not getting a lot of attention.

  [0] - https://kubirds.com
  [1] - https://github.com/rusterlium/rustler
linkdd··on Ask HN: How to Make 1M $?
is this the next level after NFTs?
linkdd··on Ask HN: Process isolation alternative do Docker
You could look at LXD, but it would require a full OS.

Or maybe just chroot with some cgroups could be enough to run static binaries.

What is the performance issue you encountered? Could podman solves them?

linkdd··on Ask HN: Share your personal site
Mine is just my resume generated from some TOML/YAML files with Hugo that I can print to PDF whenever I need to send it: https://linkdd.github.io/
linkdd··on Show HN: Tricorder – Automation the KISS way, no YAML involved, written in Rust
Author here,

Recently I published the v0.1.0 of tricorder and posted a link. Now I'm a little bit more far ahead and getting ready to hit the v1.0.0 with a stable API (once the test suite is completely done).

I've built the website, inspired by Star Trek TNG LCARS interface, and would love your feedback :)

linkdd··on Ask HN: An SVG animation tool for idiots?
Thanks!

The design is inspired by star trek's LCARS (the computer interface in The Next Generation) ^^

linkdd··on Ask HN: An SVG animation tool for idiots?
Vanilla JS API:

  <canvas id="my-canvas"></canvas>

  <div style="display: none;">
    <img id="asset-foo" src="/img/foo.svg" />
    <!-- ... -->
  </div>

  <script defer type="application/javascript">
    window.addEventListener("DOMContentLoaded", () => {
      const canvas = document.getElementById("my-canvas")
      const context = canvas.getContext("2d")

      const fooAsset = document.getElementById("asset-foo")

      // ...

      const frame = () => {
        canvas.clearRect(0, 0, canvas.width, canvas.height)

        // NB: this will fail if image could not be loaded by the browser
        context.drawImage(fooAsset, x, y, w, h)

        // ...

        requestAnimationFrame(frame)
      }
      requestAnimationFrame(frame)
    })
  </script>

The result can be seen here: http://bd2e-77-141-81-91.ngrok.io

(I'll shut down the ngrok in a few hours)

linkdd··on Ask HN: An SVG animation tool for idiots?
Thanks,

For me Inkscape is insanely hard to use, I ended up using a canvas and drawing directly in it.

The 2D context API provides the `lineDashOffset` property as well, so it works fine :)

← PreviousPage 11 of 29Next →