HackerTrans
TopNewTrendsCommentsPastAskShowJobs

tonyg

no profile record

Submissions

I-Regexp: An Interoperable Regular Expression Format

datatracker.ietf.org
3 points·by tonyg·vor 14 Tagen·0 comments

I Want You to Understand Chicago

aphyr.com
735 points·by tonyg·vor 8 Monaten·486 comments

Recreating the Canon Cat document interface

lab.alexanderobenauer.com
118 points·by tonyg·vor 9 Monaten·16 comments

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

youtube.com
3 points·by tonyg·vor 10 Monaten·0 comments

comments

tonyg
·vor 14 Tagen·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
·vor 5 Monaten·discuss
*Mitchell Wand
tonyg
·vor 6 Monaten·discuss
I will not. I refuse
tonyg
·vor 10 Monaten·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
·vor 10 Monaten·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
·vor 2 Jahren·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
·vor 4 Jahren·discuss
Per RFC 8259:

      ws = *(
              %x20 /              ; Space
              %x09 /              ; Horizontal tab
              %x0A /              ; Line feed or New line
              %x0D )              ; Carriage return
tonyg
·vor 8 Jahren·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
·vor 8 Jahren·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