HNHacker News
TopNewBestAskShowJobs

manusachi

355 karma · joined November 15, 2017

submissionscomments
manusachi··on Human speech may have a universal transmission rate (2019)
Blind people often go upto 600 words per minute and more with text-to-speech, which is, I think, would be an equivalent to 5x and more.
manusachi··on I'm Peter Roberts, immigration attorney who does work for YC and startups. AMA
Yes "the continuity of residence" is required for naturalization.

> An applicant for naturalization ... must have resided continuously in the United States after his or her lawful permanent resident (LPR) admission for at least 5 years prior to filing the naturalization application and up to the time of naturalization.

manusachi··on File Explorer is merged to Helix editor
One of the long-awaited features was recently merged!
manusachi··on Why is F# code robust and reliable?
*Statically typed ;)
manusachi··on Why "Structure and Interpretation of Computer Programs" matters (2011)
To be fair, what made Elixir take off, other than syntax there is also the developer experience overall, including documentation, package manager, unit testing framework out of the box, web-framework initially inspired by Rails etc.

Though, slightly off topic, but worth mentioning, that both Erlang and Elixir communities support each other very well. For example, now not only elixir is built on top of Erlang, but also Erlang adopts some things from elixir, such as monadic expression `with` from elixir inspired `maybe` in Erlang, or starting OTP27 Erlang is using ExDoc introduced by Elixir to generate documentations.

manusachi··on Ask HN: Machine learning engineers, what do you do at work?
Do you know what other ecosystem comes closest to the existing in Python? I've heard good things about Julia.

13 years ago when I was trying to explore the field R seemed to be the most popular, but looks like not anymore. (I didn't get into the field, and do just a regular SWE, so I'm not aware of the trends).

There is also a lot of development in Elixir ecosystem around the subject [1].

[1](https://dashbit.co/blog/elixir-ml-s1-2024-mlir-arrow-instruc...)

manusachi··on A week with Elixir (2013)
I guess it has something to do with those functions frequently used in guards. _Notice tuple_size/1, map_size/1, byte_size/1 and some other functions/macros are defined in Kernel and documented in the section Guards[0]_

We can't invoke remote functions (which Tuple.size/1 would have been) in guards.

Though, there are some other functions that I can't think of a reason why they are "orphaned" such as put_elem/3 to put element into a tuple, while, for example, for maps there is Map.put/3

[0] - https://hexdocs.pm/elixir/Kernel.html#guards

manusachi··on A Comprehensive Guide to Ruby vs. Elixir
Some companies from the section "Who is using Elixir" are probably not using elixir anymore unfortunately.

1. Bleacher Report gutting out OTP[0] 2. I've heard that Toyota Connected also ditched elixir after some changes in the leadership of the department (just rumors I heard in the hallway tracks at ElixirConf)

[0] - https://www.reddit.com/r/erlang/comments/18f3kl3/bleacher_re...

manusachi··on Hurl, the Exceptional Language
Agree!

For that very reason in Elixir `import` is discouraged in favor of `alias`

manusachi··on Building a hybrid native application with Gleam and Tauri
For those who is interested, as mentioned in the article, Gleam is already near v1 (v1.0.0-rc2)! And in a recent talk[1] Louis shared the idea, that there won't be major changes to the language anymore, and the main focus now is switching to the tooling!

https://www.youtube.com/watch?v=clsTrQUt-4M

manusachi··on How Pinterest scaled
They also used to be "pretty jazzed about Elixir" and had it in their stack [1], at least while Steve Cohen was there (btw, Steve is also the author of lexical[2] - one of the newer Elixir LSPs out there)

[1] https://web.archive.org/web/20160203120655/https://engineeri... [2] https://github.com/lexical-lsp/lexical

manusachi··on The Comprehensive Guide to Elixir's List Comprehension (2022)
A real world example of relatively complex filter conditions + flattened transformations simplified with comprehension I usually bring up is: https://github.com/hexpm/bob/blob/177a4354a25cb4f2f2f0349ccd...
manusachi··on Elixir's “Set Theoretical Type System” prototype/demo/showcase
AFAIR, it should be possible to convert dialyzer specs to that new type system annotations. It would probably be not as precise, but could be a good enough starting point to then gradually make them more precise
manusachi··on Google layoffs Jan 20, 2023 – California WARN public records
Do they "redefine the industry" every cycle?
manusachi··on Berkeley Mono Ligatures Release
I also like both of them. I use Fira Code (https://github.com/tonsky/FiraCode) for code editor and IBM Plex Mono for terminal.
manusachi··on Use the wrong tool for the job
> but I went with Elixir instead and just wish I could use that everywhere.

Same here! I would say, I'm in the similar camp as your colleagues but about Elixir. I'm glad to choose the right tool for the job as long as it's Elixir :)

manusachi··on Owl: A toolkit for writing command-line user interfaces in Elixir
That's one of the goals of Firefly[1]

> It can compile code more efficiently than the BEAM by stripping out dead code and compiling only what’s necessary for an application.

Though, they only mention faster compilation and smaller digital footprint, not faster startup.

[1] https://dockyard.com/blog/2022/09/01/dockyard-r-d-firefly-op...

manusachi··on Ask HN: Have you found it difficult to get quality technical content on YouTube?
I noticed that for tech content I mostly watch videos from tech conferences.
manusachi··on Elixir: Practical Concurrency Cookbook
> One of the strengths of GenServers is that they allow us to spin one up per user very easily, so they don't become a bottleneck where the Agent does.

Agent is a special case of GenServer[1]. With the same luck we could spin up an agent per user.

[1] [Agent.start_link/2](https://github.com/elixir-lang/elixir/blob/9137fd1cb2368bb1b...)

manusachi··on Ask HN: Are you satisfied with Elixir or do you regret choosing Elixir?
I think the parent commenter is not saying to write your one time use query in elixir using wrapper modules with Ecto, but tried to show that queries generated by Ecto are pretty clean and understandable in compare to other popular DataMappers/ORMs
manusachi··on Elixir 1.12
Havent's measured by myself but I'd expect performance noticeable improvement for GraphQL apps that use Absinthe, since significant time is spent on parsing, validating and serializing data around resolvers.

See this thread in elixirforum https://elixirforum.com/t/absinthe-graphql-performance-issue...

manusachi··on A beginner's explanation for why Elixir isn't more popular
> I can't imagine it being a mainstream language. So you are looking for next "mainstream", like what Ruby on Rails was 10 years ago. Seems like during this last 10 years web-service development technologies got diversified a lot. While in 2008 web-applications written in functional programming languages such as Haskell, Closure, Scala or lower level languages like Go or Rust was something exotic, now it's becoming normal, not trendy, but normal IMHO =)
manusachi··on Open sourcing e-commerce framework with Elixir
Pardon me, actually it does use Phoenix.
manusachi··on Open sourcing e-commerce framework with Elixir
Since it's inspired by Spree from RoR world, why don't you use Phoenix? (I'm just learning Elixir)