HNHacker News
TopNewBestAskShowJobs

photon_lines

809 karma · joined January 5, 2019

submissionscomments
photon_lines··on Quicksort explained IKEA-style
Can you go into a little more detail? What is broken exactly?
photon_lines··on Quicksort explained IKEA-style
If you guys like visual-explanations that are a bit more intuitive -- I put actually made guides on both data-structures and algorithms not too long ago which you can find here:

Visual-Focused Algorithms Cheat Sheet — https://photonlines.substack.com/p/visual-focused-algorithms...

Visual Data Structures Cheat Sheet — https://photonlines.substack.com/p/visual-data-structures-ch...

photon_lines··on The best YouTube downloaders, and how Google silenced the press
To answer your question: it is not open source.
photon_lines··on Rules for creating good-looking user interfaces
I agree with the principles discussed here, but am not agreement with the rules based approach. Great looking design isn't about UI 'rules' - it's about making the users of your application love what you're presenting and the application users being able to easily use the features which you're providing without having to think. You can find out more about the principles I follow here: https://photonlines.substack.com/p/an-intuitive-guide-to-int...
photon_lines··on Microsoft rewarded for security failures with another US Government contract
I use Simple-Tax (I'm based in Canada) which is 100% web-based so unfortunately I don't have a suggestion for you but I'm really surprised that Intuit doesn't provide a purely web-based interface for their software...
photon_lines··on Understanding Transformers Using a Minimal Example
So I posted this conversation between Ilya Sutskever (one of the creators of ChatGPT) and Lex Fridman within that blog post and I'll provide it again below because I think it does a good job of summarizing what exactly 'makes transformers work':

  Ilya Sutskever: Yeah, so the thing is the transformer is a combination of multiple ideas simultaneously of which attention is one.

  Lex Friedman: Do you think attention is the key?

  Ilya Sutskever: No, it's a key, but it's not the key. The transformer is successful because it is the simultaneous combination of multiple ideas. And if you were to remove either idea, it would be much less successful. So the transformer uses a lot of attention, but attention existed for a few years. So that can't be the main innovation. The transformer is designed in such a way that it runs really fast on the GPU. And that makes a huge amount of difference. This is one thing. The second thing is that transformer is not recurrent. And that is really important too, because it is more shallow and therefore much easier to optimize. So in other words, it uses attention, it is a really great fit to the GPU and it is not recurrent, so therefore less deep and easier to optimize. And the combination of those factors make it successful.
I'm not sure if the above answers your question, but I tend to think of transformers more-of as 'associative' networks (similar to humans) -- they miss many of the components which actually makes humans human (like imitation learning and consciousness (we still don't know what consciousness actually is)) but for the most part, the general architecture and the way they 'learn' I believe mimics a process similar to how regular humans learn: neurons the fire together, wire together (i.e. associative learning). This is what a huge large-language model is to me: a giant auto-associative network that can comprehend and organize information.
photon_lines··on Understanding Transformers Using a Minimal Example
If you want my 'intuitive' explanation of how transformers work - you can find it here (if you're a visual learner -- I think you'll like this one) albeit it is a bit long: https://photonlines.substack.com/p/intuitive-and-visual-guid...
photon_lines··on Microsoft rewarded for security failures with another US Government contract
I'm about to say goodbye to Windows forever -- and it has nothing to do with their security vulnerabilities. It has to do with 1) the incredibly shitty software they produce (Windows 11) and 2) their lack of ethics in regards to pretty much everything. I'm about to go all in on Linux - I've been using both OSes for years now but Linux to me today is the superior choice and I see 0 reason why anyone would want to touch Windows (and I hope to god many developers follow me) -- Windows is an absolute atrocity.
photon_lines··on The Little Book of Linear Algebra
If anyone is interested in a more visual or intuitive over-view, I made a mini-book on it as well a few years ago which you can find here: https://github.com/photonlines/Intuitive-Overview-of-Linear-...
photon_lines··on Ask HN: What LLM are you all using for coding assistance right now?
My favorite LLMs ranked:

  DeepSeek (with thinking & reasoning & search turned on)
  Claude Code
  QWEN Coder (with thinking & reasoning & search turned on)
  ChatGPT
  Google Gemini
