• 0 Posts
  • 26 Comments
Joined 1 year ago
cake
Cake day: June 1st, 2023

help-circle


  • Iceland runs plenty of these and has a nice culture of frequenting the public bathhouse. It’s one of the few things you can do that is actually affordable there.

    They do have the advantage of having essentially infinite clean energy in the form of geothermal heat. As do Japan in many cases, for that matter. I’m sure that has something to do with these institutions having staying power there.

    Anyway, I think this idea has merits, but not as an energy saving measure. The reason for this is that in order to maintain good water quality, you have to shower thoroughly before getting into the bath, negating the potential energy benefits of the initiative. We can bring it back for it being nice, though!




  • Consider the following:

    One day we manage to reach the pinnacle of invention - we create the replicator from Star Trek. We can suddenly bring immense amounts of anything we want for everyone in the world, for very little energy (caveat: I don’t know enough about Star Trek lore to know this to be true).

    Now, this machine would certainly make a whole lot of business models redundant - farming, factory work, you name it - they would all no longer be able to make a living doing what they did before this invention existed.

    Now for the moral question - should the fact that this invention will harm certain groups’ way of life be considered enough of a motivation to prohibit the use of this invention? Despite the immense wealth we could bring upon the world?

    Take a pause to form an opinion on the subject.

    Now that you’ve formed an opinion on the replicator - consider that we already have replicators for all types of digital media. It can be infinitely replicated for trivial amounts of energy. Access to the library of all cataloged information in the world is merely a matter of bandwidth.

    Now, should the fact that groups relying on copyright protection for their way of life be considered reason enough to prohibit the use of the information replicator?

    To me, the answer is clear. The problem of artists, authors, actors, programmers and so on not being able to make money as easily without copyright protection does not warrant depriving the people of the world from access to the information replicator. What we should focus on is to find another model under which someone creating information can sustain themselves.




    • General purpose LLMs are starting to replace everyday queries I used to posit to Google. Perplexity can be quite good for this.
    • Copilot as enhanced autocomplete when writing code. A particularly good use-case is writing tests: with a few test cases already written, a sufficiently good test name will most often generate a well-written test case.
    • LLMs for lazy generation of SQL queries can sometimes be quite nice.
    • Writing assistance for things I find myself struggling to get written by myself. A writing unblocking tool, if you will.

    It’s reducing the effort and time I have to put into some things, and I appreciate that. It’s far from perfect, but it doesn’t have to be perfect to be useful.




  • A few things come to mind:

    1. The array is probably fine. It’s not going to be particularly large and lookups are O(1)
    2. It’s a bit weird to me that you’re using the char pointers as indices. I would probably use actual indices and spend the miniscule amount of additional stack data to improve the clarity of the code
    3. You could save on some indentation by returning early instead of nesting the for-loop inside the first if-statement
    4. Is the call to the lookup-table really safe? Maybe checking that the token from RNA is within the bounds is the way to go?
    5. The only thing I would even remotely care about with regards to performance is the malloc, and that’s not that big of a deal anyway unless the length of dna is really large. Streaming the result or overwriting the presumably already malloc’d input would be the only thing I would touch, and only if I could prove that it improves performance in practice.
    6. (added in edit): if you can guarantee that the input is well formed, you can omit the bounds check and save some effort there.