HNHacker News
TopNewBestAskShowJobs

LabMechanic

37 karma · joined November 21, 2023

submissionscomments
LabMechanic··on 50 Algorithms Every Programmer Should Know (Second Edition)
Yep, following rules like "never ever use goto" or "use design patterns and OOP everywhere" makes no sense, if (typical) software development itself is not exact. Some folks mix up software development with being super precise and mathematical, but it's not that exact. So do repeat yourself, if the alternative is not worthwhile. As a concrete example, I don't need to download an engine (such as Unreal/Unity) to make a retro-styled 3D game. All I need are software rendering algorithms, SDL2 and maybe Rust. That's it.
LabMechanic··on How is AI impacting science?

  There you go. Try it with 4. Still doesn't work? Let's revisit when 5 comes out. 
You appear to assume that current "AI" is able to "understand" and "think". What makes you so sure?

So, it "thinks" and "understands", it does not make (probabilistic) guesses?

Definition: guess

  to give an answer to a particular question when you do not have all the facts and so 
  cannot be certain if you are correct
https://dictionary.cambridge.org/dictionary/english/guess

To your other point:

  Also maybe try asking it something that ordinary humans can be expected to
  accomplish, rather than complaining that nobody has invented
  Ramanujan-as-a-Service yet.
Hmm... is it too much to ask such an "AI" for formal (i.e., well-defined) stuff? I would argue that mathematics or any formal language is perhaps more accurate than human language.

  You will lose the argument eventually, it's only a question of when.
Oh, I hope so, but I am skeptical, as I am still not convinced of an LLM being an "AI".
LabMechanic··on How is AI impacting science?
> Name one thing that HAL 9000 did that current LLMs can't do (for better or worse).

The ability to reason or understand seems to be not there in current LLMs.

See my other comment:

https://news.ycombinator.com/item?id=38819544

Simply put: "fake it 'till you make it" = probabilistic guesses given a large data set = seems to fool us people believing that an LLM "thinks" and "reasons".

LabMechanic··on How is AI impacting science?

  I think the gap is quickly narrowing on the need to fully comprehend most 
  computer programs for most use cases, ...
What makes you assume that current "AI" "comprehends"?

I wish it could, but it appears not to.

As an example, ask it to code up something from a "less popular domain" (e.g., Clifford algebra).

You might notice that it appears to not have enough data to make good guesses. Some "AI" hype folks appear to move the goalpost then.

However, maybe the stock market and some companies benefit from all this sensationalist stuff.

I wish I had a HAL 9000 beside me, but I am sorry Dave, I cannot let you do that.

LabMechanic··on Ask HN: How to store your data for 200 years?
Indeed. We seem to assume semiconductors and computers are unlimited. It is just not practical to use your dog, a raven, or yourself as a Turing complete machine. You can't run Google on your Dog or yourself.

Hence, keeping "unused" electronics around might be wise, given the so called "unpredictable future" and supply chain interruptions.

Arguably, old and slow tech is still better than having nothing, as you do not have to do these boring computations by hand.

LabMechanic··on Ask HN: How to store your data for 200 years?
A layman question:

If Faraday cage holes are smaller than the gamma ray wavelength, does it protect against gamma rays? Or is a thick lead wall needed for M-Disc protection? Is it even possible to construct such small cage holes?

gamma rays = electromagnetic waves

Preserving an M-Disc against a nuclear blast seems futile, as the high temperatures can turn even stone into dust. Is there even a practical way to engineer survival in a nuclear blast? (Any physicists? Engineers?)

Here's a guide on making a Faraday cage, but can it also protect against gamma rays?

https://www.wikihow.com/Make-a-Faraday-Cage

LabMechanic··on Tell HN: Your account can be deleted anytime, for any reason
I get your point, which boils down to "your money, your choice".

I am trying to bring across that having warranties for digital stuff makes sense, just like we have them for physical products. It's about fairness. Companies shouldn't delete things (especially paid ones) without a good reason; it should be reasonable, not just based on their whim.

The "sole discretion" thing is not fair. It's like saying companies can do whatever they want (e.g., polluting your neighborhood, risking your health). Imagine a world without any rules (like no government, no police). We'd probably go back to "smaller tribes" because surviving alone would be tough. A "big tribe" (i.e., a country) is okay, but a global one is a bit too much to handle. Even the US is divided up into smaller states.

Anyway, all I am arguing for is: there should still be some rules (i.e., warranties) to keep things fair.

LabMechanic··on Ask HN: If you were to learn to code again...
C was my first language as a teenager. It is my native (formal) language, if you prefer.

Considering OP's question:

After C, I'd suggest looking into the Lisp family of languages like Scheme or Racket. I discovered them not long ago and wish I had found them sooner.

The reason is simplicity, ubiquity (Clojure), maturity (way older than C, see Lindy effect).

Then after Lisp, Python. Done.

There is nothing really to be learned thereafter. Programming languages come and go, but they have certain elements in common:

  - I/O
  - repetition (recursion)
  - conditional execution
  - arithmetic