Each one has it's own strength and I use each one for different tasks:

  - DeepSeek: excellent at coming up with solutions and churning out prototypes / working solutions with Reasoning mode turned on.
  - Claude Code: I use this with cursor to quickly come up with overviews / READMEs for repos / new code I'm browsing and in making quick changes to the code-base (I only use it for simple tasks and don't usually trust it for implementing more advanced features). 
  - QWEN Coder: similar to deep-seek but much better at working with visual / image data sets.
  - ChatGPT: usually use it for simple answers / finding bugs in code / resolving issues. 
  - Google Gemini: is catching up to other models when it comes to coding and more advanced tasks but still produces code that is a bit too verbose for my taste. Still solid progress since initial release and will most likely catch up to other models on most coding tasks soon.
photon_lines··on Claude Sonnet 4 now supports 1M tokens of context
'I don't know if LLMs have a built in scepticism like humans do' - humans don't have an 'in built skepticism' -- we learn in through experience and through being taught how to 'reason' within school (and it takes a very long time to do this). You believe that this is in-grained but you may have forgotten having to slog through most of how the world works and being tested when you went to school and when your parents taught you these things. On the context component: yes, context is vitally important (just as it is with humans) -- you can't produce a great solution unless you understand the 'why' behind it and how the current solution works so I 100% agree with that.
photon_lines··on Claude Sonnet 4 now supports 1M tokens of context
So - in the pre-training step you are right -- they are simple 'statistical' predictors but there are more steps involved in their training which turn them from simple predictors to being able to capture patterns and reason -- I tried to come up with an intuitive overview of how they do this in the write-up and I'm not sure I can give you a simple explanation here, but I would recommend you play around with Deep-Seek and other more advanced 'reasoning' or 'chain-of-reason' models and ask them to perform tasks for you: they are not simply statistically combining information together. Many times they are able to reason through and come up with extremely advanced working solutions. To me this indicates that they are not 'accidently' stumbling upon solutions based on statistics -- they actually are able to 'understand' what you are asking them to do and to produce valid results.
photon_lines··on Claude Sonnet 4 now supports 1M tokens of context
Sorry -- I keep seeing this being used but I'm not entirely sure how it differs from most of human thinking. Most human 'reasoning' is probabilistic as well and we rely on 'associative' networks to ingest information. In a similar manner - LLMs use association as well -- and not only that, but they are capable of figuring out patterns based on examples (just like humans are) -- read this paper for context: https://arxiv.org/pdf/2005.14165. In other words, they are capable of grokking patterns from simple data (just like humans are). I've given various LLMs my requirements and they produced working solutions for me by simply 1) including all of the requirements in my prompt and 2) asking them to think through and 'reason' through their suggestions and the products have always been superior to what most humans have produced. The 'LLMs are probabilistic predictors' comments though keep appearing on threads and I'm not quite sure I understand them -- yes, LLMs don't have 'human context' i.e. data needed to understand human beings since they have not directly been fed in human experiences, but for the most part -- LLMs are not simple 'statistical predictors' as everyone brands them to be. You can see a thorough write-up I did of what GPT is / was here if you're interested: https://photonlines.substack.com/p/intuitive-and-visual-guid...
photon_lines··on My 2.5 year old laptop can write Space Invaders in JavaScript now (GLM-4.5 Air)
This is why I love using the Deep-Seek chain of reason output ... I can actually go through and read what it's 'thinking' to validate whether it's basing its solution on valid facts / assumptions. Either way thanks for all of your valuable write-ups on these models I really appreciate them Simon!
photon_lines··on LIGO detects most massive black hole merger to date
Thank you - I will correct the mistake!
photon_lines··on LIGO detects most massive black hole merger to date
Correct. If you're curious about the 'essence' of what black holes are I actually just did a write-up on them which you can find here: https://photonlines.substack.com/p/an-intuitive-guide-to-bla...
photon_lines··on LIGO detects most massive black hole merger to date
Energy and momentum are always conserved in EVERY physical process. We can distinguish three types of collisions: “sticky” ones, in which the kinetic energy decreases (typically, it is converted into heat); “explosive” ones, where the kinetic energy increases; and elastic ones, in which the kinetic energy is conserved. Since the total energy (rest plus kinetic) is always conserved, it follows that rest energy (and hence also mass) increases in a sticky collision, decreases in an explosive collision, and is unchanged in an elastic collision. The resulting black hole in other words would have way more of a mass than 2M since you're talking about a 'sticky' collision in the above instance. You can see an example of why this is in Griffiths' text (Introduction to Elementary Particles (which I highly recommend)) -- page 101 contains a great example of what happens to the mass of particles in 'sticky' collisions: https://www.hlevkin.com/hlevkin/90MathPhysBioBooks/Physics/Q...
photon_lines··on Visualising data structures and algorithms through animation
Fantastic resource - just an FYI I just posted a 'visual' review of most of the key algorithms used in comp sci and the real world which is available here: https://photonlines.substack.com/p/visual-focused-algorithms...
photon_lines··on TopoNets: High performing vision and language models with brain-like topography
I love the paper - don't read into the negative comments. I find that a lot of online feedback (more so on Reddit and much less so on HN (usually)) tends to be opinionated and misinformed by quite a bit these days. Fantastic work and fantastic read.
photon_lines··on Nokia's internal presentation after iPhone was launched (2007) [pdf]
The whole report shows that it was a company being run by bearcats and middle-managers who focused on sales rather than product. The detailed out exactly what was coming and why it was great and their general response is atrocious. Some of the highlights of the presentation which stood out to me (on page 12):

  1. "Work closely with T-Mobile" 
