#Generics
OMG this time it really is formatted properly. I guess now I have a story for the newsletter this week.
No errors and no warnings #shorts (this time I mean it!) https://youtu.be/MsJKPRfVTXM
#Java #Mockito #generics #TalesFromTheJarSide
All I ever wanted from my Java code was NO ERRORS and NO WARNINGS, but this example from the Mockito docs refused to cooperate. Based on a true story
https://youtu.be/pEM62mh8qLA
#Java #Mockito #Generics
#Swift #generics / opaque type question:
Say I have this, a "Lens" to represent a typed getter:
protocol ReadonlyLens<Whole, Part> {
associatedtype Whole
associatedtype Part
var get: (Whole) -> Part { get }
}
struct Lens<Whole, Part>: ReadonlyLens {
let get: (Whole) -> Part
}
Let's say I want to apply it to
struct Person {
let name: String
let age: Int
}
... can I compare two person via
Lens<Person,String> (name) & Lens<Person,Int> (age) via Lens<Person,Equatable>?
Collaboration to Boost Rare Disease Clinical Trials
An organization seeking new uses for today's #drugs and a contract #research company aim to increase the number of clinical trials for rare diseases testing already approved drugs.
https://sciencebusiness.technewslit.com/?p=44782
#News #Business #Science #ClinicalTrials #Collaboration #RareDisease #ArtificialIntelligence #Algorithms #Databases #CRO #Generics

https://dev.to/adevnadia/typescript-generics-for-react-developers-4lji - #TypeScript #generics make #React components much easier and safer. Nice post https://www.linkedin.com/in/adevnadia/.

Embrace Swift generics
#Swift #Programming #Generics #macOS #iOS
https://www.wwdcnotes.com/notes/wwdc22/110352/
Great news! Python will have a simpler syntax for generics, thanks to PEP-695 https://peps.python.org/pep-0695/. We’ll have type-safe generics without using separate TypeVars declarations. #python #pep #generics
Polish pharma industry warns of manufacturing exodus https://www.euractiv.com/section/health-consumers/news/polish-pharma-industry-warns-of-manufacturing-exodus/?utm_source=dlvr.it&utm_medium=mastodon #drugspricing #genericdrugs #generics
Polish pharma industry warns of manufacturing exodus https://www.euractiv.com/section/health-consumers/news/polish-pharma-industry-warns-of-manufacturing-exodus/?utm_source=dlvr.it&utm_medium=mastodon #drugspricing #genericdrugs #generics
I'm struggling with TypeScript generics (again) : How pass an Interface to a method using generics ?
https://stackoverflow.com/questions/75853970/how-pass-dynamically-interface-to-a-method
Duchenne muscular dystrophy: major trials and events to watch in 2023 — Biogen gets EU court ruling in favor of blocking Tecfidera generic entry— FDA offers radio silence on question of spring Covid boosters -- See more on our front page news http://bit.ly/w28kSd #dmd #duchenne #fda #clinicaltrials #europe #generics #biogen #multiplesclerosis #ms #covid #covid19 #vaccines #boosters #pharma #pharmanews #biotech #biopharma #biotechnology #cafepharma
Ada visitor design pattern and generics https://stackoverflow.com/questions/75747348/ada-visitor-design-pattern-and-generics #ada #programming #visitor-pattern #generics #ada
#Python needs a simpler generics syntax. The proposal PEP 695 is already here: https://peps.python.org/pep-0695/ Hope it advances to the next stage this year. In the mean time, is there a transpiler like #Babel or another way to use proposed syntax for hobby projects?
Bernie Sanders, you can stop crying about high generic prices in the US. Mark Cuban has a cost-plus pharmacy with low prices on many generic drugs. When Medicare says it is lowering the cost of drugs, it’s typically absorbing the difference, and passing it on to the taxpayers.
#markcuban #drugprices #berniesanders #generics #medicare #prescriptions
Typeinschränkungen bei Java Generics (Bounded Type Parameters): https://youtu.be/-xJQY8PbW4w
#java #generics
How to understand and fix “'B' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint 'A'.”
https://dev.to/wes/b-is-assignable-to-the-constraint-of-type-t-but-t-could-be-instantiated-with-a-different-subtype-of-constraint-a-2l38 #TypeScript #Generics
We just saw this on the birdsite from @wbfeldman. Similar observation to ours regarding devices and just published in JAMA. Great that this aspect of patent manipulation is getting attention!
https://twitter.com/wbfeldman/status/1610329075918184451
From 2000-2021, manufacturers earned $111 billion on brand-name #inhalers in the US AFTER patents on their active ingredients had expired.
How?
By patenting other aspects of the products (e.g., delivery devices).
We looked at 824 patents protecting most of the top 200 selling pharmaceuticals for claims not meeting criteria espoused by the FTC for delisting on the Orange Book. We focused primarily on device patents, but also stumbled over some process patents and packing methods that probably run afoul of the FTC brief as well. Fell free to have a look on our website.
https://patent-reviews.com/f/rems-and-the-orange-book-%E2%80%93-part-ii
It's been a minute since I checked out one of my favorite #golang #test libraries. I popped over to https://github.com/flyingmutant/rapid and saw this: 😆 ❤️ #generics
ISTM that #golang #generics accidentally added const slices to the language. If you add a type constraint of |string to a slice, then the slice is immutable. https://go.dev/play/p/H_xWzQSX23U
Spent all evening polishing my dev scripts and refactoring my existing code for #adventofcode.
Today was definitely a "journey over destination" day for me. I played with https://github.com/charmbracelet/gum, rediscovered https://www.conventionalcommits.org/en/v1.0.0/#summary, and used https://fishshell.com/docs/current/completions.html for the first time.
I also did some sort-of functional things in #golang with #generics.
All told, my code is better organized, easier to read, my commits tell a better story, and I deleted 25% of my code 😄
stream is a Stream processing library based on Go 1.18+ Generics (parallel, pipeline, lazy) 🍒
https://github.com/xyctruth/stream
#Stream #StreamProcessing #libraries #go #pipelines #serial #paralllel #generics #go
"To quote Jeff Bezos, their margin is our opportunity," Mr. Cuban said. "I don't think they're paying attention to us yet. They know we exist. We've heard them say things to politicians and heard them say things to others. But it's going to be very difficult — as these huge public companies — to adapt as quickly as we can."
Henry Schiller has a paper forthcoming at Philosophy of Science called "Genericity and Inductive Inference" that he's posted the preprint for here:
http://philsci-archive.pitt.edu/21366/
It's on the role of #generics in #induction, looks really interesting!
His abstract below ...
Programmiersprache Rust 1.65 führt Generic Associated Types ein
Programmiersprache Python 3.11 erweitert die Fehlerbehandlung und die Type Hints
Programmiersprache: Go-Entwickler setzen auf die neuen Generics
Nachträglich Generics hinzuzufügen ist wohl in jeder Sprache "a mess".
Der #Rust Analyzer hilft wenigsten mit klaren Hinweisen, was man an welcher Stelle vergessen hat.
Was Rust auch nicht geschafft hat: eine klarere Syntax für #Generics. Nur das "where" ist eine Erleichterung.
Type Alias für Generic Trait Constraints wäre toll. Oder kann ich die selber über eigene Trait Kompositionen bauen? 🤔
An jeder Stelle zu wiederholen, dass ich Add+PartialOrd+... benötige ist booooring.
Programmiersprache Go 1.19 passt ihr Speichermodell an C, Java und Rust an

