litchralee, to nostupidquestions in How do you keep your homes clean?

I didn’t include it in my original comment because it’s kind of tangential, but carpets also trap rusty staples and – very strangely – rusty finish nails. Over six years, my feet have found dozens of these staples and nails twisted within my house’s carpet, each of a shape which I have never owned.

I honestly don’t know what the previous owners of this place did, but I recently had every shred of carpet ripped out and replaced with wood-look tile. I bought myself some indoor slippers for winter and haven’t looked back since.

Crell, to php
@Crell@phpc.social avatar

Teacher: Replace any validation a function does on its inputs with more robust types instead. Eliminate all conditionals that could be types instead.

Student: But doesn't that just push the validation problem up a level?

Teacher: Exactly. Now do it again. And keep doing it until you run out of upper levels.

Student: But now I'm just parsing input into an object as soon as I get it. There's nothing for other code to even do.

And the Student was enlightened.

Crell, to programming
@Crell@phpc.social avatar

1 does not mean true.
0 does not mean false.

That is a 50 year old hack in #C that we have not managed to escape yet; it's even inconsistent. (Unix error codes are the other way around.) It's high time we moved on.

frankel, to python
@frankel@mastodon.top avatar
DiazCarrete, to Logic
@DiazCarrete@hachyderm.io avatar
schizanon, to ai
@schizanon@mas.to avatar

I feel like the people who get their panties in a bunch about being incorrect are the same people who insist that everyone use languages.

paperswelove, to programming
@paperswelove@mstdn.io avatar

PWLConf 2023: "Formal semantics for multi-language programs" by Amal Ahmed

https://youtu.be/xOInz_gt2Fg?si=-I32_74eI8BBqJdh

juergen_hubert, (edited ) to fediverse
@juergen_hubert@thefolklore.cafe avatar

I was rather active back on Google+ back in the day (and I am a bit miffed that Google ended it one week before I started my Patreon campaign).

And the one feature I truly miss are the "Collections". Basically, you could assign each of your posts to a single Collection you've defined. For example, I created the following Collections (among others):

  • "RPG" (tabletop role-playing games)
  • "Politics"
  • "Deutsch" (German-language posts)
  • "Science"

and so forth. And those who followed me could choose whether to follow my entire stream, or only specific collections. Someone who wasn't interested in Politics could unsubscribe to these posts. Someone who could not read German could thus not have my German-language posts show up in their stream - and so forth.

This was an amazing feature for keeping the signlal-to-noise ratio high in people's streams. And I would love it if someone implemented a -based approach for this - but I am not sure if would even support such a subdivision.

EDIT: @sl007 pointed out that this feature IS, in fact, part of the ActivityPub standard and thus could be implemented on the Fediverse - but apparently, no one has done so yet. Read the following for the details:

https://www.w3.org/TR/activitystreams-vocabulary/#types
https://www.w3.org/TR/activitypub/#actor-objects


https://support.google.com/googlecurrents/answer/6320409?hl=en

sl007,
@sl007@digitalcourage.social avatar

@juergen_hubert

I hear you. I feel you.
And this is what I have done the whole day.

You write
And the one feature I truly miss are the "Collections".
“I am not sure if would even support such a subdivision.”

"Collections" are the heart of ActivityPub, see "Core Types":
https://www.w3.org/TR/activitystreams-vocabulary/#types
It is just that “some software” is not conformant.

You define your RPG/Politics/Science Collections as 'streams' in your Actor Profile https://www.w3.org/TR/activitypub/#actor-objects
It is just that “some software” ignores this.

When our thing is ready, I'll announce it …
¯_(ツ)_/¯

stacked_automation, to scheme
abcdw, to ML
@abcdw@fosstodon.org avatar

I already mentioned a good OCaml course (book + video series). I watched it every time I went by bus to climbing workout and finally finished it:

  • First of all it's really good.
  • I unlocked much more papers and talks I can read and watch, because I understand basic ML syntax now.
  • There are a lot of fundamental language-independent programming topics covered in it.
  • I found a couple of things I didn't know before.

More in my notes:
https://github.com/abcdw/notes/blob/019edbe7cc237fe9acc9501ef9a5aad0c0888930/notes/20230825163743-ocaml_programming_correct_efficient_beautiful.org#L1

rml, to random
@rml@functional.cafe avatar

"ATS3 is an attempt to greatly improve upon ATS2.

Probably the biggest problem with ATS2 is the very steep learning curve associated with it. Very few programmers were able to ever overcome it to reach the point where they could truly start enjoying the tremendous power of (advanced) type-checking and (embeddable) templates.

When DML (the predecessor of ATS) was designed nearly 20 years ago, a two-layered approach to type-checking was taken: ML-like type-checking first and dependent type-checking second. This approach was later abandoned in the design of ATS. Instead, there is only dependent type-checking in ATS1 and ATS2. In ATS3, DML's two-layered approach is to be adopted. In particular, a program in ATS3 that passes ML-like type-checking can be compiled and executed. So one can skip dependent type-checking in ATS3 if one so chooses. In this way, the learning curve is expected to be greatly leveled. But there is much more than just leveling the learning curve.

ML-like types are algebraic (involving no explicit quantifiers). Such types are so much friendlier than dependent types (which often involve explicit quantifiers) for supporting type-based meta-programming. It seems that a chance has finally arrived to properly address the problem of template instance resolution that causes so much annoyance in ATS2 (due to the very use of dependent types for template selection).

In short, ATS3 adds an extra layer to ATS2 for supporting ML-like algebraic type-checking. Type-based meta-programming in ATS3 solely uses algebraic types (while ATS2 uses dependent types)."


