News for hackers. Stuff that matters.
Re:VRML by pclmulqdq on Saturday April 16, 2022 @07:49PM (#31057133)
I'm guessing that since this is a text-based markup language, a lot of people wanted a format that had a lot less friction in a compute-constrained mobile environment, preferably something that can be piped straight to a GPU.

HTML is fine for the browser because it is mostly delivering text and JS, which are both processed in a CPU. Text files are inherently GPU-hostile, and that makes them a weird choice for a graphical markup language.

Re:VRML by rbanffy on Saturday April 16, 2022 @11:29PM (#31058223)
> Text files are inherently GPU-hostile, and that makes them a weird choice for a graphical markup language.

The point of a standard is to be device agnostic. Tying it to present-day technical implementations would limit its adaptability to future tools, as well as creative misuse of the technology.

Re:VRML by pclmulqdq on Sunday April 17, 2022 @12:12AM (#31058423)
Then why tie the format to present-day technical tools like text editors? Why not invest in a format that makes sense and the tools to understand and work with it?

Also, GPUs and their architecture aren't a fad, they have been the same for the last 30 years. If you want your format to be truly device agnostic, text is a bad format because it precludes many types of devices (GPUs and hardware accelerators) from being able to use it.

Re:VRML by rbanffy on Monday April 18, 2022 @05:35AM (#31068832)
Text had been then same for the past 5000 years or so, predating text editors by an enormous margin.
Re:VRML by hulitu on Sunday April 17, 2022 @08:10AM (#31060313)
As far as i know HTML and JS are also text formats which must be interpreted. So i do not see any advantage between parsing a text format or HTML or JS.
Re:VRML by ianai on Saturday April 16, 2022 @11:39PM (#31058265)
How are text files gpu hostile?
Re:VRML by pclmulqdq on Sunday April 17, 2022 @12:07AM (#31058397)
Text files are very hard to efficiently parse in parallel because there are so many variable-length and conditionally present fields. That necessarily leads to branches in your code which GPUs are not designed for.
Re:VRML by network2592 on Sunday April 17, 2022 @12:33AM (#31058523)
It depends on the format of the text, the parser for that format, the language of the parser, and many other factors. Such a broad affirmative statement that text files are inefficient is tenuous at best.
Re:VRML by danmur on Sunday April 17, 2022 @02:33AM (#31058967)
We need some technology that turns text files into binary. To the startupmobile!
Re:VRML by iostream24 on Sunday April 17, 2022 @06:38AM (#31059899)
Hmm sounds like a compiler
Re:VRML by dotancohen on Sunday April 17, 2022 @02:03AM (#31058868)
Then pad fields and require them, even if the value is Null/None/Nil, and the field names too.

  USERNAME:dotancohen\0\0\0\0\0\0
  FOOBAR\0\0:\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0
This might look ugly if you open it in Notepad, but so do XML and Org mode files. However an Emacs/VIM/VsCode plugin could make this seamless for the user.
Re:VRML by coldacid on Sunday April 17, 2022 @01:48PM (#31062686)
They might not look as pleasant as Markdown, but Org mode files still look good in a plain text editor like Notepad.