Olle Fredriksson

257 posts

Olle Fredriksson

Olle Fredriksson

@ollfredo

Joined to follow @plt_borat. Compilers and functional programming. https://t.co/jhXCQH3smp https://t.co/7w3hKa2yLJ

Norway Katılım Eylül 2016
277 Takip Edilen338 Takipçiler
Olle Fredriksson
Olle Fredriksson@ollfredo·
@typeswitch Branch displacement optimization, deciding whether a relative jump is short enough to use the smaller instruction encoding, is also messy fun.
English
0
0
0
0
Olle Fredriksson
Olle Fredriksson@ollfredo·
@typeswitch I ended up going through a monoidal description record in my assembler because of the damn prefixes. Too much back and forth to go directly to bytes cleanly.
English
1
0
0
0
gabby
gabby@GabriellaG439·
I feel like if you have a parser for a type you should be able to derive a generator (e.g. an Arbitrary instance) for the same type for free
English
16
2
64
0
Luc Tielen
Luc Tielen@luctielen·
Eclair now uses the `rock` build system made by @ollef. Really nice to setup, cleaned up the code a lot! This also opens up the possibility to compile multiple Datalog files! The diff: github.com/luc-tielen/ecl…
English
3
3
8
0
Olle Fredriksson
Olle Fredriksson@ollfredo·
@brendanzab @kamatsu8 @wenkokke @cyberglot @jonmsterling Yes: Sixty does NbE with De Bruijn indices in the syntax and fresh vars in the domain to avoid shifting during pattern matching elaboration, which can make modifications to the middle of the context. But I guess implementations might have different tradeoffs than formalisations.
English
1
0
0
0
sandräknaren
sandräknaren@julepaj·
Att slutet på ”citron” uttalas som slutet på ”päron” är självklart, men uttalar ni inledningen med långt eller kort i?
Svenska
1
0
1
0
Julien Truffaut
Julien Truffaut@JulienTruffaut·
How do you call these operators? *> and <*
English
43
3
30
0
Olle Fredriksson retweetledi
András Kovács
András Kovács@andrasKovacs6·
It's a bit crude now, but if you want the fastest parser library in Haskell, which is a) on Hackage b) can be used for real-world programming language parsing with reasonable effort, see this: hackage.haskell.org/package/flatpa…
English
2
17
61
0
Olle Fredriksson
Olle Fredriksson@ollfredo·
@tomjaguarpaw That's funny. SQL LIMIT and OFFSET was exactly the context that I found this in: #L120-L135" target="_blank" rel="nofollow noopener">github.com/folq/postgres-…
English
1
0
0
0
Tom Ellis
Tom Ellis@tomjaguarpaw·
@ollfredo Especially these two lines #diff-5c499ee77e92cae7e2ec922a422e8607cf13e573191e018f3c4d85942368d913R47-R48" target="_blank" rel="nofollow noopener">github.com/tomjaguarpaw/h…
English
1
0
1
0
Olle Fredriksson
Olle Fredriksson@ollfredo·
Has anyone seen this monoid with a cute action on lists before? empty = (∞, 0) (t₁, d₁) ⋄ (t₂, d₂) = (min t₁ (t₂ - d₁), d₁ + d₂) act (t, d) = take t . drop d
English
3
2
6
0
Olle Fredriksson
Olle Fredriksson@ollfredo·
act (t₁, d₁) . act (t₂, d₂) = take t₁ . drop d₁ . take t₂ . drop d₂ = take t₁ . take (t₂ - d₁) . drop d₁ . drop d₂ = take (min t₁ (t₂ - d₁)) . drop (d₁ + d₂) = act (min t₁ (t₂ - d₁), d₁ + d₂) = act ((t₁, d₁) ⋄ (t₂, d₂))
English
0
0
2
0
Rob Rix‎
Rob Rix‎@rob_rix·
Why are contexts lists? Why not binary trees? I like the idea of pushing an entire recursive pattern onto the context as a single (recursive) entry.
English
6
0
11
0
mRUNAR
mRUNAR@runarfu·
Angrer mange musikkinstrumentanskaffelser. Nå er det trekkspillet som skal ut. Noen som er interessert i et rimelig pianotrekkspill med 96 bassknotter?
Norsk
1
0
0
0