https://github.com/githwxi/ATS-Xanadu

Edent, to wordpress
@Edent@mastodon.social avatar

sigh

Is there a SIMPLE guide to building a theme for ?

I'm currently very happy with my plain-old theme. But I can see the writing's on the wall for that way of working.

I'll never move away from Markdown for writing posts. But looks like more and more features will only be available in blocks.

Edent,
@Edent@mastodon.social avatar

@ohryan that's not how I understand it based on this page - https://developer.wordpress.org/block-editor/how-to-guides/themes/#types-of-themes

Seems to indicate that it needs a template, not a theme.json

argyleink, to CSS
@argyleink@front-end.social avatar

🆕📝
Type safe design systems with
@property

✅ not just types during dev
✅ graceful error handling
✅ interwoven type safe variable systems

Soon will land in Firefox, making this type of setup cross browser viable 🎉

👀👇
https://nerdy.dev/cant-break-this-design-system

simevidas,
@simevidas@mastodon.social avatar

@argyleink The “Full list on MDN” link is 404. I think you forgot an s at the end of the URL.

edit: Btw, the full, much larger list of CSS types is here: https://drafts.csswg.org/indexes/#types

edit 2: Actually, those are both value types and other grammar productions.

lauraehall, to random
@lauraehall@xoxo.zone avatar

Welcome to my Friday good links, a collection of stuff I enjoyed over the past week!

Today’s links include tall ships, free-to-use endpapers, coloring books, wooden alphabets, and more ⚓🌀🖍️

Three vintage dancers in fringed skirts shake their hips towards the camera

lauraehall,
@lauraehall@xoxo.zone avatar
  1. Browse this cool 1992 book of gorgeous wooden ornamented types, "twenty-three alphabets from the foundry of Louis John Pouchee) from the Letterform Archive

https://oa.letterformarchive.org/item?workID=lfa_antiquarianfacsimile_0008

abcdw, to Lisp
@abcdw@fosstodon.org avatar

If you are into programming languages, learning Ocaml (or other ML dialect like StandardML) makes a lot of sense, it's helpful for reading papers, watching conference talks, understanding basics of type theory, going through PL courses and all other fancy stuff.

Here is a good introductionary course on OCaml and functional programming:

https://cs3110.github.io/textbook/cover.html

https://www.youtube.com/playlist?list=PLre5AT9JnKShBOPeuiD9b-I4XROIJhkIU

_alen, to python

At first, I didn’t like type hints in , but we decided to give it a go since our codebase really exploded in the last couple of years. All I can say now is we should have done it earlier. I still find it unbealivable that we discovered so many small bugs that went unnoticed all these years.

cazabon,

@folkerschamel @_alen

Static type do help find - even ones that would be nasty to try to debug after hitting them in use.

But you can also use them to enforce , if you prefer that to duck typing (not built-in). A lot of Pythonistas will hold their nose at that, but it can be useful to "die loudly and early" when someone else passes the wrong to your .

Nonog, to Japan

Japan’s Alpha Particle Assassin: New Treatment for Multiple Types of Cancer
Scientists at RIKEN in Japan have developed a technique that treats various cancers by inducing alpha radiation within cancer cells, killing them while leaving healthy tissue unharmed. This approach, tested on mice, significantly reduced tumor growth and achieved a 100% survival rate.
https://scitechdaily.com/japans-alpha-particle-assassin-new-treatment-for-multiple-types-of-cancer/?expand_article=1 %

jbzfn, to python
@jbzfn@mastodon.social avatar

🐍 Compiling typed Python | Max Bernstein


https://bernsteinbear.com//blog/typed-python/

woodsbythesea, to javascript
@woodsbythesea@fosstodon.org avatar

"TypeScript sucked out much of the joy I had writing JavaScript. I’m forever grateful that @yukihiro_matz didn’t succumb to the pressure of adding similar type hints to Ruby. May we forever enjoy this beloved language without 🙏"

https://zverok.space/blog/2023-05-05-ruby-types.html

chris_hayes,
@chris_hayes@fosstodon.org avatar

@woodsbythesea As a web dev I still use both, js for simple stuff on generally static sites. But, I absolutely use TS for anything web-app-ish. I would never want to refactor a web app in JS, that's like "break stuff and move slow".
Not using TS because it's occasionally unwieldly is the same as not using AI because it occasionally makes a mistake.

rml, to random
@rml@functional.cafe avatar

Where did optional succeed and fail in ?

rml, to programming
@rml@functional.cafe avatar

"The focus of my research is applying , in particular , to low-level problems — the type of situations that usually call for or #c"

— highly recommended talk on programming with serialized data from @vollmerm @

https://www.twitch.tv/videos/1803057942

rml,
@rml@functional.cafe avatar

@theruran @vollmerm
heavy wager:
"While I'm a long time , most of my research deals with using to improve performance... I promise I'll convince everyone here that types are good by the end of this talk"

(quoting from memory, not entirely accurate)

rml, to random
@rml@functional.cafe avatar

"Something I'm curious about working on is an imperative dependently typed programming language that uses linear types and to keep the mutation in line. Something I have to admit is that I'm not actually interested in . I'm simply interested in ."

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • thenastyranch
  • DreamBathrooms
  • ethstaker
  • InstantRegret
  • Youngstown
  • magazineikmin
  • osvaldo12
  • slotface
  • khanakhh
  • rosin
  • kavyap
  • everett
  • tacticalgear
  • provamag3
  • ngwrru68w68
  • GTA5RPClips
  • cisconetworking
  • mdbf
  • cubers
  • Durango
  • anitta
  • modclub
  • normalnudes
  • tester
  • Leos
  • megavids
  • lostlight
  • All magazines