News for hackers. Stuff that matters.
Re:JDK 15 by dfinninger on Tuesday September 15, 2020 @01:34PM (#24484095)
I had to use this recently for an online course. It was super nice:

  def pushConstant(num: Int): String =
    s"""
       |@$num
       |D=A
       |$accessTopOfStack
       |M=D
       |$incrementStackPointer
       |""".stripMargin
accessTopOfStack and incrementStackPointer are other functions that return text. It made composing Assembly a breeze.
Re:JDK 15 by rad_gruchalski on Tuesday September 15, 2020 @05:29PM (#24486910)
Yup, and it’s super nice for json or yaml strings.