HNHacker News
TopNewBestAskShowJobs

ricketycricket

338 karma · joined September 18, 2015

submissionscomments
ricketycricket··on Ask HN: Is Erlang an albatross to Elixir adoption?
`mix phx.new foo --no-live` does that. LiveView is completely optional. Node/npm has been completely replaced by esbuild and even that is optional if you want to rip it out and handle assets another way.
ricketycricket··on Ask HN: What is your recommended stack for real time chat?
> Also if you want to get really complicated multi-service design, Umbrella apps are leagues better than docker-compose setups that I have had on dev machines that make a 16G Macbook pro instantly put everything into swap.

Not sure I feel the same warm feelings about umbrella apps and I definitely don't think you can compare them to general-purpose container orchestration like docker-compose, but that's totally an optional part of the language.

Otherwise, yes, Elixir/BEAM is an excellent soft real-time environment for developing chat applications. If your scale goes off the charts (millions of concurrent users), you can extend with Rust for the slower operations in your critical path. See https://discord.com/blog/using-rust-to-scale-elixir-for-11-m...

As mentioned, Phoenix Channels is a great place to start and will get you very far. The other nice and unique things in Elixir & Phoenix (OTP, LiveView, etc.) are just a bonus.

ricketycricket··on Apple Studio Display Review: Nothing to See Here
There is no 27" iMac now.
ricketycricket··on Google digital advertising antitrust litigation [pdf]
> People are being awfully credulous of two sentence fragments quoted in an editorial paragraph. Much of this could certainly be true but my bullshit meter is going off on the level of narrative they're reconstructing in all the non-quoted portions.

This is not an editorial document, it’s a legal complaint by the Attorneys General of 17 U.S. states and commonwealths demanding a jury trial (among other things). The allegations are unproven at this point. The demanded trial process (discovery, examination, etc.) is what will provide the evidence.

One way or another though, we’re going to see if all of these claims are true. It just will take some time.

ricketycricket··on Forget Twitter Threads; Write a Blog Post Instead
> In fairness to me though, I never told anyone to change - I simply gave my opinion then questioned why people find it useful and get value from it.

Though, in fairness to ljf, your tl;dr at the top says "Please stop; write a blog post instead."

ricketycricket··on Crypto CEO threatens customers after mistakenly sending them millions
The document you cited actually supports toomuchtodo’s position:

“The law generally treats a failure to return money that is wired by mistake as unjust enrichment or conversion and requires that the recipient return such money to its sender. Under New York law (which applies here), however, there is an exception to this rule: The recipient is allowed to keep the funds if they discharge a valid debt, the recipient made no misrepresentations to induce the payment, and the recipient did not have notice of the mistake.”

I’m assuming no debt was owed to these random people.

ricketycricket··on Firefox Release 89.0
You can also re-enable compact mode in 89 by toggling browser.compactmode.show in about:config. Hope they don't remove it entirely.
ricketycricket··on How Intuitive Are Macs Really?
Can't make any excuses for Finder. I always reccomend Forklift for more advanced users. Dual-pane, midnight commander shortcuts, multi-rename, SFTP/S3 support, etc. https://binarynights.com
ricketycricket··on Ask HN: Are you satisfied with Elixir or do you regret choosing Elixir?
Joel, I wish you'd stop appearing in every popular Elixir post's comments to say something bad about the language or ecosystem. You've admitted in previous discussions that you've never even used Elixir, so why even comment on a post asking about personal development experiences with the language?

>It got most of its (now faded) hype by trashing Ruby, which rubbed me the wrong way.

It's a programming language, not a sports team. Developers excited about a new language are allowed to be excited and compare with other languages. I don't know what trashing you saw that offended you, but commenting on every HN post to try to steer people away is unproductive.

ricketycricket··on Gleam 0.15
Syntax-wise, this is a pretty great comparison: https://gleam.run/cheatsheets/gleam-for-elixir-users/
ricketycricket··on Firefox 89.0 Beta brings a new look
Thank you for pointing out the about:config setting. Looks like the new compact mode is roughly the same density as the old normal mode. Definitely a loss.
ricketycricket··on Beam VM Wisdoms (2019)
Gleam exists: https://gleam.run/
ricketycricket··on We Don’t Use Docker
You can also cmd + click the current directory name in the menu bar to get the same menu.
ricketycricket··on The future of web software is HTML over WebSockets
The sensible response to that scenario would be: Why did you make HN a Live View? I don't think anyone is suggesting that you make anything a Live View that is more appropriate as plain HTML. If you wouldn't use React, you shouldn't use Live View.

I understand you needed an example, but a better comparison would be a heavy SPA with real-time interactivity. In that case, if your server is down your API calls will fail and you're going to have to handle the failure and let the user know something went wrong any way. If anything, Live View's built-in buffer and retry can actually provide a better user experience because the UI will automatically "catch up" when the client reconnects.

