It allowed me to implement a mini OTP framework in Python[1].
2,632 karma · joined June 19, 2019
- https://link-society.com
- https://krouter.cloud
- https://flowg.cloud
- https://linkdd.github.io
- https://david-delassus.medium.comIt allowed me to implement a mini OTP framework in Python[1].
$ ./helloworld.py >file.txt
What if the hard drive is full?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.
My mind is blown at how simple and elegant this solution is!
Great work there.
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.
> 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.
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.
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.
Thanks for the tip, I added it to my favorites.
Could it be used to implement a Slack bot similar to /giphy?
It's always pleasant to see them pop up in conversations.
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.
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.
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.
It's how far you go, not how fast you go.
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...
> > 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.
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/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?
If the first await is the slowest, the second one will return immediately (like calling .then on an already resolved promise).
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/rustlerOr maybe just chroot with some cgroups could be enough to run static binaries.
What is the performance issue you encountered? Could podman solves them?
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 :)
The design is inspired by star trek's LCARS (the computer interface in The Next Generation) ^^
<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)
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 :)