“Golang Diaries: Generics”, Tim Bray (https://www.tbray.org/ongoing/When/202x/2022/05/14/Golang-Generics).
On HN: https://news.ycombinator.com/item?id=31387312
On Lobsters: https://lobste.rs/s/z7xxmm/golang_diaries_generics
#Go #GoLang #Programming #Generics #Types #Quamina #FiniteAutomata #DFA #NFA
RT @theprincessxena@twitter.com
Crimes with Go Generics
https://christine.website/blog/gonads-2022-04-24
🐦🔗: https://twitter.com/theprincessxena/status/1518385918243135488
"Faster Sorting With Go Generics", Eli Bendersky (https://eli.thegreenplace.net/2022/faster-sorting-with-go-generics/).
Via HN: https://news.ycombinator.com/item?id=30888125
#Go #GoLang #Programming #Generics #PLDI #Sorting #Benchmark #Ergonomics
Envie de découvrir une partie des nouveautés de @golang@twitter.com 1.18?
C’est demain qu’avec @rumpl@twitter.com nous aurons le plaisir de vous parler #generics et #fuzzytesting lors du meet-up @codeursenseine@twitter.com
Inscrivez vous ici
https://www.meetup.com/fr-FR/codeursenseine/events/284582792/
Programmiersprache Go 1.8 ermöglicht generische Programmierung
A quick post about #generics in #Go for the upcoming 1.18 release.
Yes I missed foldl and foldr a lot from Go after i used Haskell 🤣
https://efertone.me/posts/2022/02/go-1.18-fold-with-generics/
Programmiersprache Go: Beta zu Go 1.18 führt Generics ein
Another lazy update for #brutalinks the federated link aggregator, and #fedbox, the generic #activitypub service.
Finalizing the use of a single pipeline for loading items in all pages of BrutaLinks, which allowed some cache improvements also.
The most important bit is the redesign around how to build moderation capabilities on top of plain ActivityPub vocabulary, and the work for using #golang #generics in the libraries.
More details here: https://littr.me/~marius/c5bab13c-8457-4f2a-bd10-2c722feb7350
Since @golang@twitter.com 1.17, the branch dev.typeparams has been merged into master 🎉
- Install gotip tool
- define the version of your go.mod file to 1.18
- use dedicated flag -gcflags=all=-G=3
No more need of the .go2 suffix for your files!
#golang #generics
https://github.com/glours/go2funk
This is actually happening. #Go is going to have generics. 😱
`A Proposal for Adding Generics to Go - The Go Blog`
Generika für Go – die Sprache soll 2021 parametrisierte Typen erhalten
#Generics #GoogleGo #Programmiersprachen
I need help with some #vala code and #generics https://stackoverflow.com/questions/57771896/is-it-possible-to-create-an-instance-of-a-generic-type-in-vala
And that affects my InternalWarning and InternalError implementations. because they implement ICommunication.
Could I move the override into a different interface. Yes. I can. Only to once more lose the up-cast from new interface to Communication.
Could I solve it by applying #generics. Yes. I can. Only to introduce an amount of #complexity that does not relate to the issue at hand.
Thanks. #java. - 2/2