HackerTrans
TopNewTrendsCommentsPastAskShowJobs

tonyg

no profile record

Submissions

I-Regexp: An Interoperable Regular Expression Format

datatracker.ietf.org
3 points·by tonyg·14 giorni fa·0 comments

I Want You to Understand Chicago

aphyr.com
735 points·by tonyg·8 mesi fa·486 comments

Recreating the Canon Cat document interface

lab.alexanderobenauer.com
118 points·by tonyg·9 mesi fa·16 comments

The $200M Reason AMQP Became a Standard – A CTO's Inside Story [video]

youtube.com
3 points·by tonyg·10 mesi fa·0 comments

comments

tonyg
·14 giorni fa·discuss
That's one of the reasons RFC 9485, "I-Regexp: An Interoperable Regular Expression Format", is important.

https://datatracker.ietf.org/doc/html/rfc9485
tonyg
·5 mesi fa·discuss
*Mitchell Wand
tonyg
·6 mesi fa·discuss
I will not. I refuse
tonyg
·10 mesi fa·discuss
Is .map specialcased or do user functions accepting callbacks work the same way? Because you could do the Scott-Mogensen thing of #ifTrue:ifFalse: if so, dualizing the control-flow decision making, offering a menu of choices/continuations.
tonyg
·10 mesi fa·discuss
(1998). Java existed, but neither Scala nor Java-with-generics did.

From the conclusion:

"We have presented a programming protocol, Extensible Visitor, that can be used to construct systems with extensible recursive data domains and toolkits. It is a novel combination of the functional and object-oriented programming styles that draws on the strengths of each. The object-oriented style is essential to achieve extensibility along the data dimension, yet tools are organized in a functional fashion, enabling extensibility in the functional dimension. Systems based on the Extensible Visitor can be extended without modification to existing code or recompilation (which is an increasingly important concern)."
tonyg
·2 anni fa·discuss
Strange protocol. Why not pass a path to a file that should be `touch`d and/or written to, I wonder? Would avoid the complexity of sockets.
tonyg
·4 anni fa·discuss
Per RFC 8259:

      ws = *(
              %x20 /              ; Space
              %x09 /              ; Horizontal tab
              %x0A /              ; Line feed or New line
              %x0D )              ; Carriage return
tonyg
·8 anni fa·discuss
The analogous would be the Go-style represent-a-sum-badly-as-a-product,

  struct nonzero_t {
    int is_negative;
    unsigned int one_less_than_the_absolute_value;
  };
which, under interpretation, ranges from -(2^32) to -1 and +1 to +(2^32).
tonyg
·8 anni fa·discuss
It's perfectly possible in languages with ordinary ADTs.

  data Nat = Z | S Nat
  data NonZeroNat = OnePlus Nat
  data NonZeroInt = Negative NonZeroNat | Positive NonZeroNat