HNHacker News
TopNewBestAskShowJobs

photon_lines

809 karma · joined January 5, 2019

submissionscomments
photon_lines··on Show HN: Intuitive Guide to Light, and Life
Point noted. I didn't realize that 'Show HN' posts weren't meant to tailor guides / reading material. I won't tag the guides as 'Show HN' going forward then - thanks.
photon_lines··on Show HN: Procedural City Generator
Ahh indeed - the repo is here my friend: https://github.com/photonlines/Procedural-City-Generator
photon_lines··on The Power of Prolog
If anyone loves both Prolog and Python, I wrote a mini-prolog interpreter in Python just over a year ago which you can check out here: https://github.com/photonlines/Python-Prolog-Interpreter
photon_lines··on Real Not Complex: Free Math Resources
If you guys like visual / intuitive guides, I'm trying to release my own and you can find them using the links below:

- Linear Algebra: https://github.com/photonlines/Intuitive-Overview-of-Linear-...

- Maxwell's Equations: https://github.com/photonlines/Intuitive-Guide-to-Maxwells-E...

photon_lines··on The theory of infectious origin of the Alzheimer’s disease
I have a strong belief that there definitely are lifestyle changes you can make in order to lower your chances of getting Alzheimer's, and there is some support for them, although they need more research in order to confirm the exact magnitude and effect. Some of the ones which I believe are worth taking a closer look at are listed below:

– Regular exercise may delay Alzheimer's in those at high risk of disease: https://inews.co.uk/news/health/regular-exercise-delays-alzh...

– Dr. Dale Bredesen Protocol: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4712873/

– Control Hypertension: https://www.fightaging.org/archives/2020/01/controlling-hype...

– DASH diet: Healthy eating to lower your blood pressure: https://www.mayoclinic.org/healthy-lifestyle/nutrition-and-h...

– Insulin Resistance and Alzheimer’s Disease: Bioenergetic Linkages: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5671587/

– Alzheimer's Disease Is Type 3 Diabetes–Evidence Reviewed: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2769828/

Some good reading and support for the herpes / viral hypothesis is provided below:

– Alzheimer's risk 10 times lower with herpes medication: https://www.medicalnewstoday.com/articles/322463

– Alzheimer’s Disease-Associated β-Amyloid Is Rapidly Seeded by Herpesviridae to Protect against Brain Infection: https://www.cell.com/neuron/fulltext/S0896-6273(18)30526-9

– Another interesting link: In India, people have a much lower incidence of Alzheimer’s, and one of the primary reason is usually attributed to Indians eating a lot of Turmeric. It turns out in fact that one of the primary compounds in Turmeric is Curcumin, and its shown to help against herpes: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2668156/

Our current issue today is the we wait for things to go wrong and then we attempt to address them instead of trying to find the root cause and proactively trying to tackle the problem early. At the same time, finding the root isn’t necessarily easy, and performing longitudinal studies that would confirm a lot of these hypothesis would also be extremely difficult to implement, so I don’t necessarily have the solution to addressing the problem.

Some factors which I may have already listed above and which I strongly suggest you implement if you do want to lead a healthier life and prevent dementia are provided below:

– Daily exercise (both aerobic intertwined with strength training).

– Daily fasting (eating in a 4 – 8 hour window along with periodic 2-3 day fasts).

– Healthy diet: Stick to a mostly plant based diet. Eliminate high-glycemic index simple carbohydrates and replace them with healthier low-glycemic index choices (i.e. include lots of high fiber foods along with low GI fruits and vegetables). Replace bad fats (artificial trans fats and saturated fats) with good ones (fish, nuts, olive oil, avocados). Avoid highly processed foods and foods with added sugar.

– Take a teaspoon of turmeric daily (with black pepper, which increases its absorption).

I remember reading how Japan went from producing products which were garbage when it comes to quality and transforming themselves into becoming the kings of quality within quite a small time frame. The way they did this is through simple focus on root cause analysis and transforming their manufacturing processes from being reactive to introducing proactive measures and always focusing in on finding and addressing the root cause. I really wonder when medicine will start taking the same approach. It wouldn’t be an easy transformation, and the incentives today also aren’t exactly aligned to make this viable yet, but hopefully we see some changes within the next century or so, since the evidence to me seems to indicate that we could get a lot further by taking a look at lifestyle factors rather than the reactive measures we employ today.

