Xavier · @xavier
48 followers · 160 posts · Server sunny.garden

Anyone knows a paper on implementing row polymorphism for records (and variants) with type predicates? All the papers I've found are based on giving record rows a different kind, but that leads to annoying issues for me.

What I'm envisioning is, a type class `Record`, and then two types `EmptyRecord` and `RecordExtend label field tail` with rules `Record EmptyRecord` and `Record tail => Record (RecordExtend label field tail)`. Then whenever you need to enforce that something is a record (e.g. when constructing one or accessing a field) you just add a predicate on the type.

I'd love to see if anyone has attempted to formalise this idea though. The fact that I haven't found anything makes me wonder whether it might be unsound or bad.

#typetheory #rowpolymorphism #polymorphism #records #variants

Last updated 2 years ago

Felix Palmen 📯 · @zirias
36 followers · 153 posts · Server techhub.social

@jhx Probably not exactly a book ... I just use when I want to compile to native machine code 😎 and yep, is perfectly possible using -- just stay away from (certainly "possible" as well, but very cumbersome, and a questionable design anyways, I strongly believe in "composition over inheritance"). Should probably also have a look at some day (probably not , I'm very sceptical about anything Google these days ...)

I only use C++ when I have to, which is, in my case, when I want to have some "desktop" . IMHO, is the best toolkit for that, and it uses C++. At least, it works perfectly fine without exceptions (even disabling them at compile time with -fno-exceptions), so it's not *that* bad after all 🙈

#c #oop #polymorphism #rust #go #gui #qt

Last updated 2 years ago

Jonathan Hall · @jhall
97 followers · 359 posts · Server techhub.social

🦆 The amazing power of Duck Typing in Go 🦆🦆🦆

Go handles interfaces through what's colloquially called "Duck Typing". If it walks like a duck and quacks like a duck, it must implement your interface!

Watch the full video: youtube.com/watch?v=LltEsGFOAS

#go #golang #inheritance #computerprogramming #softwaredevelopment #polymorphism

Last updated 2 years ago

CellBioNews · @cellbionews
49 followers · 1130 posts · Server scientificnetwork.de
Jun Bird · @junbird
167 followers · 1974 posts · Server livellosegreto.it

I've got a question for the -ist out there: is a function which argument's can be one of several types, formally polymorphic in any way?

If Shape is a union of the Circle and Square types, would a function (let's say "area") working on a Shape exhibit any kind of ? Would it be right to say that Circle and Square are subtypes of Shape, altough no inheritence is involved?

Could pattern matching be considered a form of adhoc polymorphism?

#typetheory #polymorphism #computerscience #programming

Last updated 2 years ago

Lupino · @LupinoArts
44 followers · 165 posts · Server mstdn.social

Is there any programmer in my timeline? I asked a qustion over at Stackoverflow, but it was closed for being "not focused" enough, even after i completely re-edited my problem: stackoverflow.com/questions/75?

#polymorphism #Programming #cpp

Last updated 2 years ago

nope · @stacked_automation
124 followers · 6890 posts · Server mastodon.social
Giuseppe Michieli · @GMIK69
54 followers · 969 posts · Server mstdn.science
Laszlo Xalieri · @xalieri
118 followers · 285 posts · Server mastodon.art
Laszlo Xalieri · @xalieri
101 followers · 244 posts · Server mastodon.art
Darren Obbard · @DarrenObbard
272 followers · 65 posts · Server ecoevo.social

Day8: Lordiphosa andalusiaca—Our first species not in : a distinctive with a striking colour (brill.com/view/journals/anz/17 - ours is a dark one). Lordiphosa like rotting plants drosophila.jp/jdd/class/030704 and some species have sex combs doi.org/10.1111/evo.14564 . It gives us two lessons in systematics: [1] doesn’t match academic.oup.com/gbe/article/1 ; [2] Do not let people play word games with your (sub)genera... cf. Phloridosa & Siphlodora

#advent #drosophila #fly #polymorphism #drosophilid #taxonomy #Phylogeny

Last updated 3 years ago

Angus Davison · @snailman
160 followers · 40 posts · Server ecoevo.social

I am loving the profile shot @JEB. 😍 Paper that recently featured these snails 🐌 is here onlinelibrary.wiley.com/doi/fu
-seq

#snails #Genomics #RAD #cepaea #UoN #UoNLifeSci #colour #polymorphism

Last updated 3 years ago

Angus Davison · @snailman
110 followers · 7 posts · Server ecoevo.social

Mid-November and there are still colour polymorphic Cepaea nemoralis (grove snail) out and active in the UK; worldwide records by month on right.

PhD student Margarethe Johansen will present an update (based on whole genome linkage map) in our quest to identify the colour and banding loci, this Thursday at . Free registration, hybrid event phyman@bas.ac.uk

#inaturalist #UoN #BBSRC #molluscanforum #NHMLondon #cepaea #grovesnail #Evolution #polymorphism

Last updated 3 years ago

Leopnk · @leopnk
24 followers · 186 posts · Server mastodon.zaclys.com
Leopnk · @leopnk
24 followers · 186 posts · Server mastodon.zaclys.com
Leopnk · @leopnk
24 followers · 186 posts · Server mastodon.zaclys.com
Leopnk · @leopnk
24 followers · 186 posts · Server mastodon.zaclys.com
gaby_wald · @gaby_wald
70 followers · 16249 posts · Server framapiaf.org
gaby_wald · @gaby_wald
74 followers · 16277 posts · Server framapiaf.org