Twitxy Saved

LambdaDuck

@Anka213

Functional programming and type theory enthusiast #Haskell #Agda. They/Them

mastodon: types.pl/@LambdaDuck
bluesky: @anka213.bsky.social
github.com/anka-213 Joined May 2011
1.1K Following 4.2K Followers 16K Posts

Latest posts 5

Pinned post

LambdaDuck @Anka213
Parser in a tweet:

import Control.Monad.State
import Control.Applicative
import Data.List

data T = T [T] deriving Show
ch c = mfilter (== c) $ StateT uncons
parens = T <$ ch '(' <*> many parens <* ch ')'

parse = runStateT

-- $> parse parens "(()())"
-- Just (T [T [],T []],"")
LambdaDuck @Anka213
this makes me wonder how well they managed to protect it against indirect prompt injection?

they probably gave it zero privileges, but that doesn’t necessarily make it safe. at the very least you can make it give the wrong summary
Rowan Cheung Verified account @rowancheung Sep 9, 2024
3. Apple Intelligence automatically summarizes your emails and notifications for easier reading.

It also brings your most important notifications to the top of your stack, helping you focus on what is important in the moment.
View quoted post on X