Your competitor just launched a superior product and your response is to 'work closely' with T-Mobile?? Are you kidding me?.

  2. "Prioritize touch UI development, simplifying basic functionality and PC suite development very high." 
Response here was spot on and highlighted that they needed to hire a new chief UI-designer and work on prioritizing touch development -- this should have been number 1 without a question and it looks to me like they put it on the back-burner.

  4. "Analyse what could be Apple’s next release of “iPhone mini” to mass market price points and plan counter-measures for it." 
Anytime you're focusing on your 'response' to a competitor, you're behind in the game (by miles) and you've lost already -- especially if you're responding with 'counter-measures.' Once again - are you kidding me?

  5. "Kill market for such an expensive device by filling mid-range with own/Google/Yahoo experiences" 
Incredibly stupid response -- you're planning to kill something the market may demand massively by...filling your product / experience with 3rd party integrations. Idiocy at its very finest.

  6. "Accelerate Nokia's own free push e-mail project and make it less hidden within the company." 
This is a great sign of a company being run by middle-managers - secret projects with no evidence that they will push your product boundary nor satisfy consumer demand and why in the world would you keep anything here 'secret' - sheer idiocy.

  7. "Investigate and play hard in possible IPR infringements" 
Another sign of a company being run by idiots.

  8. "Drive key partnerships to highlight Nokia's superior strength in the market, keeping things in perspective." 
Wow - use partnerships (i.e. relationships / sales) to counter a superior product. These guys sure are on the ball /sarcasm.

  10. "Highlight potential weaknesses of the iPhone" 
Whenever you respond to a threat and one of your highlights is to once again 'talk' your way our of it by highlighting your competitors' weaknesses -- it's usually an indication that your organization is being run by middle-managers or absolute morons.

This whole report shows exactly why Nokia failed.

photon_lines··on Hey, wait – is employee performance Gaussian distributed?
I disagree. The best employees are the employees who don't need to be managed. They figure what out what needs to be done and walk into the business (from day one to the last day they are there) thinking like owners. Google in its very early days operated without managers. Some of the most successful companies / start-ups delivered what they delivered not due to management, but due to having a few highly-motivated individuals who were dead set in delivering something outstanding to the world. They didn't need to be micro-managed into doing what they did - they figured out what needed to be done and figured out how to get there.
photon_lines··on What Life Means to Einstein (1929) [pdf]
Alternative HTML version: https://www.linkedin.com/pulse/vierecks-interview-einstein-1...
photon_lines··on What Life Means to Einstein (1929) [pdf]
The last paragraphs really are beautifully written:

"When he ascends to his attic, she does not cling to his coat tails. When he wishes to be alone, she completely eliminates herself from his life. She spares him disharmonious contacts and protects the serenity of his mind with the devotion of a vestal virgin guarding the sacred fire.

It is by no means impossible that with a less-sacrificing mate, Einstein would not have made the discoveries which link his name with the immortals. Thus love, that moves the sun and all the stars, sustains in its lonely path the genius of Albert Einstein."

photon_lines··on Your Immune System Is Not a Muscle
I 100% agree - I just wanted to add that processed food also plays a huge role. Our ancestors didn't eat canned fish dipped in high calorie oils or snacks / junk food with no fiber. White bread is used commonly throughout many households but whole-grains are a lot healthier. Eating food which has a high degree of high fructose corn-syrup or sugar with no added fiber has a detrimental effect on health and is not something that our bodies are used to. The high-glycemic index spikes our bodies go through when you combine these factors does a ton of damage to our health and yes - I believe it does have a role in triggering auto-immune reactions. Type 1 diabetics as an example are diabetic due to their own immune systems falsely labelling the pancreas beta-cells as enemies and triggering an auto-immune response -- the reason I believe this happens is due to the high-inflammatory reaction our pancreas go through when we eat extremely highly processed foods (i.e. high sugar / glycemic index items with high insulin spikes & lacking fiber). I don't have a lot of data to prove any of this - so this is my hypothesis but I can confirm that ever since I started staying away from processed foods, I've been in amazing health and I feel much better than when I was slightly over-weight and consuming processed junk.
photon_lines··on Your Immune System Is Not a Muscle
Vitamin D (or lack of it) plays a vital and huge factor:

"A prospective study of dietary intake of vitamin D found women with daily intake above 400 IU had a 40% lower risk of MS. [53] In a study among healthy young adults in the US, White men and women with the highest vitamin D serum levels had a 62% lower risk of developing MS than those with the lowest vitamin D levels. [54]"

"Another prospective study in young adults from Sweden also found a 61% lower risk of MS with higher serum vitamin D levels; [55] and a prospective study among young Finnish women found that low serum vitamin D levels were associated with a 43% increased risk of MS. [56] In prospective studies of persons with MS, higher vitamin D levels have been associated with reduced disease activity and progression. [57,58]"

"Collectively, the current evidence suggests that low vitamin D may have a causal role in MS and if so, approximately 40% of cases may be prevented by correcting vitamin D insufficiency. [59] This conclusion has been strengthened substantially by recent evidence that genetically determined low levels of vitamin D predict higher risk of multiple sclerosis."

"While this may largely be due to genetic differences, some studies suggest that T1D rates are lower in sunnier areas. Early evidence suggesting that vitamin D may play a role in T1D comes from a 30-year study that followed more than 10,000 Finnish children from birth: Children who regularly received vitamin D supplements during infancy had a nearly 90% lower risk of developing type 1 diabetes than those who did not receive supplements. [61]"

"A prospective study among healthy young adults in the US found that White individuals with the highest levels of serum vitamin D had a 44% lower risk of developing T1D in adulthood than those with the lowest levels. [63]"

"The Vitamin D and Omega 3 trial (VITAL), a randomized double-blind placebo-controlled trial following more than 25,000 men and women ages 50 and older, found that taking vitamin D supplements (2,000 IU/day) for five years, or vitamin D supplements with marine omega-3 fatty acids (1,000 mg/day), reduced the incidence of autoimmune diseases by about 22%, compared with a placebo. Autoimmune conditions observed included rheumatoid arthritis, psoriasis, polymyalgia rheumatica, and autoimmune thyroid diseases (Hashimoto’s thyroiditis, Graves’ disease). [80]"

Source: https://nutritionsource.hsph.harvard.edu/vitamin-d/

