Florin Lipan

363 posts

Florin Lipan banner
Florin Lipan

Florin Lipan

@helloflorin

Ruby dev by day, Rust dev by night. I sometimes read the newspaper.

Berlin Se unió Haziran 2011
367 Siguiendo218 Seguidores
Florin Lipan
Florin Lipan@helloflorin·
@Arnold_Platon Apparently "da" is an early 19th century loan from Bulgarian. Prior to that, they'd use "așa" for a similar purpose (which is of Latin origin).
English
0
0
4
37
Florin Lipan retuiteado
(insert anime girl) appreciator account
Obsessed with this photography project showing civil servants aIn different countries. First, Bolivia:
(insert anime girl) appreciator account tweet media(insert anime girl) appreciator account tweet media(insert anime girl) appreciator account tweet media(insert anime girl) appreciator account tweet media
English
288
15K
86.1K
0
Florin Lipan
Florin Lipan@helloflorin·
@utopiah @utopiah I ended up replacing thttpd with BusyBox httpd and aside from having an even smaller image (154KB) the memory footprint is back to normal (<1MB for my pet project). Feel free to give it a try github.com/lipanski/docke…
English
0
0
1
0
Florin Lipan
Florin Lipan@helloflorin·
@utopiah Setting that variable didn't change anything. I also tried starting from Debian - no difference. It must have something to do with the way thttpd uses mmap internally (which probably reserves a chunk of memory) but I'm not sure how to limit that.
English
1
0
1
0
Florin Lipan
Florin Lipan@helloflorin·
@Kidmar @Kidmar I ended up replacing thttpd with BusyBox httpd and aside from having an even smaller image the memory footprint is back to normal (<1MB for my pet project). Feel free to give it a try github.com/lipanski/docke…
English
0
0
0
0
Florin Lipan
Florin Lipan@helloflorin·
@Kidmar yeah I noticed that as well and discussed it a bit here twitter.com/helloflorin/st… but couldn't figure out how to contain it
Florin Lipan@helloflorin

@utopiah Setting that variable didn't change anything. I also tried starting from Debian - no difference. It must have something to do with the way thttpd uses mmap internally (which probably reserves a chunk of memory) but I'm not sure how to limit that.

English
1
0
0
0
Florin Lipan
Florin Lipan@helloflorin·
@utopiah Seems that thttpd has an in-memory cache that can be limited by compiling the binary and setting DESIRED_MAX_MAPPED_BYTES. That might solve the issue, though not sure what would be a good value. Also how large are the files in your project?
English
1
0
1
0
Fabien Benetou
Fabien Benetou@utopiah·
@helloflorin To clarify this is not criticism I'm just trying to understand what is happening because I'm surprised. I was expecting a smaller memory footprint.
English
1
0
0
0
Florin Lipan
Florin Lipan@helloflorin·
@utopiah @utopiah If you built the image yourself, the initial build stage is larger (runs Alpine and some build tools), but the resulting image should be small. My Docker Hub version lipanski/docker-static-website only contains the final image (200KB). Which image did you build actually?
English
1
0
0
0
Fabien Benetou
Fabien Benetou@utopiah·
@helloflorin Hi! Thanks for the great post and the image. It's quite an interesting challenge. I'm running your image and wondering how could I inspect it. I was surprised to see docker stats give me 160MB used so wondering how they are being used.
English
1
0
0
0
Florin Lipan retuiteado
rug_b
rug_b@rug_b·
We are meeting remotely this Thursday 19:00 CET / 18:00 UTC! Talks by @helloflorin and @carhillion! We'll be talking Turbo Streams and Documentation! See you there, for a happy new year with talks and socializing! rug-b.de/events/january…
English
0
9
7
0
Florin Lipan retuiteado
CF Bolz-Tereick
CF Bolz-Tereick@cfbolz·
Wow, this is extremely cool: a website that shows all stations that can be reached by direct train from some starting point (in the Screenshot Duisburg Hbf, where I live), without changing trains direkt.bahn.guru/?origin=8011160
CF Bolz-Tereick tweet media
English
3
22
107
0
Crystal Language
Crystal Language@CrystalLanguage·
In a few minutes, @carlhoerberg kicks off Track 1 of the #CrystalConf to talk about how to write efficient network applications, and do's and don'ts to squeeze out as much performance as possible. Join him at bit.ly/3i6NCxK
English
1
0
7
0
Florin Lipan retuiteado
National Geographic
National Geographic@NatGeo·
Need a break? Turn your sound on for some fantastic commentary
English
53
2.2K
8.5K
0
Florin Lipan retuiteado
Crystal Language
Crystal Language@CrystalLanguage·
🎉 We can finally announce that Crystal 1.0 is out! 🎉 We are deeply thankful for the more than 450 people that made this possible and to all of our donors and sponsors that support the hard work that went into it! crystal-lang.org/2021/03/22/cry…
English
22
231
522
0
Florin Lipan
Florin Lipan@helloflorin·
@nTraum Jekyll is pretty decent, you can have different custom HTML layouts but not sure that's enough for what you want
English
0
0
1
0
Philipp
Philipp@nTraum·
What static site generators do people use nowadays to build? Templating is a must, not just markdown. They all seem to suck, maybe I should write my own sucky one.
English
2
0
2
0
Florin Lipan retuiteado
matt swanson 😈
matt swanson 😈@_swanson·
Three Rails methods you'll kick yourself for not knowing 🤦
matt swanson 😈 tweet media
English
22
75
438
0
Florin Lipan
Florin Lipan@helloflorin·
The tragedy of Lisp is that everyone and their dog has a Lisp interpreter listed as their pet project, but nobody actually writes any Lisp.
English
0
0
0
0
Florin Lipan retuiteado
Dutch Cycling Embassy
Dutch Cycling Embassy@Cycling_Embassy·
Utrecht’s Dafne Schippers Bridge follows in the Dutch tradition of working together to find space-efficient design solutions. An elementary school acts as the on-ramp to a newly-built bike crossing of the Rijn Canal, complete with cycle path on the roof! vimeo.com/292657475
English
13
171
835
0