Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
minidracula
Dec 22, 2007

boo woo boo

CPColin posted:

I just committed a change to my team's Java-only project that says how to do something using the Kotlin REPL and I keep laughing at how obnoxious that is :smug:
It is obnoxious, but I keep thinking for the last n years that if I had to, or wanted to (for whatever reason) write to the JVM these days, Kotlin is the best option.

I say this as someone who once (relatively briefly, and it was more or less self-contained) had to occasionally deal with (though I may have to deal with it again soon) Scala, though I am far from what I would describe as a Scala developer. (I'm talking about Chisel, FWIW.)

Adbot
ADBOT LOVES YOU

eschaton
Mar 7, 2007

Don't you just hate when you wind up in a store with people who are in a socioeconomic class that is pretty obviously about two levels lower than your own?

minidracula posted:

I demand the Unicode Consortium add curly fry emojis (both -- at least -- left and right oriented curly fries) so that I can properly write Common Lisp in TYOOL 2024 like a modern programming language.

This is a molehill I will tie-dye on.

for proper internationalization you also need top and bottom oriented curly fry emoji

mystes
May 31, 2006

Maybe they could just add top and bottom modifiers?

CPColin
Sep 9, 2003

Big ol' smile.
Flash forward to all of Tumblr scolding each other for not using top/bottom modifiers in their posts

Visions of Valerie
Jun 18, 2023

Come this autumn, we'll be miles away...

CPColin posted:

Flash forward to all of Tumblr scolding each other for not using top/bottom modifiers in their posts

listen I think it's important to know whether your post is okay with me instantiating bottom

leper khan
Dec 28, 2010
Honest to god thinks Half Life 2 is a bad game. But at least he likes Monster Hunter.

mystes posted:

Maybe they could just add top and bottom modifiers?

curly_fry + ZWJ + (

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



got part 1 of my fraction thing working hell yeah

% FIXME: quite ugly...

Captain Foo
May 11, 2004

we vibin'
we slidin'
we breathin'
we dyin'

trans and cis fries

matti
Mar 31, 2019

so I'm working on an XML shorthand.

(assume 2 spaces are INDENT)

anyone know any more recent prior art than e.g. SOX from 20 years ago?

matti fucked around with this message at 00:49 on Mar 29, 2024

redleader
Aug 18, 2005

Engage according to operational parameters

matti posted:

so I'm working on an XML shorthand.

this is probably valid and well-formed html5

matti
Mar 31, 2019

i think the tricky part is whitespace if you want to be isomorphic w/ xml

but i think i have figured an unambiguous grammar for that that luckily maps to the formatting you would use anyway

i say this now, i'll probably find some critical fault in my reasoning tomorrow and have to scrap half of the design

minidracula
Dec 22, 2007

boo woo boo

matti posted:

so I'm working on an XML shorthand.

(assume 2 spaces are INDENT)

anyone know any more recent prior art than e.g. SOX from 20 years ago?
I could point you to a bunch of (largely old, and older) things but I'm not sure they meet your needs? However, in a related yet kind of different vein, or a flip on the idea that I think you're currently going for, check out Invisible XML.

(Let me know if you *do* want all those old pointers for various smaller-than-XML XML things...)

Kazinsal
Dec 13, 2011



matti posted:

so I'm working on an XML shorthand.

(assume 2 spaces are INDENT)

anyone know any more recent prior art than e.g. SOX from 20 years ago?

let's go the other way! https://en.wikipedia.org/wiki/IBM_Generalized_Markup_Language

eschaton
Mar 7, 2007

Don't you just hate when you wind up in a store with people who are in a socioeconomic class that is pretty obviously about two levels lower than your own?

matti posted:

so I'm working on an XML shorthand.

(assume 2 spaces are INDENT)

anyone know any more recent prior art than e.g. SOX from 20 years ago?

S-experessions are easy to write and parse and unambiguous

code:
(html
  (head
    (title "Example mark-up"))
  (body
    (h2 "Row 6 (z-)")
    (ul (li "If /z-/ starts an utterance or is after /n̄/:"
          (ul (li "Before /-a -u, -e, -o/:"
                (ul (li "/z-/ is a" (a :href "https://en.wikipedia.org/wiki/Voiced_alveolar_affricate"
                                       "voiced alveolar affricate")
                                    (span :class :ipa "[d͡z]"))))
              (li "Before /-i, -y-/:"
                (ul (li "/z-/ is a" (a :href "https://en.wikipedia.org/wiki/Voiced_alveolo-palatal_affricate"
                                       "voiced alveolo-palatal affricate")
                                    (span :class :ipa "[d͡ʑ]"))))
        (li "If /z-/ does not start an utterance and is not after /n̄/:"
          (ul (li "Before /-a -u, -e, -o/:"
                (ul (li "/z-/ is a" (a :href "https://en.wikipedia.org/wiki/Voiced_alveolar_fricative"
                                       "voiced alveolar affricate")
                                    (span :class :ipa "[z]"))))
              (li "Before /-i, -y-/:"
                (ul (li "/z-/ is a" (a :href "https://en.wikipedia.org/wiki/Voiced_alveolo-palatal_affricate"
                                       "voiced alveolo-palatal affricate")
                                    (span :class :ipa "[ʑ]")))))))

bob dobbs is dead
Oct 8, 2017

I love peeps
Nap Ghost
hiccup is the dealio in a lisp with vector and map literals

https://github.com/weavejester/hiccup

redleader
Aug 18, 2005

Engage according to operational parameters

eschaton posted:

S-experessions are easy to write and parse and unambiguous

code:
(html
  (head
    (title "Example mark-up"))
  (body
    (h2 "Row 6 (z-)")
    (ul (li "If /z-/ starts an utterance or is after /n̄/:"
          (ul (li "Before /-a -u, -e, -o/:"
                (ul (li "/z-/ is a" (a :href "https://en.wikipedia.org/wiki/Voiced_alveolar_affricate"
                                       "voiced alveolar affricate")
                                    (span :class :ipa "[d͡z]"))))
              (li "Before /-i, -y-/:"
                (ul (li "/z-/ is a" (a :href "https://en.wikipedia.org/wiki/Voiced_alveolo-palatal_affricate"
                                       "voiced alveolo-palatal affricate")
                                    (span :class :ipa "[d͡ʑ]"))))
        (li "If /z-/ does not start an utterance and is not after /n̄/:"
          (ul (li "Before /-a -u, -e, -o/:"
                (ul (li "/z-/ is a" (a :href "https://en.wikipedia.org/wiki/Voiced_alveolar_fricative"
                                       "voiced alveolar affricate")
                                    (span :class :ipa "[z]"))))
              (li "Before /-i, -y-/:"
                (ul (li "/z-/ is a" (a :href "https://en.wikipedia.org/wiki/Voiced_alveolo-palatal_affricate"
                                       "voiced alveolo-palatal affricate")
                                    (span :class :ipa "[Ê‘]")))))))

we can replace the unnecessary (s with whitespace,

Shaggar
Apr 26, 2006

matti posted:

so I'm working on an XML shorthand.

(assume 2 spaces are INDENT)

anyone know any more recent prior art than e.g. SOX from 20 years ago?

just use normal xml

VikingofRock
Aug 24, 2008




eschaton posted:

S-experessions are easy to write and parse and unambiguous

code:
(html
  (head
    (title "Example mark-up"))
  (body
    (h2 "Row 6 (z-)")
    (ul (li "If /z-/ starts an utterance or is after /n̄/:"
          (ul (li "Before /-a -u, -e, -o/:"
                (ul (li "/z-/ is a" (a :href "https://en.wikipedia.org/wiki/Voiced_alveolar_affricate"
                                       "voiced alveolar affricate")
                                    (span :class :ipa "[d͡z]"))))
              (li "Before /-i, -y-/:"
                (ul (li "/z-/ is a" (a :href "https://en.wikipedia.org/wiki/Voiced_alveolo-palatal_affricate"
                                       "voiced alveolo-palatal affricate")
                                    (span :class :ipa "[d͡ʑ]"))))
        (li "If /z-/ does not start an utterance and is not after /n̄/:"
          (ul (li "Before /-a -u, -e, -o/:"
                (ul (li "/z-/ is a" (a :href "https://en.wikipedia.org/wiki/Voiced_alveolar_fricative"
                                       "voiced alveolar affricate")
                                    (span :class :ipa "[z]"))))
              (li "Before /-i, -y-/:"
                (ul (li "/z-/ is a" (a :href "https://en.wikipedia.org/wiki/Voiced_alveolo-palatal_affricate"
                                       "voiced alveolo-palatal affricate")
                                    (span :class :ipa "[Ê‘]")))))))

Honestly I like this better than regular html. They should have made it a lisp!

eschaton
Mar 7, 2007

Don't you just hate when you wind up in a store with people who are in a socioeconomic class that is pretty obviously about two levels lower than your own?

VikingofRock posted:

Honestly I like this better than regular html. They should have made it a lisp!

this poster gets it

now imagine if brendan “I hate the gays” eich had just wired up scheme48 in a weekend as he’d originally suggested instead of throwing together livescript from scratch over the course of a couple weeks

Soricidus
Oct 21, 2010
freedom-hating statist shill

eschaton posted:

this poster gets it

now imagine if brendan “I hate the gays” eich had just wired up scheme48 in a weekend as he’d originally suggested instead of throwing together livescript from scratch over the course of a couple weeks

yes, I can imagine a world where vbscript won, but it’s not a very pretty sight

matti
Mar 31, 2019

Shaggar posted:

just use normal xml

if you ignore all the complaints how it's rear end to write or edit without a specialized editor, regular xml is pretty needs suiting, sure.

Sagacity
May 2, 2003
Hopefully my epitaph will be funnier than my custom title.
because you are writing XML by hand all the time, obviously, and editor technology in 2024 should not be expected to be able to include the rocket science of autoclosing a tag

matti
Mar 31, 2019

honestly, i do end up writing marked-up documents all the time.

the second criticism is more fair. but i think i'd rather write a pre-processor than learn a new editor that i'd likely end up hating for not being vi.

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



i would be surprised if vi doesnt have a thousand plugins for editing xml

NihilCredo
Jun 6, 2011

iram omni possibili modo preme:
plus una illa te diffamabit, quam multæ virtutes commendabunt

it would be kind of nice to have a language that's a strict subset of xml, removing purely redundant features like attributes, empty tags, and cdata

then everybody could keep using existing xml parsing tools while gradually updating xml writers

Shaggar
Apr 26, 2006

matti posted:

if you ignore all the complaints how it's rear end to write or edit without a specialized editor, regular xml is pretty needs suiting, sure.

its not rear end to write, you need to use better toosl. creating some hosed up sudo-xml is going to cause you infinitely more wasted time than just using xml

matti
Mar 31, 2019

Shaggar posted:

creating some hosed up sudo-xml is going to cause you infinitely more wasted time than just using xml

lol we'll see

Sagacity
May 2, 2003
Hopefully my epitaph will be funnier than my custom title.

matti posted:

i think i'd rather write a pre-processor than learn a new editor that i'd likely end up hating for not being vi.
the most linux statement itt

Subjunctive
Sep 12, 2006

✨sparkle and shine✨

Shaggar posted:

its not rear end to write, you need to use better toosl. creating some hosed up sudo-xml is going to cause you infinitely more wasted time than just using xml

sudo close my tags

Bloody
Mar 3, 2013

xml is good. sometimes the things that use it are bad tho. like msbuild

Internet Janitor
May 17, 2008

"That isn't the appropriate trash receptacle."
for the things xml is a good fit for, most alternatives are worse

xml has a ton of unnecessarily complex and subtle features that make it hard to work with, though, like custom entities

i think carving out a stricter subset of xml would probably do more to address its issues than replacing nesting with whitespace or angle brackets for parentheses

12 rats tied together
Sep 7, 2006

normally im down with weird markup language poo poo but if you've set out to create a version of xml that is easier for humans to read and write you ought to just use yaml instead

leper khan
Dec 28, 2010
Honest to god thinks Half Life 2 is a bad game. But at least he likes Monster Hunter.

Carthag Tuek posted:

i would be surprised if vi doesnt have a thousand plugins for editing xml

vim has had support for xml for over a decade. noun phrase is `t` for tag. as in, dit (delete inside tag), yat (yank around tag) etc

Sagacity
May 2, 2003
Hopefully my epitaph will be funnier than my custom title.

leper khan posted:

vim has had support for xml for over a decade. noun phrase is `t` for tag. as in, dit (delete inside tag), yat (yank around tag) etc
tbf this does sound like it might take longer to learn than the time it would take to create a completely bespoke XML preprocessing dialect

leper khan
Dec 28, 2010
Honest to god thinks Half Life 2 is a bad game. But at least he likes Monster Hunter.

Sagacity posted:

tbf this does sound like it might take longer to learn than the time it would take to create a completely bespoke XML preprocessing dialect

sure no one should learn vi today who hasnt already been ruined by it

rjmccall
Sep 7, 2007

no worries friend
Fun Shoe
please do not invent yet another markup language because you’re too stubborn to configure your editor to do things that every reasonable editor has done automatically for decades

i literally wrote out yet another markup language and then remembered that that was what yaml stood for. people were already so exhausted of infinite one-off markup languages that they were cracking ironic jokes about them in the names of those languages in 2001

mystes
May 31, 2006

rjmccall posted:

please do not invent yet another markup language
bad news about that

akadajet
Sep 14, 2003

and while we’re at it stop inventing new programming languages, ui frameworks and orms. we have enough

rjmccall
Sep 7, 2007

no worries friend
Fun Shoe
interfaces and implementations can always be improved. “hierarchy of loosely-typed records in a text file” is such a basic and constrained concept that there’s genuinely nothing you can add to it that’s worth inventing a new syntax. learn to use your editor

Adbot
ADBOT LOVES YOU

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



Sagacity posted:

tbf this does sound like it might take longer to learn than the time it would take to create a completely bespoke XML preprocessing dialect

matti already uses vi so imo they should just use the defaults

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply