HNHacker News
TopNewBestAskShowJobs

wstuartcl

361 karma · joined May 8, 2018

submissionscomments
wstuartcl··on Why does my SSH private key still work after changing some bytes? (2016)
I actually use this as a form of a canary when ssh keys must be reside in multiple systems -- in the case where a key is found outside of is proper place it identifies the source during investigations.
wstuartcl··on Phoenix 1.7 is View-less
yes active clients reconnect automatically, if you are doing rolling traditional deploys its great. It is running on beam so you can do live in place deploys too (although it is much more work).
wstuartcl··on Phoenix 1.7 is View-less
I think if you actually try elixir you will find its lack of typing to be of little concern.
wstuartcl··on Phoenix 1.7 is View-less
Yes and no.

It handles crappy connections ok -- it will auto reconnect as needed.

As far as full offline -- it has interfaces to easily alert the user via UI that they are disconnected, however, just like 99.999% of non liveview apps when you are offline things start breaking (load just about any static page site and submit a form or navigate when offline).

wstuartcl··on Phoenix 1.7 is View-less
Yeah its JS where you want JS and no where else.
wstuartcl··on Phoenix 1.7 is View-less
It may be redundant but I think its always important to note that processes as listed above are not like os processes here -- but an extremely lightweight internal VM thread like thing in the BEAM VM. In is not uncommon to have many millions running in the beam VM. Very much lighter than threads or OS processes.
wstuartcl··on Phoenix 1.7 is View-less
there are not a ton -- the pain points mostly boil down to:

Don't use it for extremely latency sensitive UI's (there is around trip and most of the time for most uis this is not an issue even using a server across the world).

Don't use it for animation heavy UIs (you can do animations with it but think things like game UI).

It does not work offline (in most cases it s the same point with standard web and offline).

All of that said, the answer to your second "question" is: There is a process (this is an erlang process and VERY light -- much lighter than a thread its not unusual to have millions of them running at a time in beam) per active page. So one per use per tab or session.

Also yeah, there is no lock in -- you can have 99% of your pages use static rendering (dead pages) and just use liveview for the ones that would benefit. The choice does not come with sharp edges.

wstuartcl··on Promotion of alternative social platforms policy
I think it is pretty clear this is the case, I mean look at any post he has responded to with dislike in the last month -- every day there is a queue of disabled accounts that have interacted with musk or poked his thin skin.

At the end of the day as far as i am concerned its a dead platform -- just the ad reductions against the 1bn + interest means the runway is on fire. Whatever elon does at this point is just pretending to do work effort while juggling balls in the air. It is clear he will not only tank twitter but given he has already hit a sell off cliff on tesla shares he will be licky to have any relevent input on that corp in the near future.

wstuartcl··on Promotion of alternative social platforms policy
That's the thing, free speech is not something that exists in society -- there are always ramifications/costs for speech. Free speech does exist as a protection from government oversight of ideas -- but even in this case there are limits (yelling fire in a theater).

Anyone claiming they are all about unlimited free speech on any platform is either delusional or lying -- the market costs (and laws) will always impact speech in the best case, and the people running the site will always hit their limits. It always devolves into "free speech (for some definition of free that I define as free)".

In twitters case, free speech is limited by the whims of musk's thin skin on one hand while open for concepts he agrees with like hate, antisemitic and racist alt right junk.

wstuartcl··on Show HN: I made a Slack bot that qualifies your sign-ups using GPT-3
These types of executions are why I have great fear for the future and AI. You are taking data from a "confident idiot" and parsing as truth. The output of GTP-3 or any of these models is not clean data or truth, but in many cases appears to be truthy. Systems built on this foundation are (at least given current state of the art models) inherently built on bad data (and many times hard to identify as bad, bad data).

explain why 2+2+1-2+1=5 as a math teacher Sure! When we perform arithmetic operations, we follow a set of rules known as the order of operations. These rules dictate the order in which we should perform the operations in an arithmetic expression in order to obtain the correct result.

The order of operations is as follows:

Perform all operations inside parentheses or other grouping symbols first. Perform all multiplications and divisions (starting from left to right). Perform all additions and subtractions (also starting from left to right). Now, let's apply these rules to the expression 2+2+1-2+1. First, there are no parentheses or other grouping symbols, so we move on to the next step.

Next, we perform all multiplications and divisions, but there are none.

Finally, we perform all additions and subtractions, also starting from left to right. This gives us the following:

2 + 2 + 1 - 2 + 1 4 - 2 + 1 2 + 1 3

Therefore, the result of the expression 2+2+1-2+1 is 3.

I hope this helps to clarify the matter. If you have any further questions, please don't hesitate to ask.

