this post was submitted on 03 Oct 2023
215 points (95.4% liked)

Linux

48332 readers
474 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

if you could pick a standard format for a purpose what would it be and why?

e.g. flac for lossless audio because...

(yes you can add new categories)

summary:

  1. photos .jxl
  2. open domain image data .exr
  3. videos .av1
  4. lossless audio .flac
  5. lossy audio .opus
  6. subtitles srt/ass
  7. fonts .otf
  8. container mkv (doesnt contain .jxl)
  9. plain text utf-8 (many also say markup but disagree on the implementation)
  10. documents .odt
  11. archive files (this one is causing a bloodbath so i picked randomly) .tar.zst
  12. configuration files toml
  13. typesetting typst
  14. interchange format .ora
  15. models .gltf / .glb
  16. daw session files .dawproject
  17. otdr measurement results .xml
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 5 points 1 year ago* (last edited 1 year ago) (2 children)

Don't forget ; is a comment in assembly.

For extra fun, did you know // wasn't standardized until C99? Comments in K&R C are all /* */. Possibly the most tedious commending format ever devised.

[–] [email protected] 4 points 1 year ago (1 children)

; is also used by LISP.

And there's REM in BASIC.

[–] [email protected] 3 points 1 year ago* (last edited 1 year ago) (1 children)

Batch files also use REM. Or ::. Each of which causes syntax errors in completely different scenarios.

M4 says it uses #, but that's an echo, and dnl is for real comments.

CSS still forces K&R style, but on reflection, that's nothing compared to HTML's ⋖!-- --> nonsense. (Edit: or Lemmy's idiotic erasure of HTML-like blocks. If they're not allowed... show them as text, fools.)

[–] [email protected] 3 points 1 year ago (1 children)

Fortran uses ! or C in the appropriate column.

[–] [email protected] 2 points 1 year ago (1 children)

in the appropriate column.

Alright that's just hideous.

Forth uses \, and can do block comments with ( and ), except ) is optional in interpreted mode.

Algol 60 used ¢. ¢ isn't even in ASCII, so god knows how that "your two cents" joke ever happened. How can a language this boring still exemplify how all programmers are dorks?

Visual Basic uses ' because go fuck yourself. QBASIC origins or not, I don't know how this shipped without at least one meeting where somebody got stabbed. Even the Systems Hungarian heretics should have recoiled in horror.

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago) (1 children)

Algol 60 used ¢. ¢ isn’t even in ASCII,

APL uses "⍝", which isn't even in any human language and was introduced specifically so that APL can have comments.

https://www.compart.com/en/unicode/U+235D

[–] [email protected] 1 points 1 year ago

APL is its own special hell, on this front. A programming language you need a custom keyboard to type is like saying your favorite map projection is a globe. D-, did not read assignment.

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago)

/* */ is used in CSS as well, I think.

Also we've got VB (and probably BASIC) out there using ' because why not lol

[EDIT] I stand corrected by another comment REM is what BASIC uses. DOS batch files use that, too. They're old though, maybe we give them a pass "it's okay grampa, let's get you back to the museum" 🤣 (disclaimer: I am also old, don't worry)