photon_lines··on Freeman Dyson Has Died
It's actually a guide which tries to explain Maxwell's equations in a visual / intuitive manner - you can find it here: https://github.com/photonlines/Intuitive-Guide-to-Maxwells-E...
photon_lines··on Freeman Dyson Has Died
Actually, he was one of the main motivators for me to do something which I just finished today: to explain what Maxwell's equations mean in simple terms. I read his paper a few months ago explaining why Maxwell's equations were so hard to grasp, and I was awe struck at how great of a writer and communicator he was: https://www.researchgate.net/publication/4317784_Why_is_Maxw...

Rest in piece Mr. Dyson - you're a legend and you'll always be remembered.

photon_lines··on An Intuitive Guide to Linear Algebra (2012)
That's because the way that math is taught and presented makes it extremely hard to grasp and relate to, and this makes it hard for others to find the topics within it interesting. Mathematics, in it's very essence, is incredibly beautiful. The universe - yes, everything in it and everything that composes you, is in fact a form of mathematics! What does this mean?

Well, it means that understanding it means that you understand yourself! Well, not just that, but it might eventually lead to you understanding the architecture of the universe! After that? How about God? Or is God maybe a part of the architecture?

OK, so maybe I won’t try to go into the details there since opinions on it differ. Essentially, through this language though, you can master almost anything that you want! Yes, it might seem crazy, but the things that happen around you and the things which every poet and playwright and prisoner and savior ever composed can be explained through mathematics! Through it, you can also open up entirely new and utterly interesting worlds!

Let’s say that you dropped your pen this morning. To someone with no background in physics, or mathematics, this means nothing. On the other hand, to someone like me, it means quite a bit. The slight delay and movement altered the gravitational and electromagnetic field around you and echoed on into eternity. Also, it most likely changed your days structure and composition, and shifted your life into a new line (see quantum mechanics and chaos and linear dynamics) and had a profoundly large impact on everything else around you. You may have avoided a car crash, or you might have met a person who you wouldn’t have normally encountered all because of that small change. And this small change echoed on and effected everything else in turn. And this is all very mathematical, and extremely beautiful, but most people don’t know anything about it, but it does mean something to people like me: we’re all incredibly inter-connected, and our lives are ruled by chaos. Everything that you do, and everything that you say, and all the things you see and inter-related and ohh so close, but we tend not to see it and it all has to do with not understanding the fundamental mathematics!

