• 0 Posts
  • 23 Comments
Joined 2 years ago
cake
Cake day: June 29th, 2023

help-circle
  • You can store the Merkle trees inside of a SQLite database as extra columns attached to the data.

    That way you get the benefits of a high-level query language and a robust storage layer as well as the cryptographic verification.

    In fact, there is a version control system called Fossil which does exactly that:

    https://fossil-scm.org/home/doc/trunk/www/fossil-v-git.wiki

    The baseline data structures for Fossil and Git are the same, modulo formatting details. Both systems manage adirected acyclic graph (DAG) of Merkle tree structured check-in objects. Check-ins are identified by a cryptographic hash of the check-in contents, and each check-in refers to its parent via the parent’s hash.

    The difference is that Git stores its objects as individual files in the .git folder or compressed into bespoke key/value pack-files, whereas Fossil stores its objects in a SQLite database file which provides ACID transactions and a high-level query language. This difference is more than an implementation detail. It has important practical consequences.

    […]

    The SQL query capabilities of Fossil make it easier to track the changes for one particular file within a project. For example, you can easily find the complete edit history of this one document, or even the same history color-coded by committer, Both questions are simple SQL query in Fossil, with procedural code only being used to format the result for display. The same result could be obtained from Git, but because the data is in a key/value store, much more procedural code has to be written to walk the data and compute the result. And since that is a lot more work, the question is seldom asked.




  • I assume that they mean that OpenCL, which is a traditional GPGPU language, is a very restrictive subset of either C or C++ (both are options) plus some annotations.

    In fact, OpenCL toolchains already use the Clang frontend and the LLVM backend, so the experience of using and compiling them is very close to C++.

    The talk mentions all of this; it says that a benefit of using full C++ on the GPU over using OpenCL is that you don’t have to deal with all the annoying restrictions and annotations.





  • I hate the capslock thing. I sometimes feel like I’m the only person who regularly uses capslock (for C macro names and SQL when programming, but also for typing acronyms).

    I don’t mind the function key thing. Even from memory I can say that in a browser F5 = refresh and F11 = fullscreen. But kids probably are less likely to know those these days so a label could be helpful.




  • I was surprised to find that non-alcoholic beers specifically do still make me sleepy. I looked into it and there is some research that says that other compounds in beer could be responsible, or it could just be the placebo effect since I’m used to feeling sleepy after drinking beer.



  • senkora@lemmy.zipto> Greentext@lemmy.mlChasing the Bottle
    link
    fedilink
    arrow-up
    31
    ·
    edit-2
    2 years ago

    Alcohol has different effects on people based on their genetics. It makes some people feel amazing, and if they keep drinking they continue to feel amazing for hours. It makes some people immediately feel awful. It makes some people feel good but also very sleepy. The first group is much more likely to experience alcoholism.

    The taste is a separate thing. I am part of the third group but I’ll have a single drink on occasion, and I enjoy the way that beer, wine, spirits, and cocktails taste. I think that the alcohol does make them taste a little better, but they also tend to taste good without it.

    I often drink non-alcoholic beers or mocktails for the taste, because alcohol is after all a poison and it is a good idea to limit consumption.