> You also don't want to disable this visual warning because on slower devices it might take 2 seconds to load the page which is much different than an uncontrolled disconnect.

Live View loads the entire initial page over HTTP, then mounts the Live View. Your slow device won't see any difference if the visual warning is disabled or not.

ricketycricket··on The future of web software is HTML over WebSockets
You are welcome to actually look at the code for any of these solutions.

Here is the documentation for Phoenix channel authentication (what Phoenix Live View is built upon): https://hexdocs.pm/phoenix/channels.html#using-token-authent...

Additionally, here is some documentation on the security considerations specific to Live View: https://hexdocs.pm/phoenix_live_view/security-model.html

Searching can probably find you more information.

ricketycricket··on The future of web software is HTML over WebSockets
dnautics isn't wrong. Even the issues you bring up are addressed by Erlang/OTP. Distributed Erlang with 10K nodes, hot code reload, etc.
ricketycricket··on The future of web software is HTML over WebSockets
> then what's the purpose of HTML over web sockets?

Because you can do things stateless HTML alone cannot do.

No one is trying to re-implement HTTP, or even remove it from the equation.

What people are trying to reimplement (or rather, replace) is the HTML + JSON:API + React + Redux mess. Websockets is a means to that end.

ricketycricket··on Intel mocks Apple in new campaign highlighting things users can’t do on a M1 Mac
> M1 Mac is three different computers; Intel is taking a swipe at Apple Silicon in general.

You are exactly correct: Apple silicon. Intel is calling out a singular competitor. Apple called out all PCs.

> They want Apple to use Intel chips for refreshes on the bigger devices (MBP16 still ships with 9th-gen Intel, iMac with 7th-gen).

If there are generation-bump Intel refreshes for those machines coming, they have either been planned all along or will be a result of unexpected problems getting the M1X (or whatever would be in the those machines) ready or available. Intel isn't going to convince Apple to delay their architecture transition, especially now that they have released ads attacking their products.

> Anything they can do to delay Apple Silicon market takeup will dampen the attractiveness of post-M1 models running Apple Silicon, because nobody wants a machine with sparse software availability and that's a problem that won't get resolved until the user base is much bigger.

Oh, I agree this is their intent. But trying "Anything they can do" means they aren't coming from a position of strength.

ricketycricket··on Intel mocks Apple in new campaign highlighting things users can’t do on a M1 Mac
There is no need to attack my intelligence.
ricketycricket··on Intel mocks Apple in new campaign highlighting things users can’t do on a M1 Mac
I'm sure the existing contracts are being fulfilled, but as soon as Apple announced they were transitioning their product line away from Intel they became competitors.
ricketycricket··on Intel mocks Apple in new campaign highlighting things users can’t do on a M1 Mac
PC isn't a brand. Apple was referencing all non-Mac computers (not just Dell or HP) as their competitor. Intel is specifically referencing a single chip from a single competitor.

If the Apple ad said "Mac is so much better than the Dell XPS", that would be different.

ricketycricket··on Intel mocks Apple in new campaign highlighting things users can’t do on a M1 Mac
> Pretty sure everyone's heard of Apple. Come on.

They are not suggesting the ad is making people aware of Apple. They are suggesting that the ad is making people aware that Intel sees the M1 as a legitimate competitor, therefore suggesting to buyers that it is a worthy alternative to Intel's products. An unintended consequence of attacking a specific competitor or product is that you can raise awareness of the value of your competitor's product.

https://en.wikipedia.org/wiki/Streisand_effect

ricketycricket··on Intel mocks Apple in new campaign highlighting things users can’t do on a M1 Mac
There is no reason why an M2 or M1X (or whatever ends up in the Mac Pro) can't have ECC and more PCIe lanes.
ricketycricket··on Data fetching on the web still sucks
LiveView doesn’t allow arbitrary queries (or any queries really), so this is a non-issue.
ricketycricket··on Interview with an anonymous AWS cybersecurity engineer
> Jeff Bezos studies other “great men” in history and imagines himself to be a kind of Alexander the Great. There's even a building on the Amazon campus called Alexandria, which was the name of one of the company’s early projects to get every single book that had ever been published to be listed on Amazon.

I'd guess the building is named after the Library of Alexandria – one of the largest and most significant libraries of the ancient world – and not because of a god complex as the story implies.

ricketycricket··on System76 – Pangolin
1080p == 2K
ricketycricket··on Run Homebrew Natively on Apple Silicon Arm M1
DTKs were $500 USD, not free.
ricketycricket··on Moving my serverless project to Ruby on Rails
They work at Facebook on react native. I’m guessing they know react.
ricketycricket··on Moving my serverless project to Ruby on Rails
> 2. Lambda has provisioned capacity.

I know little about lambda. Provisioned capacity, as in an instance running 24/7? Like a server?

ricketycricket··on Moving my serverless project to Ruby on Rails
This was the argument for php in 2010.
← PreviousPage 3 of 4Next →