Better HN
topnewbestaskshowjobs
Log inSign up

username3

1,622 karma · joined Feb 2, 2010 (16y ago) · 832 submissions

@usernamethree
Submissions

comment 1y ago · link · parent

> I wrote up a detailed blog post about tail call optimization in Elixir/Erlang and its performance. The TLDR; sort of is that none tail call optimized recursive functions (body-recursive) can be faster and more memory efficient than TCO functions. This is something that I never thought before, that TCO is always faster seems to be a common misconception. My example is also not contrived - it’s an implementation of map.

https://pragtob.wordpress.com/2016/06/16/tail-call-optimizat...

comment 1y ago · link · parent

You should see what Elixir is doing with Tidewave and usage rules.

https://www.zachdaniel.dev/p/usage-rules-leveling-the-playin...

comment 1y ago · link · parent

This repository from the Ash book gives you an example of what it can do.

Model.

https://github.com/sevenseacat/tunez/tree/end-of-chapter-10/...

View.

https://github.com/sevenseacat/tunez/tree/end-of-chapter-10/...

comment 1y ago · link · parent

Add an attribute to a model, run `mix ash.codegen`, it creates migrations for you.

Ash can do paging for you.

You don’t need to create a context file with CRUD functions for your Repo.

See the example repository for the Ash book.

https://github.com/sevenseacat/tunez/tree/end-of-chapter-10

comment 1y ago · link · parent

Would anyone care if he just used a shorter bat that didn’t get thinner?

6.

Ask HN: Terminal UI Framework for Web?

2 points · by username3 · 2y ago · discuss

comment 2y ago · link · parent

Are there any terminal UI frameworks for the web? I want to create web apps that only use keyboard shortcuts.

8.

Ask HN: What is the state of private exploits?

9 points · by username3 · 2y ago · discuss

comment 2y ago · link · parent

dotzoltanbalazsdotcom.com is unregistered.

zoltanbalazs.com was registered in 2021.

comment 2y ago · link · parent

Do you plan to add custom labels?

Let’s say we ask a question to a politician and they ignore it.

Can we label the question as unanswered, so clients will remind users the question is unanswered?

comment 2y ago · link · parent

What does Erlang use?

comment 3y ago · link · parent

How does this compare to Phoenix LiveView websocket sessions?

comment 3y ago · link · parent

Wikipedia should allow more articles to have sections for viewpoints from different biases and agendas.

comment 3y ago · link · parent

Tax prep firms should market themselves as software to audit automated IRS tax calculations.

comment 3y ago · link · parent

> As early as 2011, a Google engineer revealed he had been working on a tool to Google someone’s face and bring up other online photos of them. Months later, Google’s chairman, Eric Schmidt, said in an onstage interview that Google “built that technology, and we withheld it.” “As far as I know, it’s the only technology that Google built and, after looking at it, we decided to stop,” Mr. Schmidt

comment 3y ago · link · parent

Comma after first_value?

  def eat_value([first_value, | _rest_of_list]) do

comment 3y ago · link · parent

Should we flag paywalled content posted on HN?

comment 3y ago · link · parent

What is a proportional representation system? If the votes splits 40/35/25, winner doesn’t take all? Each party will have representatives 40/35/25?

comment 3y ago · link · parent

Apple’s keynote showed an image similar to the 3-lens optical train at the bottom of https://simulavr.com/blog/ppd-optics/ and they have a screenshot of HN.

comment 3y ago · link · parent

Didn’t America have churches before tax exempt laws? Tax laws came later. Your problem is with taxes and government spending. Remove taxes churches are exempt from and raise sales tax.

comment 3y ago · link · parent

Is everyone misreading the article?

The new policy is to ignore your default browser from Outlook and Teams and open Edge. There is an option to turn off this policy to use your default browser.

> Microsoft 365 Enterprise IT admins will be able to alter the policy, but those on Microsoft 365 for business will have to manage this change on individual machines.

12345
28