photon_lines··on The Elegant Universe: 25th Anniversary Edition
https://inspirehep.net/authors/1007642
photon_lines··on The Elegant Universe: 25th Anniversary Edition
'Greene isn't a paragon of scholarship either though - again, superficially, for many years now he's been a popsci celebrity rather than a real, actual, string theorist' - Working at Cornell and Columbia, doing research on string theory and writing best-selling books on physics today qualifies a person as a pop-sci physicist? What would you have grouped Einstein as when he was working at the patent office? No really - serious question.
photon_lines··on The Elegant Universe: 25th Anniversary Edition
I 100% agree with you - I don't buy anything about string theory and I believe it has almost nothing to do with the state of reality, but the attempt itself is honorable and the mathematics behind it is beautiful and can be used to advance our understanding of the universe. If it also inspires others to get into physics and discover new things about reality - it's an overall win for humanity so kudos to any string theorists out there :)
photon_lines··on The Elegant Universe: 25th Anniversary Edition
The Fabric of the Cosmos is far far better in my opinion and doesn't stick to theories - he attempts to explain concepts in an intuitive manner and it's an amazing exposition into physics.
photon_lines··on Ask HN: How do you work as a tech lead?
1. Mostly through daily stand-ups, but I hate these: I only do them due to MBAs in suits love progress reports and have the impression developers being 'idle' is a detriment to the business which has costs which they have to minimize. I tell my team that anytime they have a blocker to try to resolve it - but if they can't do it quickly to come to me (and I usually resolve most issues quite quickly just by guiding them through my process so they can learn from it).

2. This once again depends on the company. I prefer not interfacing with them: my job is to deliver value to the business by serving both the staff and the businesses' customers. My number one initiative when I am on-boarded to any organization is to understand: what is your goal, what do you want to accomplish and who are you here to serve? Once I figure that out, I can think in terms of end-users and various stake-holders and try to work backwards rather than having to have many useless meetings and having to constantly wonder what I should do next. Think in terms of the customer: what can you do to improve the product for them and what can we do to improve the business in general?

3. I usually do yes, but most of them are led by upper management and I mostly think of them as a waste of time. If I need anything, I get in touch to the user or customer who has the information and find this information directly. There is one recurring meeting that I do tend to have with my team: weekly learning sessions and these are non-mandatory and not really recurring.

4. Documentation to me is very important, so any communication which I have to do more than twice I document and I put it on a wiki or shared knowledge base which both me and the team can reference and point to in case anyone needs guidance. I'm also a huge fan of written requirements but that's me.

5. 1) Minimize meetings 2) Unblock your team by helping them out when they need help and teaching them how to solve their own issues instead of always having to come to you - if they can't resolve problems themselves or they come to you every day, maybe it's time to think about letting them go and hiring someone who is able to take more ownership and has a bit more talent in solving problems 3) Keep asking the question why? What is the business trying to achieve with my team and how can I improve it? Which activities can I do which are 'high-leverage' and which will help us accomplish what we need to accomplish? I'm very hands on so the way that I play 'lead' is by minimizing micro-management and getting my hands dirty: I develop the hard stuff that I believe my team won't be able to handle and try to also foster communication between my team as well: I tell them if they ever need anything to come to me directly and I will try to get them the information they need. Communication is the number one thing that will determine a team's success so I try to keep it moving - how can we communicate what we need to develop more effectively and how do we make this process more efficient? Sprints and stories and all that other crap to me is a sign that most software firms today are broken and that most developers take 0 ownership on aligning with the business. This is the reason why we have so much broken and shitty software today as well. Hire people that are excited about developing solutions for real human beings and that WANT to see the business progress without having a 'product owner' or 'sprint planner' or some bullshit-job personnel having to either disturb you and guide you and teach your staff to do the same. Also, take ownership and pride in doing quality work and teach your team to do the same by leading by example.

6. Make sure to understand the product and business and first and foremost: the customer and do your best to solve their problems. Also, read books which aren't just about copying stories on a story board or about shitty broken agile processes; understand general things about business and human psychology and usability and design - this will equip you to make decisions without having to be micro-managed by 'the business.' If the business needs and insists on micro-managing you or your team - then leave the company and find a place that isn't broken (albeit it is tough to find these...when you do find them, you'll find a lot of rewards in working for them - autonomy and pride and not being micro-managed are all amazing things).

← PreviousPage 2 of 9Next →