Then there is stuff on top of that: OOP (which means data and code belong together. You can do that in C too:

https://www.state-machine.com/doc/AN_Simple_OOP_in_C.pdf

After C, Lisp (e.g., Racket) and Python, I would focus on common data structures and algorithm topics:

  Data Structures
  - Linked Lists
  - Trees, Tries & Graphs
  - Stacks & Queues
  - Heaps
  - Dynamic Arrays
  - Hash Tables
  Algorithms
  - Breadth-First Search
  - Depth-First Search
  - Binary Search
  - Merge Sort
  - Quick Sort
If you want to go to the extremes:

Lambda calculus and the formal language around Turing machines. Turing machines only need to read/write memory, move around memory, execute a finite program, have (near) unlimited memory.

Excel seems Turing complete, so maybe start programming with Excel. Don't!

Then there are what I call "industry languages", programming languages that you cannot keep in your head easily and probably need IDE assistance with:

C++, Java, Scala, Rust, etc., are production environment languages. Learn them later in life.

LabMechanic··on Tell HN: Your account can be deleted anytime, for any reason
If you're okay with companies screwing you over, good for you!

I believe online services and digital goods should have regulations. When I pay for something, I want a guarantee. Cancelling my purchase anytime for any reason shouldn't be allowed.

Imagine it's 1998. You buy software on a disc (a game). Now, in today's digital world, it's like I'm taking back your disc without a refund. That's not right. Even if it is just a "license" you are buying, if you have something (proper) physical, you can still use your product.

LabMechanic··on Tell HN: Your account can be deleted anytime, for any reason
I use KeePassXC to manage passwords. Save the encrypted file (Password.kdbx, 3 kB) wherever you want.

Extra points:

For emails, buy a domain like mydomain.com for about $15 a year. This lets you have a stable email address (e.g., johndoe@mydomain.com) no matter which email service you use.

Consider https://njal.la/ or something similar. However, note that:

  1337 has the sole right to at any time amend or supplement
  these Terms. Any such made changes to these Terms will be 
  immediately effective after being posted at the same 
  location as these Terms. 
https://edit.tosdr.org/points/24274

So maybe use another service.

I also use Portmaster when I am on Windows.

Forget defending against the government, they have state authority (violence, jail time), you don't.

See: https://riseup.net/

One-time pad (OTP) or "true randomness" (uniform probability distribution) is your only safe option (as long as they cannot time travel), but do it offline. Don't trust computers, see:

  Intel ME explained (intel management engine) from insider
  https://www.youtube.com/watch?v=1seNMSamtxM
Physics is your only safe haven. Seemingly, everything/everybody has to abide by the law of physics. Even your "almighty" state.
LabMechanic··on Tell HN: Your account can be deleted anytime, for any reason
Suppose you've paid for content (apps, movies, music, games, or services). If your seller can terminate access at any time and for any reason, are you okay with that?

The 'don't like it, don't buy it' sentiment appears shortsighted, especially considering that both Android and iOS are operated by two major corporations.

Think of banking apps, for example. Banks usually do not favor a tampered OS.

Consider:

  False Sense of Security: A Study on the Effectivity of
  Jailbreak Detection in Banking Apps
https://ieeexplore.ieee.org/document/8806743

PS: Yes, you might use another OS, but how would you do your online banking with it? Explain.

Another point to your "don't like it, don't buy it"-argument:

Suppose you buy a device; further suppose the state is not involved (no warranty). Your device breaks down the moment you bought it, and there is no refund. How do you deal with that, especially if you are low income?

LabMechanic··on Tell HN: Your account can be deleted anytime, for any reason
> "We reserve the right to serve refuse (i.e., garbage) to anyone"

Could not find it either, but clever indeed! :)

> You will now see that in your mind repeatedly!

X)

LabMechanic··on Ask HN: Is there an end to tech job market crash?
How do you become a "general problem solver"?

Is it sufficient to be skilled in one programming language, such as Python, and implementing a software renderer or ray tracer, your own neural network, your own HTTPS server, your own OS, your own memory allocator, your own interpreter, your own virtual machine...?

> The language, the stack, etc.. are just details. Given a problem - they can tackle it.

I agree, but are HR people agreeing on this?

LabMechanic··on What is the right way to charge my devices?
For lithium-ion batteries:

  "... keep your battery life somewhere between 40 percent and 80 percent ..."
  
  "Research shows that extremes wear out the lithium-ion batteries ..."

  https://www.eeworldonline.com/why-you-should-stop-fully-charging-your-smartphone-now/

Sony's recommendations:

  "Charge your device just as much as needed. If you leave your device charging
   for a long time after reaching 100%, the battery might be damaged."

  "Avoid total discharges, as these can damage the battery and decrease the
   capacity."

  "Limit exposing your device to extremely hot (37°C or above/direct sunlight)
   or cold environments (temperatures below 0°C)."

  "If you plan to store your device for an extended period, charge it between 
   20 - 80% and then turn it off (Tip: this applies to any device with a
   rechargeable battery)."

   https://www.sony.co.uk/electronics/support/mobile-phones-tablets-mobile-phones/xperia-1-ii/articles/00232835

   https://www.sony.com/electronics/support/articles/00255462
LabMechanic··on Tell HN: Your account can be deleted anytime, for any reason
It might not be "news," but God knows how many people are actually aware of terms containing phrases such as "for any reason at any time" and "without notice".

As I mentioned here, Dropbox's Terms of Service seem reasonable. They give you a heads-up. That's the minimum I expect.

LabMechanic··on Tell HN: Your account can be deleted anytime, for any reason
I have issue with phrases like "for any reason at any time" and "without notice". If I lose my account, I want a clear reason, not just a general "you violated our Terms of Service" without any specifics.

If I am a terrorist, fine, do not notice me, but in all other cases, I expect you to notice me in advance.

For example, Dropbox seems reasonable:

  "If we do so (discontinuing services), we’ll give you reasonable prior notice
   so that you can export Your Stuff from our systems ..."

  "We reserve the right to suspend or terminate your access to the Services with
   notice to you if Dropbox reasonably believes: ..."

   https://www.dropbox.com/terms
LabMechanic··on Tell HN: Your account can be deleted anytime, for any reason
I want to get a heads-up before you close my account. It's better to give some notice rather than just suddenly deleting it out of the blue.

> Should a service be forced to keep accounts running in perpetuity?

No, but maybe wait for 3–6 months for inactive accounts before closing them permanently.

← PreviousPage 2 of 2