Hacker News new | past | comments | ask | show | jobs | submit | patte's comments login

This is a very concise overview! I have made a small example chat app [1] to explore two interesting aspects of gleam: BEAM OTP and compilation to javascript (typescript actually). If anyone is interested...

[1]: https://github.com/patte/gleam-playground


Thank you gbraad! I added a link to your fork to the README.


Much appreciated. My image has a slightly different twist. Might be helpful to others.

Plus, from time to time, I will contribute back. Making sure upstream still works.


Yes, fly.io allows you to expose a UDP port. See the fly.toml [1] in the repo. Make sure the tailscale port is pinned [2] to the exposed port (41641 in that case).

I just tested it again and the connections are made directly (after the first 2,3 packages go via DERP):

    tailscale ping fly-ams         
    pong from fly-ams (100.96.123.32) via DERP(ams) in 15ms
    pong from fly-ams (100.96.123.32) via [2604:1380:4601:d605:0:6c3b:eed5:1]:41641 in 12ms

    tailscale status
    100.96.123.32   fly-ams              patte@       linux   active; offers exit node; direct [2604:1380:4601:d605:0:6c3b:eed5:1]:41641
    100.101.54.36   fly-hkg              patte@       linux   active; offers exit node; direct [2605:4c40:95:4eed:0:40f0:67b1:1]:41641
[1]: https://github.com/patte/fly-tailscale-exit/blob/main/fly.to... [2]: https://github.com/patte/fly-tailscale-exit/blob/main/start....


Tailscale builds a mesh, where the participants can communicated directly, so it's common for all nodes to be behind a FW that does NAT. There is a very interesting blog post from tailscale about all the trickery they pull to reliably deal with NAT: https://tailscale.com/blog/how-nat-traversal-works/


i stand corrected. thanks!


We were honored to have him and he was actually of real help ;)


If you also need a refresh about memory architecture (banks, rows, etc.), this is a slick overview:

https://course.ece.cmu.edu/~ece740/f13/lib/exe/fetch.php?med...


The author, Onur Mutlu, is at ETHZ now and he livestreams all his lecture on youtube. He mainly covers computer architectures.

https://www.youtube.com/channel/UCIwQ8uOeRFgOEvBLYc3kc3g


> We call this attack "Half-Double" inspired by the crochet stitch that is taller than a single crochet but shorter than a double.

https://github.com/google/hammer-kit/blob/main/20210525_half...


our investigative report about the e-voting at swiss post and its technology partner scytl: https://www.republik.ch/2019/02/07/the-tricky-business-of-de...

> The Tricky Business of Democracy - For its prestigious electronic voting project, Swiss Post is relying on technology provided by the Spanish company Scytl. But reporting by Republik shows that the e-voting market leader has misused EU funds, bungled elections and encountered security problems during voting.

disclaimer: I work for Republik


for german speakers: the best told and most comprehensive story about the rise and fall of sears: https://www.republik.ch/2018/12/25/sears-eine-kapitalistisch...

disclaimer: I work for Republik.


I turned away from the mac, first because the HW, second because prop. software is creaping me out more and more. I bought a lenovo T480 (big battery, higres screen, good keyboard, only the trackpad is shitty) and I installed the shiny ubuntu 18.04 and I have to say, it's the best setup I ever used. It's super stable, with some tweeking(https://github.com/erpalma/lenovo-throttling-fix) it's crazy fast, 7h+ battery life when doing web development. Even the LG UltraFine works great under linux. I never regretted it.


> I bought a lenovo T480 (big battery, higres screen, good keyboard, only the trackpad is shitty) and I installed the shiny ubuntu 18.04 and I have to say, it's the best setup I ever used.

If by hires screen you mean WQHD, I am wondering what you do with absence of proper fractional scaling support by desktop environments (and how workarounds interact with external monitors).


KDE supports fractional scaling


I've been thinking about doing this too for some time now. Just not convinced which Lenovo to go for..


Former macbook pro user here. I currently use a T480 with the 72wHr battery. Web Development and programming I pull about 20+ hours of battery life. Using i3wm under Fedora.

Absolutely gorgeous machine.


20+ hours is impressive. Do you also use lenovo-throttling-fix, and if so, what are your settings for the turbo-boost max power?


Can you use the switchable graphics or did you get the model without a gpu?


I got the one with the MX150 dGPU, because there was no other option from the students program I bought it from. But I personally would go for the one without a dGPU. Even-tough the dGPU version uses 2 heatpipes, there are thermal issues. As soon as the GPU hits 70°C, the cpu-package gets power throtteled to 5W... so it's not usable for graphic intense workloads. I would choose the one without the dGPU, manually buy and install the 2heatpipe cooler for better CPU temperatures and use a eGPU if I really needed the power. For the time being I just disabled the dGPU under linux with bbswitch. I'm still able to watch 4K movies with 60fps, no problem.

[1]: https://www.reddit.com/r/thinkpad/comments/8flj0i/t480_power...


Wow, what a shame. How is this even possible? A Macbook Pro 15" has a 45 Watt TDP CPU and is half as thick but throttles less? The new Macbook Pro has two extra cores and I could use the graphic cards as well. Switching graphic also works where in Linux it does not. Taking into account that resale value of Macbook Pros the price difference is not so big.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: