Discuss Scratch

starlightsparker
Scratcher
1000+ posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

endyourenite wrote:

too long
That’s the point.
Redstone1080
Scratcher
1000+ posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

I propose .obs3 as a file extension /j
Maybe .obsp (Obscure Project) could work? If that's taken, what about .obc (Obscure)?

Last edited by Redstone1080 (Sept. 29, 2024 11:39:24)

i_eat_coffee
Scratcher
1000+ posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

Redstone1080 wrote:

I propose .obs3 as a file extension /j
Maybe .obsp (Obscure Project) could work? If that's taken, what about .obc (Obscure)?
.obsp reminds me of nbsp; which is basically the space bar in html
i like it
breakfast_for_dinner
Scratcher
1000+ posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

endyourenite wrote:

(#360)
too long
isn't it supposed to be obscure? i don't see .obscureproject being used for anything else, ever

Last edited by breakfast_for_dinner (Sept. 29, 2024 12:54:24)

8to16
Scratcher
1000+ posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

File extension?
.oproj
(Obscure Project)
breakfast_for_dinner
Scratcher
1000+ posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

i_eat_coffee wrote:

(#364)
.obsp reminds me of nbsp; which is basically the space bar in html
ermm actually it's a NON-BREAKING space which is DIFFERENT because it DOESN'T BREAK the WORDS /j
Catzcute4
Scratcher
500+ posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

guys, stop warring over file types. just use .txt
50_scratch_tabs
Scratcher
1000+ posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

Catzcute4 wrote:

(#368)
guys, stop warring over file types. just use .txt
Noooooooooooooooooo noooooooo noooooo

TXT opens in notepad. Do we want notepad?
Answer: no

You could use .fileextensionforaprogramminglanguagecalledobscure (if you want an obscure file extension)

Last edited by 50_scratch_tabs (Sept. 29, 2024 16:26:37)

BigNate469
Scratcher
1000+ posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

As I mentioned (at some point) earlier in this topic, why not just ignore file type (for now), because it seems everyone here can't come to a consensus on it, and just look at MIME type?

I don't think there would be any dispute over application/obscure (although also accept text/plain), because as far as MIME types go, that's about medium sized. In addition, application/* is specifically for program and executable files, and application/octet-stream (binary and unknown).

Also, regardless of people's objections to .obscure being too long for regular use, it should be a valid file extension for application/obscure files. Kind of like how .htm is a valid file extension for a HTML file- it's just slightly shorter.
50_scratch_tabs
Scratcher
1000+ posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

BigNate469 wrote:

(#370)
As I mentioned (at some point) earlier in this topic, why not just ignore file type (for now), because it seems everyone here can't come to a consensus on it, and just look at MIME type?

I don't think there would be any dispute over application/obscure (although also accept text/plain), because as far as MIME types go, that's about medium sized. In addition, application/* is specifically for program and executable files, and application/octet-stream (binary and unknown).

Also, regardless of people's objections to .obscure being too long for regular use, it should be a valid file extension for application/obscure files. Kind of like how .htm is a valid file extension for a HTML file- it's just slightly shorter.
And how would this be stored for a file on your computer? I'm not entirely sure how mimetypes work with local files, and plus, there are many other scenarios where the server determines the mimetype by the file extension.

Could you please explain how mimetypes relate to this? I'm having trouble following.
starlightsparker
Scratcher
1000+ posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

I would suggest either .obscure, .obsp, or .obsc (My personal favorite).
BigNate469
Scratcher
1000+ posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

50_scratch_tabs wrote:

BigNate469 wrote:

(#370)
As I mentioned (at some point) earlier in this topic, why not just ignore file type (for now), because it seems everyone here can't come to a consensus on it, and just look at MIME type?

I don't think there would be any dispute over application/obscure (although also accept text/plain), because as far as MIME types go, that's about medium sized. In addition, application/* is specifically for program and executable files, and application/octet-stream (binary and unknown).

Also, regardless of people's objections to .obscure being too long for regular use, it should be a valid file extension for application/obscure files. Kind of like how .htm is a valid file extension for a HTML file- it's just slightly shorter.
And how would this be stored for a file on your computer? I'm not entirely sure how mimetypes work with local files, and plus, there are many other scenarios where the server determines the mimetype by the file extension.

Could you please explain how mimetypes relate to this? I'm having trouble following.
All files have a MIME type; what it is tells you the true type of the file. MIME type is not inherently linked to file extension.

Computers as a general rule don't care what a MIME type is, only that a file has one, and if it is familiar with it. Most computer would just say something along the lines of “this file is not supported” to any file with applications/obscure, but like most program files, changing the extension to .txt should let you open it. Also, Linux ignores file extension in general and only looks at MIME type to determine file type.
Redstone1080
Scratcher
1000+ posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

BigNate469 wrote:

Also, Linux ignores file extension in general and only looks at MIME type to determine file type.
Common Linux W
Looking only at file extensions can be dangerous, as in the case of LMG (Linus Media Group, owner of Linus Tech Tips and related channels) vs EXE-disguised-as-PDF
davidtheplatform
Scratcher
500+ posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

BigNate469 wrote:

50_scratch_tabs wrote:

BigNate469 wrote:

(#370)
As I mentioned (at some point) earlier in this topic, why not just ignore file type (for now), because it seems everyone here can't come to a consensus on it, and just look at MIME type?

I don't think there would be any dispute over application/obscure (although also accept text/plain), because as far as MIME types go, that's about medium sized. In addition, application/* is specifically for program and executable files, and application/octet-stream (binary and unknown).

Also, regardless of people's objections to .obscure being too long for regular use, it should be a valid file extension for application/obscure files. Kind of like how .htm is a valid file extension for a HTML file- it's just slightly shorter.
And how would this be stored for a file on your computer? I'm not entirely sure how mimetypes work with local files, and plus, there are many other scenarios where the server determines the mimetype by the file extension.

Could you please explain how mimetypes relate to this? I'm having trouble following.
All files have a MIME type; what it is tells you the true type of the file. MIME type is not inherently linked to file extension.

Computers as a general rule don't care what a MIME type is, only that a file has one, and if it is familiar with it. Most computer would just say something along the lines of “this file is not supported” to any file with applications/obscure, but like most program files, changing the extension to .txt should let you open it. Also, Linux ignores file extension in general and only looks at MIME type to determine file type.
MIME types are generally not stored at all in a filesystem, they have to be guessed based on other things. Windows does this purely based on the file extension. Linux looks at other filesystem metadata and the content of the file to determine what type it is, but it still doesn't know the MIME type for sure because it isn't actually stored anywhere.
50_scratch_tabs
Scratcher
1000+ posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

davidtheplatform wrote:

MIME types are generally not stored at all in a filesystem, they have to be guessed based on other things. Windows does this purely based on the file extension. Linux looks at other filesystem metadata and the content of the file to determine what type it is, but it still doesn't know the MIME type for sure because it isn't actually stored anywhere.

So do we have to convince Microsoft to add detection for Obscure scripts? Could you possibly clarify on how mimetypes are guessed?
BigNate469
Scratcher
1000+ posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

50_scratch_tabs wrote:

davidtheplatform wrote:

MIME types are generally not stored at all in a filesystem, they have to be guessed based on other things. Windows does this purely based on the file extension. Linux looks at other filesystem metadata and the content of the file to determine what type it is, but it still doesn't know the MIME type for sure because it isn't actually stored anywhere.

So do we have to convince Microsoft to add detection for Obscure scripts? Could you possibly clarify on how mimetypes are guessed?
There's usually a lookup table somewhere in the OS that's used.

There's also usually a way for native apps to add entries to this.

And none of this actually matters on a browser (Obscure's editor is a webpage) where the server sends the MIME type with the file for the browser to easily identify it.
50_scratch_tabs
Scratcher
1000+ posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

BigNate469 wrote:

(#377)

And none of this actually matters on a browser (Obscure's editor is a webpage) where the server sends the MIME type with the file for the browser to easily identify it.
Right but what about opening local files in the editor?
i_eat_coffee
Scratcher
1000+ posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

what should I add to the editor other than the AI assistant and syntax highlighting?
50_scratch_tabs
Scratcher
1000+ posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

i_eat_coffee wrote:

(#379)
what should I add to the editor other than the AI assistant and syntax highlighting?
Sidepanel with docs
BigNate469
Scratcher
1000+ posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

50_scratch_tabs wrote:

BigNate469 wrote:

(#377)

And none of this actually matters on a browser (Obscure's editor is a webpage) where the server sends the MIME type with the file for the browser to easily identify it.
Right but what about opening local files in the editor?
Again, irrelevant. Any file can be read (on the web) as binary or text- regardless of file extension or MIME type.

Last edited by BigNate469 (Sept. 30, 2024 21:28:02)

Powered by DjangoBB