ah great, another glowie thread
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.
ah great, another glowie thread
deleted by creator
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})
we had a plenty of more deterministic tools for parsing human readable text to machine-readable long before llms
thankfully shitflare and it’s lazy or clueless customers are helping make it absolutely unusable day by day
…you mean doxxbin 2.0? :-D
fr the system is in such a deep terminal crisis that talking to people in their 20s feels like talking to pensioners since in countries like the US or UK the life expectancy is declining due to not being able to afford healthy food, stressful and precarious work, mental health crisis and addictions, worsening healthcare, climate change, moldy cramped housing, proliferation of larger and thus more dangerous cars, new zoonoses etc. etc.
typescript is a linter
wonder when Rust will saturate it’s niche as a C/C++ replacement, I’d guess 3-6 years would be when we might start to see some stabilization.
they have nice cameras. but the battery life is attrocious and sometimes will run into radio issues (iirc fixed only one or 2 generations ago)… lack of otg support is also one minor issue
also Huawei laptops. Jfc what a trashy counterfeit of a MacBook and if you get an AMD one, better also get a good cooling stand. The keyboard is terrible and costs a fuckton to replace and generally the repairability is like with macs, the USB ports are built in a way that just begs for either them or your peripherals to be broken, they might overheat while charging, they ship bloatware and the speakers are ridiculously quiet. My friend’s mom bought her one contrary to my advice to get a second-hand thinkpad or just any other business-line laptop and it she had to return the first shipment because the screen got bent during shipment.
MIUI… don’t even get me fucking started on this garbage. It literally removes numerous features from vanilla android, presumably to relocate some performance budget to the bloat they add.
Beyerdynamic or Jabra are also quite good, depending on your budget. Cheap Sennheisers might have overly strong bass and bad breathability.
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.
premature optimization is a root of all evil.
also when those morons decide to do ‘microservices’ but end up creating glorified SOA with one messy DB where half the tables are not even used by anything, updates in place are the standard and there is nothing like one team per service, but instead everyone is expected to navigate millions of lines of spaghetti code with poor documentation, barely any reuse and inconsistencies all across the board with this oh too-fucking-common entity service anti-pattern.
and so much fucking coupling that you better start deploying your dev cluster just right after waking up so it maybe is up and running by the time your daily is over.
Fun fact, I used to work at a company where a lot of projects use Elixir and a bulk share of my coworkers have been outspoken critics of microservices precisely because OTP manages to power fault tolerant and scalable systems but not by insane levels of complexity like kubernetes does but by CoC that rarely gets in your way.
Yes, fix the shit by kicking out the triumvirate of policians, corporations and military altogether, not by voting for lesser evil and dealing with shame after legitizming brazen, out of touch geriatric fucks; hoping that just one more legal act will prevent business from torching the planet, manipulating prices, avoiding taxation, eliminating competition, trampling down consumer rights and exploiting workers; or that there might ever be a good war and a bad peace and gaslighting yourself that it’s for a just cause and not spheres of influence and profits off the backs of countries treated like the disputed territories of ‘Nineteen Eighty-Four’.
American bourgeois democracy is not only a sham; it is rotten to its core. All that is missing is a force strong enough to kick it and watch it come collapsing down.
implying any court will do enough to send a major political party to it’s right place at the dumpster of history
I only use vscodium for things that are not that well supported by neovim, in my case it’s only Scala basically, but I guess I’m just to lazy to properly configure metals. I use Sway as my desktop and I don’t want to go into configuring DPI just for vscodium or switch to gnome to not ruin my vision even further when using it. This is what I like about terminal-based editors - the whole Ui scales with a single key combination. Speaking of which I also consider the combinations provided by many Neovim “distributions” (and my workflow ;p) way more ergonomic than emacs-y finger gymnastics of vscode and the likes, since I just hit the space twice and type a command alias without moving my fingers from where they should be on the keyboard instead of memorizing gazillion combinations working little by little towards giving me a carpal tunnel.
if you want even more frictionless experience and save a few megs of ram check out wezterm, it does a pretty good job of integrating multiplexing into terminal. also it’s very extensible as it’s configurable with lua.
on a side note, I had some stability issues with vscode-neovim where it’d crash it in worst cases.
wake me up when Rust fixes its’ supply chain attacks susceptibility (solid stdlib and rejecting external crates, including transitive deps