wstuartcl··on UUID type for a database Primary Key
https://github.com/Jakeii/nanoid-postgres is an example of one way just pick a length that has enough space for your projected maxcount and ensure unique on the schema/index.
wstuartcl··on UUID type for a database Primary Key
Seems like you are choosing the worst of both cases then. If you are effectively using uuid as a slug there are better choices out there that take less space to encode store and index.
wstuartcl··on How sustainable is high interest rates?
exactly, low interest rates were the anomaly -- they have just been happening recently and long enough that entire generations have attached to the expectation.
wstuartcl··on Bumblebee: GPT2, Stable Diffusion, and More in Elixir
Jose, this is all very exciting and cool congrats to the team. I have been trying to wrap my head around this (ML is _not_ one of the areas I have a lot of background in) to see if I could figure out how to pull in something like Whisper (speech to text/translation/transcription model) and if I am getting it it looks like its just missing a little bit of hookups to the audio parsing -> tensor. if you are looking for votes to extend the core models implemented that would be my vote -- or fodder to blog about how to pull in a model that does not currently exist it looks like that one would have a lot of learnings and show the process well. Anyways this all is so cool and is amazing -- I did not realize those core parts were so built out (axon etc).
wstuartcl··on The Slow Goodbye to Twitter
but a huge hit to acquisition AND value add targeted ad impressions (IE expensive impressions). It allows Elon to wave the "hey look at the huge traffic" flag around while self sabotaging the business model further.
wstuartcl··on The Slow Goodbye to Twitter
I guess, traffic is great. I bet a big fire on a busy street leads to a bunch of gawkers too -- but maybe the restaurant next door is not getting any value from that foot traffic.

In the case of twitter's business model they have lost a projected 300-400MM of ad placements for the forecasted year -- so each of those visitors is consuming cost but twitter is unable to collect the impression charges as the buys are lower than the inventory.

So yeah traffic is great -- but not always profitable (especially when you insist on peeing in the pool).

wstuartcl··on DHH (and Fred Brooks) on Twitter's Headcount
Also OTP/erlang and elixir and whatsapp use case are very much a match made in heaven -- they were able to get a whole mess of productivity for "cheap" because the core platform they built on came with a robust foundation to build on.
wstuartcl··on An Elixir/LiveView game written entirely by ChatGPT
I mean if you ask the same question to a human your question is ambiguous enough that you will get the same type of issues.

How is any being or AI meant to read your mind to know you don't want instructions for system X but assume the instructions would be good on system Y etc. I feel sorry for the humans you expect to query you to get what you really want out of you.

wstuartcl··on Working with Tailwind CSS every day for 2 years
Yep, that looks like what a few seconds of my vim typing looks like but tossed into source code. Ill take the wall of tailwind any day over that.
wstuartcl··on Working with Tailwind CSS every day for 2 years
I don't agree with the parent poster, but I would say that there is a large portion of frontend devs that "don't understand css" at a very deep level. For every 1 that does there are a good 9 or 10 that just get enough to get by.

That said -- you need to know the average amount of CSS to be successful using tailwind.

wstuartcl··on Working with Tailwind CSS every day for 2 years
That seems to be a straw man its never just plain html and CSS. Even if it were, what you describe just devolves into dozens of similar or slightly different (many times by mistake) classes that all need to be maintained.

I would much rather dig into a component that has been built to be flexible for all of those needs to keep it up to date, restyle of add new behaviors and designs requirements vs going through hundreds of html files looking for all of the classes that were created to do those variations you list above (including effectively duplicate (or worse yet cascaded with different behaviors to accommodate the different html construct they were placed on when created).

I really did dislike tailwind from first learning about it, but using it has turned me on it 100%.

wstuartcl··on Ask HN: Is This Typical Procrastination?
I think the most common advice is to break your wanted tasks into smaller steps and just do the first small step. then do the next. If you feel yourself looking for an alternative focus, break the steps into smaller steps and do the first one.

One of the primary reasons to procrastinate is to do something perceived as more enjoyable or easier than some nebulous task -- by thinking of the tasks you need to do in these small almost trivial pieces it can make the trade off advantage for alternative timewasters seem less fruitful. Plus you get the reinforcement of completing those small chunks.

wstuartcl··on Ask HN: Why the Linux Kernel doesn't have unit tests?
kind of this -- I can't imagine any hardware company moving forward without fixture test flows of all sorts and a lot of effort put into them. It really seems like an area where software tries to stand on the edge of "art" forgetting that there is a science and craft needed when teams revolt against testing.
wstuartcl··on Ask HN: Why the Linux Kernel doesn't have unit tests?
Rewrites are not super common -- but IMHO if you must do one the first step is to move the tests over. Unless your goal with the rewrite is to rearchitect the interfaces at which point your basically greenfielding anyways.
wstuartcl··on Congress members tried to stop the SEC’s inquiry into FTX
If it quacks like a duck, looks like a duck, swims like a duck, shits like a duck and confit like a duck (lipsmack) -- its pretty reasonable to assume it may be a duck and not ponder about how it could be a zebra.
wstuartcl··on The $205.4B Gulag
I don't think anyone is discounting the problem -- but they are reacting to the scale. Its like you jumped onto a story about a child stepping on a landmine to complain about your paper cut.
wstuartcl··on The $205.4B Gulag
There may be issues on both fronts but yeah, scale does matter -- there is a difference between someone that is basically an indentured (and locked up at night) servant and a grad student that is doing research that is not making comfortable wage in a high COL area.
wstuartcl··on WhatsApp data leak: 500M user records for sale
I mean, all this data provides is phone numbers that have been used (at least once) in whatsapp and this is publicly available via apis and simple scraping.
wstuartcl··on WhatsApp data leak: 500M user records for sale
I believe india requires their whatsapp services to be segmented in countryand backdoors to data -- they have a bunch of laws like this regarding communications all the way up to sat phones.
wstuartcl··on WhatsApp data leak: 500M user records for sale
Someone just enumerated numbers via scraping -- seems like this only would have marginal value for spammers and maybe as a check if whatsapp was used by a given number.
← PreviousPage 3 of 8Next →