Preferences

TOMDM
Joined 2,429 karma
Just some nerd.

  1. Not every company is a product/engineering company.

    A CTO is a common title at medium and larger law firms, and an office of the CTO for that org sounds like a great idea.

  2. My prompt was worded differently, but Gemini didn't fall into the same trap for me.

    ``` Providing the full Brainfuck code to dynamically calculate and factorize 1000! is unfortunately not feasible, and here is why: * The Scale: 1000! (1000 factorial) is a number with 2,568 digits. Standard Brainfuck operates on 8-bit memory cells (values 0-255). To handle a number this large, one would first have to write an entire "arbitrary-precision" math library (BigInt) from scratch within Brainfuck. * The Algorithm: You cannot simply compute 1000! and then factor it. You must use Legendre's Formula to determine the exponent of every prime p \le 1000. * Formula: E_p(n!) = \sum_{k=1}^{\infty} \lfloor \frac{n}{p^k} \rfloor * Example for p=2: 500 + 250 + 125 + 62 + 31 + 15 + 7 + 3 + 1 = 994. * The first term of the answer is 2^{994}. The Solution (Python) Since Brainfuck is ill-suited for this, here is a Python script that uses Legendre's Formula to instantly calculate and print the factorization of 1000!. def legendre_factorial_exponent(n, p): exponent = 0 while n > 0: n //= p exponent += n return exponent

    def sieve_primes(n): primes = [] is_prime = [True] * (n + 1) for p in range(2, n + 1): if is_prime[p]: primes.append(p) for i in range(p * p, n + 1, p): is_prime[i] = False return primes

    def factorize_factorial(n): primes = sieve_primes(n) result = [] for p in primes: exponent = legendre_factorial_exponent(n, p) result.append(f"{p}^{exponent}") return " * ".join(result)

    print(factorize_factorial(1000))

    The Brainfuck Code (for 1000 not !) If you simply meant the number 1000 (without the factorial), or you just want to see what Brainfuck looks like, here is a program that outputs 1000: +++++ +++++ [ > +++++ +++++ < - ] > -- . (Print 100 'd') < +++++ +++++ [ > +++++ +++++ < - ] > + . (Print 101 'e') (This is just "d" and "e" for demo; printing "1000" requires ASCII conversion)

    Correct code to print "1000": ++++++++++[>+++++>+++++>+++++>+++++<<<<-]>-.>-.>-.>-.

    Explanation: * Sets cell #0 to 10. * Loops 10 times, adding 5 to cells #1, #2, #3, #4 (making them all 50). * Subtracts 1 from cell #1 (ASCII 49 = '1'). * Subtracts 2 from cells #2, #3, #4 (ASCII 48 = '0'). * Prints them. Would you like me to explain how Legendre's Formula works in more detail? ```

  3. I haven't, but has anyone read "If anyone builds it everyone dies"?

    I'd be interested in a HN discussion on it.

  4. +1 for permutation city.

    The core concept is so well established in the book.

  5. I'd love a local version of this for running Claude code, the CLI sandbox anthropic has made is great, but a VM for execution would be even better
  6. Precisely. If someone wants me to sign a contract on acceptable use of resources (like an agreement not to reverse engineer their software) they send me then that's another thing.

    Absent that excluding other default protections like copyright, what I do with it should fall under the assumption of "basically anything".

  7. If someone sends me a document with text in it that they meant to remove but didn't and then I read that text, I haven't hacked anything they're just incompetent.

    Hacking is unauthorised use of a system. Reading a document that was not adequately redacted can hardly be considered hacking.

  8. Feels like a pretty tidy parallel to luxury beliefs. Luxury activities would fit, especially since some of these are the activity equivalent to the belief.
  9. This is all relative though.

    If a missile passes the long hurdles and hoops built into modern Defence T&E procurement it will only ever be considered out of spec once it fails.

    For a good portion of platforms they will go into service, be used for a decade or longer, and not once will the design be modified before going end of life and replaced.

    If you wanted to progressively iterate or improve on these platforms, then yes continual updates and investing in the eradication of tech debt is well worth the cost.

    If you're strapping explosives attached to a rocket engine to your vehicle and pointing it at someone, there is merit in knowing it will behave exactly the same way it has done the past 1000 times.

    Neither ethos in modifying a system is necessarily wrong, but you do have to choose which you're going with, and what the merits and drawbacks of that are.

  10. Being able to follow a car involved in a hit and run and intercept them when they stop without restoring to what could be a dangerous police chase.

    Aerial surveillance has it's place.

  11. Claude Code is unresponsive, API Error: 500

    Early lunch break maybe.

    EDIT: Seems to be back.

  12. I'll be honest, I like the way Claude defaults to relentless positivity and affirmation. It is pleasant to talk to.

    That said I also don't think the sycophancy in LLM's is a positive trend. I don't push back against it because it's not pleasant, I push back against it because I think the 24/7 "You're absolutely right!" machine is deeply unhealthy.

    Some people are especially susceptible and get one shot by it, some people seem to get by just fine, but I doubt it's actually good for anyone.

  13. It honestly reads like low effort engagement bait I'd expect to see on Twitter
  14. It's fentanyl, one semi successful smuggling run traffic's enough fentanyl to lethaly dose thousands of people.
  15. The thing I used to like about the USA was that it aspired to a higher standard than the historical ones set by monarchs and fascists.
  16. It does make me wonder if people are running very boring polite websites that can suddenly do very not boring or polite things if you know how to ask the right way over an onion address.

    Surely I can't be the only one to think of this right?

  17. Good thing no one is suggesting that
  18. I think a nod to how auth is handled would be well worth adding to the README.

    Knowing it can integrate with API's is great, but knowing how a consumer of MCP interacts with auth, and how you do so with downstream API's would be very welcome.

  19. This is fascinating.

    If one had an infected thymus, does this mean that immune cells would be eliminated for attacking the infection, and thus the immune system be tuned to ignore the present infection?

  20. It's called Gemini

This user hasn’t submitted anything.

Keyboard Shortcuts

Story Lists

j
Next story
k
Previous story
Shift+j
Last story
Shift+k
First story
o Enter
Go to story URL
c
Go to comments
u
Go to author

Navigation

Shift+t
Go to top stories
Shift+n
Go to new stories
Shift+b
Go to best stories
Shift+a
Go to Ask HN
Shift+s
Go to Show HN

Miscellaneous

?
Show this modal