Better HN
topnewbestaskshowjobs
Log inSign up

LabMechanic

37 karma · joined Nov 21, 2023 (3y ago) · 67 submissions

Submissions

comment 2y ago · link · parent

What a coincidence, I was thinking of the same concept pictorially reading the comment you replied to, but I did not remember its name.

Panopticon it is:

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

Generally, there is plenty of reasons to be worried:

  - Firmware-wise (e.g., Intel Management Engine, Coreboot, Libreboot, system on a chip)
  - Hardware-wise (i.e., Von Neumann architecture - Code + Data)
  - Operating System-wise
    (e.g., 0-click exploits, remote code execution to manipulate the CPU's instruction pointer,
     stack overflow, Pegasus)
  - Facility-wise (e.g., electromagnetic waves, cell towers, Faraday cloth)
  - You (making mistakes)
What you can ultimately do is: rely on randomness (e.g., rolling casino-grade dice), Diceware, one-time pad, no computers of any kind. Further, hope that time traveling backwards remains impossible. Otherwise officers will travel back in time and can see what you wrote (e.g., unencrypted message) back then.

If you need some electronics go with analogue electronic devices. Or, make your own computer systems from scratch with transistors etc.:

jdh, I built my own computer. by hand., https://youtu.be/vaGZapAGvwM?si=lGQuskkFxZ7FHe1h

comment 2y ago · link · parent

I have three options for you, along with my two cents on each:

1) *Bitwarden:*

I am no longer using Bitwarden since they can delete your account at any time for any reason[5].

2) *KeePassXC:*

For KeePassXC, you need to store your "Passwords.kdbx" (~16 kB) database file somewhere and remember a master password.

