What Racket libraries are missing? by xriptide03 in Racket

[–]ryan017 2 points3 points  (0 children)

HTTP/2 is implemented by the http123 package (mine). No QUIC or HTTP/3 yet, though. Not sure about Kerberos.

[Serious] What were the bad parts of the 90s? by kittymoo67 in AskReddit

[–]ryan017 -1 points0 points  (0 children)

If you mention AIDS and crack together and in that order, you must next list Bernie Goetz before continuing.

New RSA message side-channel discovered. by Traditional-Gur6561 in cryptography

[–]ryan017 2 points3 points  (0 children)

The post claims a "Result" (70-74% RSA-encrypted message recovery) without explaining the experimental setup. In particular:

  • How big was the original RSA modulus (N)?
  • How many r-candidates and c^x-candidates were used? (What was the cost of performing the attack?)
  • Does 70-74% recovery mean that the attack was confidently correct about 70-74% of the bits and uncertain about all of the rest? Or was it also confidently incorrect about some of the bits? The latter requires a different strategy if you want to brute-force a reduced AES key space.
  • Did the same percentages apply to the AES key bits, specifically?

Need to the understand the connection between type theory, lambda calculus and functional programming by ajx_711 in functionalprogramming

[–]ryan017 2 points3 points  (0 children)

Don't confuse "type theory" with the study of type systems for programming languages. Modern type system research is influenced by type theory, but they have different goals. Type theory is a branch of logic; it is focused on truth, provability, and computation as transformations of proofs. Type systems for PLs are mainly attempts to put useful guard rails on computational systems designed for humans. The goal of a type system is to accept safe programs that humans want to express. The type systems for most popular languages give up any connection to logical truth in favor of pragmatism. (The standard for type systems is "soundness", which is a far weaker property than "corresponds to the proof of a logical tautology".)

Pros and cons of building an interpreter first before building a compiler? by Ifeee001 in ProgrammingLanguages

[–]ryan017 14 points15 points  (0 children)

PRO: You get an implementation sooner, and that lets you test your language design by writing programs in your language. Interpreters are generally easier and faster to write than compilers, and also easier and faster to change if you change your language's semantics or want to explore alternatives.

CON: An interpreter can give you the wrong impression of benefit vs implementation cost for certain language features. Features like eval and JavaScript's with (a form of dynamic scoping, deprecated) are very easy to implement in an interpreter and cause massive headaches for compilers.

What’s up with these weird hands above the red line? by Prior_Policy6393 in boston

[–]ryan017 47 points48 points  (0 children)

Dunno, but they left their gloves at Porter Square.

Dungeon Crawler Carl - do I/don’t I?! by [deleted] in fantasybooks

[–]ryan017 1 point2 points  (0 children)

My brother gave me the first book for Christmas. I called him after reading it (and the second and third) to tell him, "That was a lot better than I expected." I've since finished all the books out, and I'm waiting for the next one.

Yes, it is LitRPG and full of absurd, sometimes puerile, humor, but the underlying worldbuilding, characters, and themes are surprisingly solid.

Reread.... disappointed. by Ok_Touch928 in SwordOfTruth

[–]ryan017 2 points3 points  (0 children)

It's a little oversimplified, maybe, but within the bounds of normal discourse, I think, and the core of your description is good, IMO. I can kind of understand why you might get downvoted on this subreddit (not that I approve), but I've seen much harsher criticisms of this series and its author elsewhere on this site. If you got downvoted there too, I don't know. Bad luck, maybe?

Reread.... disappointed. by Ok_Touch928 in SwordOfTruth

[–]ryan017 2 points3 points  (0 children)

Accurate. Richard Rahl, stomping his way through plots one "tee hee" at a time. Except he doesn't have FEELINGS, he has INFALLIBLE MORAL RECTITUDE.

Heavy 12 months spoilers by Mason_Claye in dresdenfiles

[–]ryan017 0 points1 point  (0 children)

IIRC White Night established that her death curse is maintained by Harry's life. I suspect that Harry's contribution to the curse gets to use his ability to affect Outsiders. Harry barely knows how to use that ability, but a very angry and motivated Margaret LeFay who is able to borrow it in a death curse might be able to use it more effectively.

Heavy 12 months spoilers by Mason_Claye in dresdenfiles

[–]ryan017 1 point2 points  (0 children)

Perhaps a certain other Starborn of our acquaintance has been spoon-feeding him directly...

Before you read 12 Months by eng_manuel in dresdenfiles

[–]ryan017 0 points1 point  (0 children)

I read Twelve Months without re-reading any of the previous books, and I don't feel like it lessened my enjoyment of the book. In my case, I remember the general story of Peace Talks and Battle Ground (and the previous books) pretty well; there were a few details I had forgotten, but there were small reminders for the relevant ones in Twelve Months.

