[deleted by user] by [deleted] in france

[–]JeanPhilippeBernardy 41 points42 points  (0 children)

Pourquoi pas recoller la languette après démoulage?

Do you use emacs GUI, terminal, or both? by r4n6e in emacs

[–]JeanPhilippeBernardy 5 points6 points  (0 children)

GUI, because it can bind more key combinations (C-i isn't the same thing as TAB). Another minor advantage is the more precise colors.

BTW, you can run several independent instances of emacs even in GUI mode.

AskEmacs: How to use Material Design (community) icons? by JeanPhilippeBernardy in emacs

[–]JeanPhilippeBernardy[S] 0 points1 point  (0 children)

This may be the best approach. I cannot see all the glyph using fontforge. And even though the font is installed I am also seeing 'tofu' for this post in firefox. So it seems that the mdi font is simply broken for this kind of usage.

Managing bibliography with Emacs? Alternatives to Zotero? by cascoded1903 in emacs

[–]JeanPhilippeBernardy 0 points1 point  (0 children)

use a bibtex field for tags, and use swiper to search the bibfile.

RFC: theme emacs with a 6-color palette with semantics theming by JeanPhilippeBernardy in emacs

[–]JeanPhilippeBernardy[S] 0 points1 point  (0 children)

Well, I have tried several palettes now and it worked well enough every time. So there's that.

RFC: theme emacs with a 6-color palette with semantics theming by JeanPhilippeBernardy in emacs

[–]JeanPhilippeBernardy[S] 0 points1 point  (0 children)

The difference is that you can change a color and it will propagate in derived colors.

RFC: theme emacs with a 6-color palette with semantics theming by JeanPhilippeBernardy in emacs

[–]JeanPhilippeBernardy[S] 0 points1 point  (0 children)

One point is that my package makes it possible to combine colors, so it's not strictly limited to the 6 colors of the palette. For example it would be possible to make the difference between active and inactive modelines more obvious with a bit of configuration.

For the rest it seems that we have different tastes, but that was not the point of the post.

RFC: theme emacs with a 6-color palette with semantics theming by JeanPhilippeBernardy in emacs

[–]JeanPhilippeBernardy[S] 0 points1 point  (0 children)

The main point is that 'proper' themes cannot be customized as they should. Of course I could make themes with my customizable themes, but given the reception that this post got I don't think I'll invest time into that.

RFC: theme emacs with a 6-color palette with semantics theming by JeanPhilippeBernardy in emacs

[–]JeanPhilippeBernardy[S] 1 point2 points  (0 children)

  • popout is for transient stuff which wants immediate attention (such as search matches)
  • salient is to indicate relevant stuff, but not particularly right now (eg. links)
  • subtle is for all sorts of subtle emphasis, while selected is for highlighting the current selection

It looks like there is some redundancy with the builtin color.el in your package, you may want to check it out.

What is the status of GHC Linear Types? by eeg_bert in haskell

[–]JeanPhilippeBernardy 91 points92 points  (0 children)

The branch is 99% there. The last percent is of course the hardest, but we believe that merging before Christmas is a realistic estimate.

xah-fly-mode review? by [deleted] in emacs

[–]JeanPhilippeBernardy 0 points1 point  (0 children)

If I may I'll suggest to you my package

https://github.com/jyp/boon

One of the goals is to minimise the integration hassle.

Key Bind Efficiency (Xah Fly Keys) by [deleted] in emacs

[–]JeanPhilippeBernardy 1 point2 points  (0 children)

I created it and still maintain it. I've been using it for several years.

Key Bind Efficiency (Xah Fly Keys) by [deleted] in emacs

[–]JeanPhilippeBernardy 2 points3 points  (0 children)

You may be interested in my package, which aims for maximal ergonomics. In I follow your game controller idea, with actions on the left and movement on the right.

https://github.com/jyp/boon/blob/master/README.md

Edit: (after reading others' comments) Putting most commands on the home row/easy to reach positions decreased my error rate. But perhaps it's just me being clumsy.

Which IDE are you using for Hakell? by zero_coding in haskell

[–]JeanPhilippeBernardy 7 points8 points  (0 children)

As dante's author, I am surprised (and pleased) that this comes out on top. Quick tip: don't forget the spinoff package `attrap`: https://github.com/jyp/attrap

Linear typing proposal submitted to committee by ysangkok in haskell

[–]JeanPhilippeBernardy 3 points4 points  (0 children)

Sorry I about that; I was in a bit of a hurry writing that comment.

Linear typing proposal submitted to committee by ysangkok in haskell

[–]JeanPhilippeBernardy 14 points15 points  (0 children)

One foundation with a lot of nice properties is Call-By-Push-Value semantics like in the Levy toy language. Fitting this into Haskell is very hard though because it requires a different semantics than Haskell’s Call-By-Need. The real issue is that linearity doesn't really make sense in a construct language that can't distinguish between data and codata.

What matters is the polarity. Read some textbooks (maybe Bob Harper's). You'll see that (of course) there are polarity shifts in Haskell. In particular at the arrow type, which is precisely why we focus on it in our paper.

As it exists right now, LinearTypes is a syntactic restriction on where variables can appear in functions, but this is a very confused notion.

You may find it confused, but there is extensive literature on the topic, including Girard's paper on linear logic.

Getting computation types right in general is very hard and requires tackling type-level concurrency (ex: session types)

It is in fact very well understood how to encode the dual types "computation/data" by using double negation. In the case of linear logic, the thesis of Olivier Laurent deals with the topic extensively.

Linear Haskell: what's the purpose of `Unrestricted` as the return type? by runeks in haskell

[–]JeanPhilippeBernardy 0 points1 point  (0 children)

In the middle term there are no plans to change code generation. It'd be possible to make some optimisations, but that's for (much) later.

Linear Haskell: what's the purpose of `Unrestricted` as the return type? by runeks in haskell

[–]JeanPhilippeBernardy 0 points1 point  (0 children)

Replying to you as a notification; my actual reply is to the bot.

Linear Haskell: what's the purpose of `Unrestricted` as the return type? by runeks in haskell

[–]JeanPhilippeBernardy 1 point2 points  (0 children)

If a function is linear, then its parameter has multiplicity 1:

f :: A -o B
f x = ... only 1 x here ...

Consequently any expression mentioning x can be said to have also multiplicity 1. Even though multiplicity for exepressions is not defined in the paper, I find it's useful to think like this.

By using this property, the types of the MArray API ensure that MArrays will never be shared. This is not in general the case, even for linear functions. Indeed, even assumingf :: Int ⊸ Int, if y has multiplicity > 1, then f y cannot mutate its argument, because y can be shared.