The above is only touching on one small aspect of it though, as it only deals with physics and chaos. There are entire branches of math which make the world incredibly interesting which have nothing to do with the fields I just mentioned! Hey, did you know that standing next to someone who might look slightly like your wife will cause you to behave in a similar manner in which you behave when she’s actually around you? Yes, neurons that fire together wire together, and it’s very mathematical underneath but yet so simple! How about the fact that E = mc squared isn’t really true? Yes, the formula has an extra term (square root of 1 minus v squared over c squared) which makes it possible for massless particles to have energy and deals with relativistic effects. Did you know that you can summarize most of modern classical physics in just a few equations? (Yup, you can find most of them here: https://www.feynmanlectures.caltech.edu/II_18.html ). How about balance? Did you know that if you were standing at arm’s length from someone and each of you had one percent more electrons than protons, the repelling force would be so incredible that the repulsion would be enough to lift a “weight” of the planet! Yup – math is full of fun surprises!

Now, modern math is sort of like a constant tease which shows you the shell of this beautiful program and this excitement, and you know the beauty is there, but it’s not easy to understand and grasp! For one, most of mathematics is filled with jargon and language that is incredibly information dense, and it looks like it’s been written by a schizophrenic C programmer who’s paranoid about losing his job, so the information tends to be lumped into these incredibly dense formulas which hide the beauty and truth, but the beauty and truth will always be there! You just need to have a bit of persistence and dedication. It also doesn’t help that most teachers tend to not make things nice. They puke out the same old standardized stuff regurgitated and taught to them, and so round and round it goes.

Hopefully though, we’ll get better at teaching it and conveying it’s structure as we learn better ways of not making things cumbersome and uninteresting to other people! Wow, I need to stop writing – sorry for the large wall of text, but I hope you get what I mean!

photon_lines··on An Intuitive Guide to Linear Algebra (2012)
This is a nice resource - I wrote one myself as well which is mostly based on the series by 3Blue1Brown, as well as other resources which I found useful and which used a visual approach to introducing linear algebra.

You can find my guide here:

https://github.com/photonlines/Intuitive-Overview-of-Linear-...

photon_lines··on Math is an insurance policy
The author isn't right. He's right in some aspects (I'd say in 5% on what he conjectures), but for the most part, programmers and programming will be in quite a high demand for quite a foreseeable time in the future. Yes, C / C++ programming might become less important (see: memory wall) and I'd say highly parallel computation will take precedence, but this won't replace computer science nor programming...it'll just create the need to programmers to transition from one skill set into another.

Also, as a note: the field of computer science is a branch of mathematics. Whenever you deal with data structures or algorithms, you're dealing with how to procedurally design information structures and procedures to solve problems and model the real world. Mathematics? Well, depending on what branch you're into, it's using symbols and information ...to, well, do the same thing!

Out of all of the professions, it seems rather silly to me to think that our own profession is in danger of being replaced. I would think that it's the LEAST likely one, since programmers, to me at least, represent workers who are paid to communicate and find ways to solve problems in the real world using a tool which will continue to improve and enable our species to excel and automate jobs filled with repetitive drudgery. Out of all of the professions, I’m not sure why the author would think that ours is likely to go out of demand soon. I would conjecture that us playing a prominent role in automating other jobs ensures that we stay in demand for quite a long time!

As far as the most useful mathematical branches are concerned – if you’re interested, the branches I find have the highest ability to help in solving real world problems are: calculus, linear algebra, probability and statistics, computer science (as already mentioned), convex and computational optimization, quantum mechanics, complex analysis, ordinary and partial differential equations, data mining and analysis, information theory … well, I could keep going, but I think you’d greatly benefit from checking out a great book which gives a pretty good overview on the key areas in applied mathematics: The Princeton Companion to Applied Mathematics. The above are just my own guesses, and it’s highly dependent on which problem you’re looking to solve.

photon_lines··on Mathematics for the Adventurous Self-Learner
I'm actually self-studying as well, and I try to compile everything I learn and the notes that I take into 'Intuitive Guides' which I'm going to make available on my github repository. I actually have a guide on Linear Algebra which you can find here:

https://github.com/photonlines/Intuitive-Overview-of-Linear-...

I'm going to release one on Maxwell's equations next week, and I started working on a Calculus and General Relativity guides as well, so hopefully it helps!

photon_lines··on Ask HN: A New Decade. Any Predictions?
1. A major earthquake / the ‘big one’ will hit California.

2. A major correction will happen in 2020, causing a larger depression than the one we saw in 2008. The corporate debt bubble will initiate the correction, with Softbank as well as other financial institutions taking a huge hit / collapsing due to risky investments relating to maximizing growth / revenue without paying attention to net income. The Canadian and Australian real estate bubbles will also burst, although these corrections may happen in 2021 rather than 2020. A new approach to setting interest rates will be assessed by the Federal Reserve in either 2021 or 2022. Cryptocurrencies will be the ‘new gold’ as the market buys crypto to try to counteract inflation in 2020 / 2021.

3. Climate change will continue causing global temperatures to rise, initiating major flooding and fires around the world, as well as adding power to newborn tropical storms. This will fuel a huge investment in renewable energy / energy storage companies and this growth will continue to accelerate by the end of the decade.

4. Full autonomous driving won’t be completely delivered, although each car will come with features which allows drivers to take a break from driving on long stretches of highway routes approved for autonomous driving. This will initiate a massive wave of layoffs of truck drivers, as companies start building branches near traffic routes approved for full autonomy and laying off workers to try to cut costs.

5. Cashier-less registers will become prominent. A security guard will stand at each exit checking and ensuring that self-checkout goes smoothly, with most stores only having one cashier on hand for anyone who needs assistance or to assist with scanning / placing items on the conveyor belt.

6. Electric cars will continue taking a large market share from regular vehicles, with Tesla playing a huge role in building the infrastructure for re-charging stations in North America.

7. Elon Musk’s starlink will start delivering satellite based internet around the world, taking major market share from existing telecom companies.

8. Advanced generalized artificial intelligence will not be completely established, although humanity will take major steps toward creating one as new approaches to tackling ‘deep’ learning start taking hold. Prolog type interpreting engines and tree based / CORELS based engines which attempt to infer rules will be built underneath neural networks, delivering more generalized functionality and creating new capabilities for automation.

9. Uber will become bankrupt within 3-5 years, losing out to Lyft / other entrants. Google will lose market share in the search space, although this will be offset by gains in the cloud computing (fueled by its quantum computing breakthroughs), self-driving, and AI/ML space. Apple and Amazon will take major hits, fueled by their lack of customer focus and a shift in maximizing shareholder value rather than focusing on the customer experience. Microsoft will take a hit during the next correction, although they’ll continue to flourish under Satya Nadella.

10. Parallel computing / Erlang will become much more popular by 2029; along with logic programming / Prolog which will accelerate in popularity starting from 2025, fueled by new breakthroughs and approaches to ML / AI.

photon_lines··on Show HN: A tiny isometric city builder in JavaScript
Cool! I built a toy procedural city / city block generator earlier this year...in case anyone wants to check it out, you can find it here: https://github.com/photonlines/Procedural-City-Generator
photon_lines··on Ask HN: Best books you read in the past decade?
- Sapiens: A Brief History of Humankind (Great overview of how we got here and how our shared 'delusions' keep us where where we are).

- Founders at Work: Stories of Startups' Early Days (Great interviews by incredibly successful start up founders. Lesson 1: determination was the number one predictor of start up success. Lesson 2: most of the founders had no idea on how huge some of the companies would become nor the huge amounts of revenue their ideas would generate. Their number one focus was always grounded in solving a problem or delivering something great; everything else was secondary.)

- In Cold Blood by Truman Capote (Great crime story. It shows how small things can make a big difference. A seemingly inconsequential and small prison event where a man spreads a rumor about a family having lots of wealth in their household leads to a series of robberies which nightmares are made of. Completely true story and incredibly well written by Mr. Capote. It convinced me that life is ruled by chaos. Small things and seemingly small events play a vital role in determining its outcome).

- The Boy Who Was Raised as a Dog: And Other Stories from a Child Psychiatrist's Notebook (Amazing book showing that a lot of personality disorders stem from childhood trauma / experiences).

- Don't Make Me Think: A Common Sense Approach to Web Usability (Great overall book on UI design which definitely had an effect on how I approach designing user interfaces).

- Meditations by Marcus Aurelius (Great thoughts from a great mind).

- How to Develop Superpower Memory by Harry Loraine (Great advice on how to drastically improve your memory using your visual cortex – as well as a great general overview of the methodology current world memory champions use to remember large volumes of information).

- Poor Charlie's Almanack: The Wit and Wisdom of Charles T. Munger (Worldly wisdom from one of the world’s greatest investors).

- The Demon-Haunted World: Science as a Candle in the Dark by Carl Sagan (Great thoughts and advice from Carl Sagan. The last chapter had a profound effect on the way I think of the US constitution).

- The Things They Carried (Great novel about the hell of war, as well as incredible prose writing).

- Mindfulness in Plain English (Great book about mindfulness meditation).

- My Voice Will Go with You: The Teaching Tales of Milton H. Erickson (Great teachings and stories from the grand master of hypnosis).

- How Not to Die: Discover the Foods Scientifically Proven to Prevent and Reverse Disease (Great book with great advice on healthy eating).

- Spark: The Revolutionary New Science of Exercise and the Brain (It taught me how incredibly important exercise is when it comes to brain development / general health. If you could bottle its effects in a pill form, people would pay hundreds of dollars to unlock the incredible stuff it delivers).

- A Mathematician's Lament: How School Cheats Us Out of Our Most Fascinating and Imaginative Art Form (Great overview of what’s wrong with the current state of mathematics and the way that its taught. I completely agree with with the sentiment and the message).

photon_lines··on Ask HN: Books you plan to read in 2020?
- Princeton Companion to Mathematics

- The Art and Craft of Problem Solving

- Div, Grad, Curl and all that

- Visual Complex Analysis

- Ordinary Differential Equations

- Mathematics and Its History

- Geometry and the Imagination

- Introduction to Electrodynamics

- Penrose's Road to Reality

photon_lines··on P-99: Ninety-Nine Prolog Problems
If anyone is interested in implementing a mini prolog interpreter...I made a toy one in python which you can find here: https://github.com/photonlines/Python-Prolog-Interpreter
photon_lines··on Show HN: A Go web server with logging, tracing, and demo apps in a single file
Cool - thanks a bunch for the info and the link! It looks like a great read with terrific practices :)
photon_lines··on Show HN: A Go web server with logging, tracing, and demo apps in a single file
Cool and thanks for the feedback - yup, I actually played around with deploying it using GCP and had issues due to the logging, so I definitely regret not using stderr/stdout!!
photon_lines··on Show HN: A Go web server with logging, tracing, and demo apps in a single file
I agree! The purpose of this was teaching, and not necessarily following all of the best practices! I made raw files which contain the go HTML templates, as well as the JS and CSS files available within the repository in case anyone wanted to reference these instead of including the raw code within main.go!!
photon_lines··on Show HN: A Go web server with logging, tracing, and demo apps in a single file
Thank you for the feedback!! The main.go file has comments within it that try to explain what each component does, and I tried to structure it in a way that makes it very easy to conceptualize and understand. Whenever I write code, I do my best to make it self-documenting, although doing this isn't necessarily easy and I may have done an inadequate job in this instance. I'll see if I can find some time and include more info in the README.md - once again, if you read my previous response to the parent comment: the reason I included everything in one file was because of my preference, as I prefer to have everything in one place when learning something. The focus of this was teaching and demoing Go functionality, not shipping production ready code!
photon_lines··on Show HN: A Go web server with logging, tracing, and demo apps in a single file
I completely agree, although that also depends on what you're going for. My personal preference when learning something is to have everything in one place. That way, I can easily scan through the components and see the whole piece rather than having to switch windows. I agree though that it's definitely not a best practice if you're focusing on writing and delivering production code. The focus of this app was actually showing some neat Go features and delivering a fully functional web server in a singe file. If you look through the code, you'll see that I added a lot of comments and even made notes stating that even though I included the raw HTML/CSS/JS components within main.go, this definitely was not a best practice and I referenced files within the repository which contain this code in case anyone decided that they wanted to refactor and clean it up. Anyways, hopefully this helps and thanks for the feedback!
photon_lines··on Ask HN: Which charities do you donate to?
These don't all qualify as all being charities, but here it goes:

    • Watsi
    • Kiva
    • Doctors Without Borders
    • Canadian Blood Services
    • International Rescue Committee
    • Electronic Frontier Foundation
    • MIT Open Course-ware 
    • edX/MITx 
    • GiveWell
    • Charity Science
    • Against Malaria Foundation
    • World Wildlife Foundation 
    • Environmental Defense Fund
    • David Suzuki Foundation
    • LibreOffice
    • Evidence Action
    • GiveDirectly 
    • Oxfam
    • Gift of Life International
    • Bridge International Academies
    • St. Baldrick's Foundation (Childhood Cancer)
    • Innocence Project
    • The Marshall Project
    • Khan Academy
    • 3Blue1Brown
photon_lines··on Interactive Linear Algebra
If anyone is interested in a similar intuitive or geometric guide I open sourced my own notes and you can find them here: https://github.com/photonlines/Intuitive-Overview-of-Linear-...
photon_lines··on The Value in Go’s Simplicity
If anyone is interested in learning Go, I made a relatively simple web-server with demo apps which you can find here: https://github.com/photonlines/Go-Web-Server

I don't agree with other people calling the language simple. It makes doing something like building a web-server from scratch very simple, but the actual language syntax and expressiveness is lacking in my opinion.

photon_lines··on Show HN: Computational Essay on Monte Carlo Method
Great demo and explanation - love it!
photon_lines··on Study suggests objective reality doesn't exist
Objective reality does exist - I'm not sure how this study contradicts it. It doesn't exist in a way that a normal human mind can comprehend, but it definitely exists, and you don't need observers in order to collapse the probability functions that the article talks about.
photon_lines··on Ask HN: Why Does the World Exist?
Very interesting! Thanks for the info and indeed - I can sort of see why you have the viewpoints that you do, so thank you for sharing :)
photon_lines··on Ask HN: Why Does the World Exist?
Ahhh very nice. Me and you have a very similar viewpoint! One note though: you're still sort of creating the need for there to be a 'base' world creating the simulation and trying out all possibilities to contain it ... My take is very similar to yours, but my take on the 'simulation' idea is that the concept of there being a 'real' or 'simulated' world doesn't matter. Even if we're not in the 'base' simulation, we may be part of a universe which is being simulated from another simulation, and which is also being invoked by another simulation itself. In any case: all of these worlds are just as 'real' as the base worlds - it would have to have a self-encompassing structure I would think. Also - the concept of 'creation' is a tricky bit as well: the universe in my viewpoint is never 'created.' All of space-time simply exists: we perceive time as having a flow, but time itself doesn't have flow and this is something that Einstein proved. The perceived 'flow' or perception of time is a necessary part of the design though: you need it in order to 'create' the beings which eventually go on to 'create' the creation or to have the system reach self-consistency.
photon_lines··on Ask HN: Why Does the World Exist?
Haha - thank you for the kind words - I'm trying to follow your argument here, but I'm having a bit of a hard time grasping everything that you're saying. I love the fact that you're incredibly curious and kind as well - so thanks for the great feedback and it's always great hearing other viewpoints :)
photon_lines··on Ask HN: Why Does the World Exist?
Thanks for the kind and insightful words my friend - and yes, I think that your viewpoint is great. You've got to enjoy life - either way or whichever truth comes forward I think will always have an incredible element of beauty in it, so the only thing that really matters is enjoying the process and doing the things we love to do. Thanks again for the feedback and all the best to you :)
← PreviousPage 7 of 9Next →