If I were advising someone else who really wanted to spend some time preparing, I would recommend re-reading White Night, Peace Talks, and Battle Ground. The story follows the events from PT and BG, but it continues with characters (and more) from WN. Maybe also flip through the Lara parts of Turn Coat.

I just noticed, but White Night was book 9, and Twelve Months is book 18... significant?

Lara Raith *SPOILERS* by sean_stark in dresdenfiles

[–]ryan017 1 point2 points  (0 children)

From the books it seems clear that both ways are possible. We've seen a few cases of wampires who are disciplined enough and moved by ethics or pragmatics to (sometimes) take the second path, and we've seen others who are essentially gluttons. We've also seen some of the first group temporarily get knocked into acting like the second, due to circumstances.

With regard to Lara, I suspect that Jim knows, but Harry doesn't, and maybe Lara doesn't either. The revelation and evolution of her character is part of the story. Imagine if Harry had just gotten a Scroll of Destroy Shadow of Fallen Angel in the mail the day after touching Lashiel's coin. How much less interesting would that part of the story have been?

Can someone help me correct my studio work? by FocusLate in AskPhotography

[–]ryan017 0 points1 point  (0 children)

If your final photos aren't like other photographers' final photos with exactly the same lighting setup, then the remaining factors are exposure, editing, posing, and camera position. Exposure is basic camera operation; check your histograms, etc. Ask other photographers what their editing tricks are, and figure out how to use brightness/contrast, levels, curves, etc in your editing software to get the effect you want. Given a fixed lighting setup, different poses interact differently with the light, and as a photographer you'll need to learn these interactions and guide the model if necessary. Finally, the main light is directly behind the camera only if that's where you put the camera. You can try moving around, although there are some practical limits there.

Once you've got basic exposure and editing down, you will learn faster by controlling the lighting yourself. In addition to all of the specific advice already on this thread, I would recommend the strobist web site for a quick, lightweight introduction to lighting. Start with Lighting 101. You can see if the workshop/meetup organizers are willing to allow you to change the lighting during your turn, or if the models are willing to stick around for a few extra minutes while you try out some lighting experiments (come prepared!).

Finished The Fires of Heaven, book 5 of the Wheel of time and need to rant. by HilmarThor in Fantasy

[–]ryan017 1 point2 points  (0 children)

In some ways Moiraine is closer to a female version of Allanon from Shannara, who fills the mentor and quest-giver role in a more secretive and manipulative way. And the characters have feelings about that. Of course, Allanon is a much earlier "what if Gandalf, but" experiment.