3) *Spectre (https://spectre.app/)\\\*

I haven't tried it yet; however, Spectre calculates your password each time you need it. All you need is a name (e.g., your full name), your master password (see Diceware[1]), and the site name, from which Spectre algorithmically calculates your password. If you need to change a site's password, iterate the counter and calculate a new password.

It works offline and is open source. Here's a web app version that runs locally:

[Spectre Web App](https://spectre.pw/)

*Bonus: One-Time Pad + (Layman-ish) Physics:*

There are plenty of reasons to be paranoid[2]:

  - Firmware-wise (e.g., Intel Management Engine, Coreboot, Libreboot, system on a chip)
  - Hardware-wise (i.e., Von Neumann architecture - Code + Data)
  - Operating System-wise
    (e.g., 0-click exploits, remote code execution to manipulate the CPU's instruction pointer,
     stack overflow, Pegasus)
  - Facility-wise (e.g., electromagnetic waves, cell towers, Faraday cloth)
  - You (making mistakes)
Given the above, I would first base everything on "true"[A] randomness (see random.org or roll casino-grade dice). "True" randomness is essentially: "every outcome has the same probability." As long as backward time traveling remains impossible, I would abstain from computers and simply follow the One-Time Pad protocol with a pen and paper, among other things.

  Message: Hello -> ASCII -> Binary

  Key: 5EYES (keep this private, must be random)

  Cipher: <Message in binary format> XOR <Key in binary format> -> convert back to ASCII
The above is just one (i.e., XOR) out of many ways to follow the one-time pad protocol. For 128 characters, you need a random number from 0 to 127. However, you need to ensure that each number has the same probability to show up. Perhaps there is a way to encode or "rename" the numbers from 0 to 127 with a string of digits 1, 2, 3, 4, 5, 6 so that you can roll a die multiple times in a row to randomly get a number between 0 to 127 (see Diceware[1]). One-time pad might be good to encrypt your master password.

*References:*

  1. Diceware, [Wikipedia](https://en.wikipedia.org/wiki/Diceware)
  2. CS155 - Computer and Network Security,
     [Stanford](https://crypto.stanford.edu/cs155old/cs155-spring18/syllabus.html)
  3. [One-time pad - Wikipedia](https://en.wikipedia.org/wiki/One-time_pad)

  4. Animated Explanation of the one-time pad, https://www.youtube.com/watch?v=QVV_bUxxiZ8

  5. https://tosdr.org/en/service/1348
*Notes:*

  A) If you assume determinism (because our current "collective bias" leads us that way),
     then the quote marks are okay; if not, then not.

  Personally, everything seems to be based on assumptions or beliefs anyway (your existence, math, ...),
  so I go by "ignorance is bliss."

comment 2y ago · link · parent

Hmm... wouldn't you agree that a formal (relatively accurate language) such as math is easier to get right than an non-accurate human language?

comment 2y ago · link · parent

The non-popular or non-widespread aspect of a "prompt" (e.g., "derive the geometric product given axioms/definitions ...") should be understood as a data point that it might lack reasoning skills. As it seemingly parrots what most of its dataset "says". For more details, check my other past comments. Calling such LLMs "AI" seems to be sensationalism at work.

comment 2y ago · link · parent

A popular user here on HN also had a similar revelation or sentiment. We will see...

comment 2y ago · link · parent

Seems like you are moving the goalpost (i.e., don't expect it to derive a theorem given a set of definitions and axioms from a non-widespread field). It should, in fact, derive any formula given a set of axioms and definitions, but we can't be sure whether randomness fooled us (again). If an LLM can indeed derive any theorem given axioms/definitions, even if we make up a field, then at this point it might not matter:

Ignorance is bliss.

comment 2y ago · link · parent

You might see them both "being very, very similar", but that does not mean that it is.

I mentioned it countless times already, but it gets tiresome to repeat myself. Just ask your "AI", capable of "thought", a question (e.g., derive something given a set of axioms and definitions) from a non-widespread field (e.g., perspective geometry, Clifford algebra).

Then you might also arrive at the conclusion that it is a hyped up "Google search results mixer and matcher".

comment 2y ago · link · parent

Who knows, but until it can fool me by randomness (like Nassim Taleb suggests), i.e., deriving something given a set of axioms and definitions (from a non-widespread domain), then I might join your "ignorance is bliss" argument.

Also, hype is good for the stock market, so keep hyping it up? At the end, Elon Musk success seems to stem from hype and sensationalism. CNN (i.e., "breaking news" everywhere) has financial success due to sensationalism and hype, so hype is good, I guess?

comment 2y ago · link · parent

I am doomed to repeat myself, but I mentioned it countless times in the past and I also mentioned it here: Try asking it to derive something given a set of definitions and axioms from a non-widespread domain (e.g., Clifford algebra, perspective geometry). Then you might see that it parrots what the majority of its dataset says. It is essentially similar to Google, but you don't mix and match the search results, the LLM or the "AI" does.

comment 2y ago · link · parent

Yep, or somehow they make it apparent that they indeed "parrot" stuff they had in their large dataset. See my past comments for details. Fooled by randomness? (See Nassim Nicholas Taleb)

comment 2y ago · link · parent

Okay, I mentioned this in some of my past comments, but try this:

Ask your "AI" something about a non-popular domain (e.g., Clifford algebra) or even ask it to derive something (e.g., the geometric product) given some axioms and definitions.

Mathematics is precise as it gets, yet it failed to derive the geometric product given a set of axioms (e.g., distributive property) and definitions. Ask it to derive a theorem from perspective geometry.

Or, try something else that is not so popular or widespread (something outside of math), I suspect, that it also does a poor job deriving things from principles (axioms, definitions, theorems).

comment 2y ago · link · parent

My 17-year-old "zoomer" sister is unsure about what a browser is. She believes you need a Google app to access the internet. My millennial sisters aren't very proficient with computers. They mostly use Office and a browser. Things like VPNs might confuse them. Are my sisters a rare exception? Who knows? I know other female and male millennials with non-software developer jobs who barely know how to use a computer.

Yep, I tried to persuade my "zoomer" sister to learn how to program, but she declined. :( She is simply not interested.

comment 2y ago · link · parent

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.

44.

Scheme Cheat Sheet(courses.cs.washington.edu ↗)

5 points · by LabMechanic · 2y ago · discuss

comment 2y ago · link · parent

  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".

comment 2y ago · link · parent

> 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".

comment 2y ago · link · parent

  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.

comment 2y ago · link · parent

There's a "contagious" sentiment going around: C++ is obsolete; use Rust.

Just search for HFT jobs or any software-based automotive positions, and you'll still find C++. I am confident that some experienced people don't care about the technology used; all that matters is domain knowledge and getting things done.

However, I'm concerned about "rookies" (those aspiring to become programmers); they might face decision paralysis because some high-level people share strong opinions, and they seem to follow them blindly.

I've sensed some common dogmatisms: "never use goto," "OOP is the way," "FP is the way," "use design patterns everywhere," "always avoid code duplication," ...

Are you telling me that software development (as typically done) is an exact science (like math)? Why are you striving to abide by those rules as mathematical theorems (things that require rigourous proofs), when those rules break or make less sense in specific cases?

I'm here to remind those folks to learn to solve problems in different domains. Language is a tool; use it as one.

Arguably, that is far more important than syntax and language details.

As Naval suggested, learn fundamentals (e.g., math, domain knowledge) and leverage them (e.g., through programming).

Here's another listing:

  Proficient in at least one of C/C++/Objective-C/Swift
  Experience with Python/Lua/Bash
https://jobs.apple.com/en-us/details/200525862/system-softwa...

Even if Rust gets more exposure in the industry, no big deal, once you know the hang of programming, you can just hop to another tool (i.e., programming language).

49.

Tell HN: C++ Still Does the Job(citadelsecurities.com ↗)

4 points · by _ktnd · 2y ago · 2 comments

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

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

52.

Compiler Construction (2008)(cs.nyu.edu ↗)

3 points · by LabMechanic · 3y ago · discuss

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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?

comment 3y ago · link · parent

> "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)

123