anti-idpol action

I am working on fedi software that is hoping to allow Kodi, Plex and Popcorn Time get rid of IMDb/TMDB dependency. Dm me if you’re skilled in SvelteKit and/or Go, especially the Fiber framework, or machine learning with Rust and willing to contribute.

  • 3 Posts
  • 175 Comments
Joined 1 year ago
cake
Cake day: September 10th, 2023

help-circle


  • In Clojure, -> is used for inserting the piped argument at the head position in the arguments of whatever it is passed to, while ->> is used for inserting it at the tail. This approach is great for working with immutable data in a series of approachable transformations, which I believe is one reason why so many Domain-Specific Languages for generative programming are written in that language, aside from its interactive REPL. Additionally, there is no need to worry about excessive copying, as this is generally well optimized.

    This can be particularly useful with HoneySQL, which is more of a DSL for SQL rather than a typical ORM tool. For example:

    (defn apply-filters [query filters]
    "applies WHERE clauses to a query"
      (reduce (fn [q [column value]]
                (helpers/where q [:= column value]))
              query
              filters))
    
    (defn build-dynamic-query [{:keys [table columns filters sort-by limit]}]
      (-> {}
          (helpers/select columns)
          (helpers/from table)
          (apply-filters filters)
          (helpers/order-by sort-by)
          (helpers/limit limit)
          sql/format))
    
    ;; Result - a super readable function call that resembles a natural language 
    (build-dynamic-query 
      {:table :products 
       :columns [:id :name :price] 
       :filters {:category "electronics" :in-stock true}
       :sort-by [:price :desc]
       :limit 20})
    













  • Trump says you won’t need to vote if he wins. But here’s the thing: It’s not just Democrats who should worry. Trump’s chaos could destroy the whole rigged system - Republican and Democrat. He might seem like an undertaker of the American democracy, but in doing so he will drown his own ship, too. But we need to help him steer it into the iceberg of organized social anger instead of isolated floes made of any expectations his mostly temporarily deluded and desperate voters may have or some single-cause activisms or culture wars that will only benefit him. Those will be shattered within the first few months of his term, as he won’t have COVID to use as a convenient excuse for his failures to not only address, but at least not make worse the organic crisis of the system, like Genocide Joe has had.

    EDIT: I’m not saying this to fucking endorse him or passivity. What I mean is that the world does not end at the ballot box and we need to reckon with the possibility of his victory and that there are countless other means of resisting him other than just depositing all our hopes in the Democrats. And that even though resisting Trumpism will not be an easy task, the instability and disappointment that a presidency of establishment’s populist enfant terrible, in an era that breeds virtually no statesmen of great stature, is bound to engender, has the potential actually make it easier.