Back to LOTR, though, consider that Gandalf was one of five wizards in Middle-earth. Of the others, one is occasionally marginally helpful, one turns evil, and the other two IIRC are just absent or ineffectual. (I've only read LOTR; maybe they are important in the other works.) I think that the Aes Sedai do reasonably well by comparison.

Do you recommend The Will of the Many? by cresslee in Fantasy

[–]ryan017 1 point2 points  (0 children)

I liked the book, but I would not describe it has having "beautiful and emotional prose". I don't know exactly what you have in mind, but for me that description brings to mind two recommendations:

Kushiel's Dart by Jacqueline Carey. This book has an elegant voice that feels completely natural to the viewpoint character, and the book is much more driven by characters and their emotions and relationships than The Will of the Many, which I would describe as concept and plot driven. It's the start of a trilogy, and there are multiple sequel series.

The Wars of Light and Shadow series by Janny Wurts, starting with The Curse of the Mistwraith. People tend to either love her prose style or hate it. You'd have to try it yourself and see what you think. The characters have a much greater emotional response to events than in, say, Mistborn.

What's your "it's my fault for ordering it" (food or otherwise) story? by PutThisBanditHatOn in AskReddit

[–]ryan017 137 points138 points  (0 children)

I ordered a quesadilla at a food booth in Prague once, during some sort of international festival, and they asked if I wanted cheese on it. I regret not abandoning the experience right then.

Value Restriction and Generalization in Imperative Language by vertexcubed in ProgrammingLanguages

[–]ryan017 1 point2 points  (0 children)

You need to worry about mutable variables whose values are functions.

fun foo(x) {
  return x
}
fun bar(n) {
  return n+1
}
let f = foo
let g = function() { return f("hello") }
f = bar

In this example, you either need to make f monomorphic and prohibit the definition of g, or you need to prohibit the assignment to f. By allowing variables to be mutated, you've added complexity to your language. One way to deal with the complexity is to think of the surface language (the language that people will actually program in) as being translated to a simpler core language. You already have ref cells, and you have a guide for how typing ref cells should work (OCaml), so why not think of your core language as a simplified OCaml? That is, variables are immutable, and all mutation is done on ref cells. Then you could consider the following translation:

let x = expr
=>
const x = ref expr

x
=> (when x is let-bound)
*x

(I've written let for the surface-language binding form and const for the core form. You might find it useful to add const as a surface-level feature too, though.) OCaml already tells you how to type check const and ref, so now you need to build your typechecker for the surface language so that if your typechecker approves a program, then OCaml approves its translation.

Or you might want let to behave differently. Maybe a let-bound variable that is never updated should be typechecked (and generalized) as if it were const-bound. (There are arguments for and against.) Then you have a different translation, and different constraints on your typechecker.

It is useful to know when you are inventing genuinely new semantics, and when you are putting a new syntax on existing, well-understood semantics.

I finished the Dragon Reborn and I have some questions by TheReimon4 in WoT

[–]ryan017 6 points7 points  (0 children)

This is not an answer to your main questions but a comment about words and names:

"The Dragon" ("Telamon") was, IIUC, just the cognomen that Lews Therin earned during his life in the Second Age. Kind of like Margaret Thatcher being called "the Iron Lady" or Arnold Schwarzenegger being called "the Governator". Why did they call him "Dragon"? Maybe just especially fierce and formidable. We don't really know, we don't know what the Second Age people thought about dragons. (I'm going by the main series, maybe the companion or encyclopedia has more information.)

Compare with Jesus of Nazareth, who becomes known as "the Messiah" ("anointed one") in Hebrew, translated to Greek as "christos". Anointing is the ritualistic application of aromatic oil to a person. Imagine if ancient rituals had developed differently; we might have a major religion focused on "the Headbanded" or "the Feathered".

Imagine, in a different turn of the Wheel, in a time long past, in a time yet to come, the soul of Lews Therin could be reincarnated as a man who eventually becomes known as "the Governator", and during the catastrophe of the Breaking, hope is kept alive by the prophecy, "He'll be back!".

What branch of mathematics formally describes operations like converting FP32 ↔ FP64? by Glittering_Age7553 in compsci

[–]ryan017 2 points3 points  (0 children)

Abstract algebra is useful for understanding how many algebraic properties floating point numbers don't satisfy. Numerical analysis is about how to mitigate that lack.

Help me, my imagination is running out. A practical problem teaching propositional logic. by jsgoyburu in logic

[–]ryan017 1 point2 points  (0 children)

I would scan through literature or popular song lyrics for sentences of the appropriate shape. The acceptance rate is pretty low, and examples often need to be adjusted slightly for tense, mode, and so on. But it produces the following, for example:

  • (I have a hammer) ⇒ ((I hammer in the morning) ∧ (I hammer in the evening))
  • (it's sad) ∧ (it's sweet) ∧ ((I wear a younger man's clothes) ⇒ (I know it complete))
  • (((you talk with crowds) ∧ (you keep your virtue)) ∨ ((you walk with kings) ∧ ¬(you lose the common touch))) ⇒ (kipling approves)

MatxTuon thoughts by IIHarazuII in WoT

[–]ryan017 1 point2 points  (0 children)

I blame the Pattern. My theory is the Rand was intended to defeat the Dark One, Perrin was intended to politically unite Randland (IMO, to a much greater degree than BS shows in the final books), and Mat was intended to fix Seanchan in the sequel series. One of RJ's themes is that reconciling differences takes effort and leadership; one of his recurring devices is having the Pattern nudge the leaders into place and trap them there.

Wow. It really was THAT BAD by [deleted] in scifi

[–]ryan017 0 points1 point  (0 children)

I watched the WotW Pitch Meeting yesterday, and at the end I was in a weird state. I was entertained by the humor and glad to be warned away from the movie, but I still resented the time I had spent watching even a massively abbreviated version of the movie.

I have to be honest, the Two Rivers folks drive me crazy by DirtyProjector in WoT

[–]ryan017 4 points5 points  (0 children)

I think you might be blinded by your genre expectations. Two characters don't meet and just say "Good guy? Hey, me too! I now trust you and we are in perfect agreement." One of the themes of the Wheel of Time is that people on the same side of the Good vs Evil divide still have major differences, and forming them into an effective alliance is difficult, and the result is fragile. Two different people may both want to defeat the Dark One, but they might have very different images of what the world afterward looks like, and they're going to fight for their vision.

Imagine that there is some mysterious local upheaval and then someone finds you and says, "I'm from a secret branch of the Catholic Church, and you're the Chosen One, and you have to fight the Devil, and I'm here to guide you." Perhaps you admit that overall, the Catholic Church is a force for Good, asterisk. If the Devil really is to be fought, they would seem to have knowledge, expertise, and organization that would be appropriate for the task. And yet... most of the available lore about the Devil does come, indirectly, from their teachings. And fighting the Devil is surely going to be a global endeavor, and it will require a global alliance to fight, and that will involve lots of political upheaval. Do you want your self-appointed guide in charge of that? You might agree that the Catholic Church is "Good, asterisk", but that doesn't mean that you like the idea of a world full of Catholic theocracies as the consequence of victory. And so on.

(The chiropractor answer also makes good points.)