pkill

joined 1 year ago
[–] [email protected] -2 points 3 weeks ago (3 children)

wake me up when Rust fixes its' supply chain attacks susceptibility (solid stdlib and rejecting external crates, including transitive deps

[–] [email protected] 0 points 1 month ago (2 children)

ah great, another glowie thread

[–] [email protected] 3 points 1 month ago* (last edited 1 month ago) (1 children)

The party was meant to just be the organizer of the workers, not the ruler. The degeneration took off only after Lenin's death and the 4th Congress of the Comintern, which was dominated by Troika. that's why Mayakovsky was a devout Bolshevik until Stalinzation advanced and started scrapping several progressive conquests of October, leading to his suicide at the refusal to prop up the Stalinist degeneracy.

Also Lenin was, for instance, not a big fan of the many experimental artistic movements that flourished after the Revolution, but did not suppress them, unlike Stalin.

He also regretted banning other parties (but which was necessitated by every single one of them taking up arms against Sovnarkom) and before his death wanted to offer Trotsky a post of Commisar of Internal Affairs in a desperate bid to curtail the bureaucracy, but Trotsky, unfortunately, refused.

[–] [email protected] 1 points 1 month ago (1 children)

implying that corrupt scumbag Brezhnev was a proper communist

[–] [email protected] 0 points 1 month ago (2 children)

and if I don't?

[–] [email protected] 0 points 2 months ago

Somewhat useful with (neo)vim, where it's (however tiny af) context window spans every open buffer

[–] [email protected] 2 points 2 months ago

Notesnook ftw

[–] [email protected] 1 points 2 months ago

https://altcha.org is nice plus a crowdsec bouncer

[–] [email protected] 2 points 2 months ago* (last edited 2 months ago)

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

Alt text: O'RLY? generated book cover with a donkey, navy blue accent, header: "It's only free if you don't value your time", title: "Handling Arch Linux Failures", subtitle: "Mom, please cancel my today's agenda!"

 

...from people who seem to refuse to install paredit or coloring plugins for either? ps lisp syntax ftw, it's a feature!

46
submitted 8 months ago* (last edited 8 months ago) by [email protected] to c/[email protected]
 

Alternative links: YT Tubo Invidious Piped 0 Piped 1

 

As in title. Do you know any good alternative i2p trackers?

1
submitted 10 months ago* (last edited 10 months ago) by [email protected] to c/[email protected]
 

I currently use Svelte in my main personal project but while enjoying it's relatively concise, declarative syntax, I don't really like how it's not always easy or even possible to do stuff without relying on shared state and I think that's bad. So I started looking into Elm, but it seems to require a significant portion of boilerplate and somewhat more procedural code, which surprised me, considering how Haskell is often notably more concise than C. Is there anything that is somewhat like Elm, i.e. functional, but without being overly verbose?

Edit: I'd also prefer bundle sizes no larger or marginally larger than with Svelte and decent noscript support, at least on par with Vue or HTMX.

view more: next ›