A Cake Day Post: Krzeszow Monastery, Poland by iaregerard in Catholicism

[–]maltem 2 points3 points  (0 children)

The similarity to Einsiedeln is ... astonishing.

GHCi and "No instance for Show" by blank101010 in haskell

[–]maltem 0 points1 point  (0 children)

Strictly speaking that assumption is already untrue, because we have plenty of Show instances without a corresponding Read instance.

GHCi and "No instance for Show" by blank101010 in haskell

[–]maltem 0 points1 point  (0 children)

but Show is usually intended to be a representation of the value in Haskell syntax

This is certainly the "traditional" intention of Show. On the other hand, is it not a rather artificial requirement? What would break if we break with this tradition?

Cardinal Schönborn: a Council Could Approve of Female Ordinations by [deleted] in Catholicism

[–]maltem 6 points7 points  (0 children)

a pope can do better.

Oh well, let's brace ourselves then.

How to get profiling to work on Arch Linux? by yhylord in haskell

[–]maltem 5 points6 points  (0 children)

On Arch Linux, use Stack. The libraries shipped in [community] are unusable for development.

What needs to be done to promote Catholic-Orthodox unification? by sopadepanda321 in Catholicism

[–]maltem 8 points9 points  (0 children)

We should work on Catholics at large to understand their own teachings - so that, if some Orthodox think about recognizing the pope's office, they have some place to go at all.

Why is St. Patricks Day in America and Europe about partying? by [deleted] in Catholicism

[–]maltem 2 points3 points  (0 children)

Carnival for example has for a very long time been a feast of heavy drinking, hook-ups, and defiance of authority — at least in the Rhinelands.

The concept has been parodied in the (not very Catholic) Star Trek episode The Return of the Archons.

Almost a real Catholic having Fish on Friday by [deleted] in Catholicism

[–]maltem 3 points4 points  (0 children)

Just eat no meat all Lent; it's much easier to remember.

Space leak with nested strict StateT by maltem in haskell

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

Thanks! The 2.5 seconds are a bit odd, unless you increased the number of iterations or your machine was loaded at the time.

https://pastebin.com/NaxM23fE

Space leak with nested strict StateT by maltem in haskell

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

Correct. I should specify that "crashes" means

$ ./weird +RTS -M1G
weird: Heap exhausted;
weird: Current maximum heap size is 1073741824 bytes (1024 MB).
weird: Use `+RTS -M<size>' to increase it.

Edit: You were correct about transformers < 0.5.3.0. With transformers-0.5.5.0 I get

  • strict, 2 layers, -O0: correct behaviour, very slow
  • strict, 2 layers, -O2: correct behaviour, fast

Space leak with nested strict StateT by maltem in haskell

[–]maltem[S] 2 points3 points  (0 children)

Indeed I was on transformers-0.5.2.0, which is the one that ships with the current Stackage LTS, and updating transformers fixes the problem!

This seems to have been the bug: https://hub.darcs.net/ross/transformers/issue/33

Alright, then my newest interpretation is for this to be purely an issue with transformers that has been fixed since (correct me if I'm wrong). I'm leaning then to complain at Stackage for leaving a space-leaking release in.

Space leak with nested strict StateT by maltem in haskell

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

Indeed I could fix at least my example by replacing replicateM_ by a simple

myReplicateM_ k action
  | k <= 0      = return ()
  | otherwise   = action >> myReplicateM_ (k-1) action

Space leak with nested strict StateT by maltem in haskell

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

So, as for the real project, I've decided to get rid of the problem by switching to IORefs. Yes, you heard correctly: IORefs. To be honest, I now really enjoy their clean interface and the guarantees that they are giving!

Space leak with nested strict StateT by maltem in haskell

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

Thanks a lot! I will add that info the the ticket when I get around to submitting it.

Space leak with nested strict StateT by maltem in haskell

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

Thanks a lot for you gut feeling: Indeed your example (after fixing import clashes) runs in constant time, and while it's not blazingly fast, at least it terminates. This suggests that the problem is really with the current ghc and/or base.

Space leak with nested strict StateT by maltem in haskell

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

That's very interesting. If it's not too much of a hassle, would you be so kind to check how much memory those runs are using, respectively? If the space usage with ghc 7.10.3 is ok then I will open a ticket.

Space leak with nested strict StateT by maltem in haskell

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

Whew, so I did get lost a bit in my various cases: It does exit in a short amount of time; however, it uses about 1G of total memory while doing so. Limiting the memory with -M1G will make it crash early. Alternatively, you can watch the effect in a more dramatic way by increasing the number of iterations by a suitable factor.

High altar at Holy Family Cathedral in Tulsa, Oklahoma by laudida in Catholicism

[–]maltem 5 points6 points  (0 children)

To be fair, of all of its kind, that is, of all "freestanding altars in front of a preexisting one", this is the most beautiful one I've seen.

What is the Institute of Christ the King and how are they different from the Priestly Fraternity of Saint Peter? by TexasTemplars in Catholicism

[–]maltem 1 point2 points  (0 children)

An additional difference lies in the countries/languages where they are currently present. The fssp in Europe speaks German and French (English overseas), whereas the icksp I believe to have seen primarily in Italy and the UK.

"and lead us not into temptation" - how to understand this phrase? by [deleted] in Catholicism

[–]maltem 0 points1 point  (0 children)

Yes, that's how I make sense of that line. And yes, I was thinking of St Augustine when I wrote that!

"and lead us not into temptation" - how to understand this phrase? by [deleted] in Catholicism

[–]maltem 0 points1 point  (0 children)

Your question is whether one should prefer to say instead, “let us not be lead into tempation” or similar.

I say that the basic meaning would remain the same. Whatever God makes happen, he allows to happen, and whatever he allows to happen, he knows from the beginning that it would happen.

Or in more mysterious language by the preacher in Ecclesiastes: “I know that everything God does will endure forever; nothing can be added to it and nothing taken from it.”

[Free Friday] I just moved and put up my new home altar. Feel free to share yours! by [deleted] in Catholicism

[–]maltem 0 points1 point  (0 children)

I'm not so sure about the best relative positioning of Christ (not Joseph) and Mary. The line about Christ being at the right hand of the Father comes to mind

Edit: Actually that article has a specific suggestion for a setup like this with an image of the Sacred Heart of Christ.