HNHacker News
TopNewBestAskShowJobs

rehemiau

389 karma · joined November 19, 2014

submissionscomments
rehemiau··on Librem 5 Smartphone Final Specs
This is what I've been doing for a few years now. Some apps require Google Play Services (Revolut?), some show a warning that can be ignored and run fine afterwards (Authy, Signal), some have limited functionality like no notifications (Slack), but many work just fine (Firefox, Spotify, and even Messenger Lite)
rehemiau··on Purescript-native can now target Golang
Is bucklescript half-baked in your opinion? Why?
rehemiau··on The Rust compiler is still getting faster
Probably yes, the LLVM linker is really slow
rehemiau··on Prototype: Puppeteer for Firefox
Selenium / WebDriver has a HTTP API so you can have clients in any language, not just in Java
rehemiau··on Prototype: Puppeteer for Firefox
How is the DevTools/Remote protocol better (or worse) than WebDriver prptocol for integration testing?
rehemiau··on How to Remove Bixby from Samsung Phones
Contacts can be easily exported to a file and imported
rehemiau··on Elixir 1.9
It seems similar to Ruby, but in the end it's more like Prolog
rehemiau··on Apple introduces 8-core MacBook Pro
Until it overheats and throttles :)
rehemiau··on Firefox 67.0 Released
LCD displays where backlight is actively controlled probably still draw more power when displaying black than white
rehemiau··on MicroG – Re-implementation of proprietary Android apps and libraries
Some people put it in an oven for a while but it seems like a little risky and sometimes it's only a temporary fix as well
rehemiau··on Faster Smarter JavaScript Debugging in Firefox DevTools
Does hiting F2 in Firefox freeze the browser side of things (mouse position, mouse click state, css animations state, select dropdown openness state), basically everything? Or are there other tools for that? I have more problems with "debugging" CSS than javascript
rehemiau··on Prolog's Death (2010)
All that hype on property based testing is just moving prolog to different platforms
rehemiau··on Show HN: IDE for Learning RISC-V
Maybe this book: Computer Organization and Design - RISC-V Edition ? On Amazon: https://www.amazon.co.uk/Computer-Organization-Design-RISC-V...
rehemiau··on How Discord Scaled Elixir to 5M Concurrent Users (2017)
I can recommend the browser extension "Make Medium Readable Again":

https://addons.mozilla.org/en-US/firefox/addon/make-medium-r...

rehemiau··on New Dell XPS 13 developer edition now available
I am guessing here but Solus Linux isn't probably officially supported by Dell on the Developer Edition of this laptop (you have the Developer Edition, don't you?)
rehemiau··on Would you still pick Elixir in 2019?
These were just examples from head, where I'd see it being used, but concrete examples are here: https://elixir-companies.com/

You can browse by industry, gaming here: https://elixir-companies.com/industries/gaming

Additionally, I believe Riot Games uses Erlang for their in-game chat and maybe other services. Also DemonWare (part of Activision Blizzard) used Erlang for CoD Black Ops, presentation here: http://www.erlang-factory.com/upload/presentations/395/Erlan...

Anywhere where Erlang is used, Elixir can be used too :)

rehemiau··on Would you still pick Elixir in 2019?
- chat / IMs backends

- multimedia streaming

- multiplayer game servers

Generally soft real-time systems

rehemiau··on Would you still pick Elixir in 2019?
I agree about the inspect / pry not being a real debugger but could you expand on your problems with the debugger and pipelines?

Are you using the Erlang :debugger module?

The only "problem" I see is that we can't set a breakpoint on the first line of a Elixir pipeline, but to see the value of variable from that line we can set a breakpoint on the last line of the pipeline. To see why that happens we can try stepping through a pipeline with the debugger: First "executed" is the last line of the pipeline, then the second line, then third etc and it looks like for the debugger the first line of the pipeline never happened. I don't think this is a big problem to be honest.

rehemiau··on Would you still pick Elixir in 2019?
There are more reasons, but

- better configuration (tweaked to this benchmark / hardware). Bigger communities will try harder to tweak their benchmark config. The Phoenix one is probably just the default one or slightly tweaked. Is the SQL connection pool size ideal? Are all default Phoenix-added Plugs ("middlewares") needed here? Is the BEAM virtual machine config / flags ideal? Would using OTP releases be beneficial?

- Elixir ecosystem is constantly improving the performance. The VM, language and packages versions should be updated. Elixir 1.6.5, Phoenix 1.3.2, and Ecto 2.1 are not recent.

- Abstractions used (and amount of them, so amount of work done at run-time). Compare the Fortunes "handler" implementation in vertx-postgres [1] to the Phoenix one [2]. Raw SQL vs generated query, almost bare DB connection pool vs Repository abstraction, and it's just the "handler". But you wouldn't want to maintain a lot of low level code.

- Typical functional language overhead. Copying (copying the conn when modifying it, Enum.sort on a list etc) is more expensive than modifying in-place. Again, functional code will be easier to maintain.

But overall I think in the particular benchmark you linked, Phoenix isn't that bad. Latency is pretty low and consistent (0.5 ms min and 9.9 ms max (!)) thanks to the BEAM pre-emptive scheduler. And BEAM will scale well vertically.

1. https://github.com/TechEmpower/FrameworkBenchmarks/blob/mast... 2. https://github.com/TechEmpower/FrameworkBenchmarks/blob/mast...

rehemiau··on Goodbye, EdgeHTML
Many people won't switch because either Firefox is slow on their platform (MacOS) or stuff they use are slow on Firefox (Google ecosystem, many other webapps optimized for Chrome)
rehemiau··on Advent of Code 2018
Announcement link: http://blog.plataformatec.com.br/2018/11/lets-learn-elixir-t...
rehemiau··on The State of JavaScript 2018
Works just fine in Edge. And TBH that's good enough for me, I don't think supporting IE is necessary for a tech-enthusiast targeted site.
rehemiau··on Ask HN: I’m a non-tech founder, would you recommend me working with freelancers?
First you need to find a technical co-founder you can trust. I saw a few founders fail because they thought they can manage communication with developers alone.
rehemiau··on Elementary OS – Fast, open, privacy-respecting replacement for Windows and macOS
That's a common problem I had too, I often have to modify install scripts because of it
rehemiau··on Phoenix 1.4.0 released
There's also Texas[1], which was presented on the same conference as LiveView.

[1] https://gitlab.com/dgmcguire/texas

rehemiau··on Phoenix 1.4.0 released
The book OP mentioned is not an official one. The official book [1] is being kept up-to-date

[1] https://pragprog.com/book/phoenix14/programming-phoenix-1-4

rehemiau··on Ask HN: Are any remote desktop solutions good enough for full-time use?
With the compression enabled in config it's decent on a good connection and I use it often.
rehemiau··on InVision has no physical headquarters and all 700 employees work remotely
Really heavyweight for the browser, and definitely not optimized for Firefox.
rehemiau··on Kubernetes for personal projects? No thanks
Did you try preconfigured Dokku images on Digital Ocean?
rehemiau··on Announcing Dart 2 Stable and the Dart Web Platform
With Dart they can completely ditch the JVM and Oracle
← PreviousPage 2 of 5Next →