Fixed point is essentially storing a number of units of a certain size instead of storing a significand and an exponent. However, if the units could be of any size, how big would the fixed-point units be in a typical fixed type of a programming language? C does not have fixed-point, so to use thi...
-10 votes is kind of overdoing it, though. Probably it was some young'un who likes the idea of making their own programming language, and is inexperienced enough to think it needs different syntax to be a different language. No need to scare them off
(Joke explanation: the ^ character is sometimes called a hat, and "hat-trick" is an idiom for scoring three goals in football, or more generally winning three things)
now this is a story all about how my life got flipped turned upside down and how bout you sit down and take a load off while I tell you how I became a member of a site called Code Golf
@Ginger Depends on the situation. Professionally I rarely do because I still don't know how to explain my own pronouns, but like when I'm hanging out at the university's LGBTQ center I almost always do (unless they're wearing a pin or sth)
It astonishes me how many high-schoolers these days are not only competent at programming but also into langdev. Like I've come across 4-5 of them in my travels, which is not a huge number, but it's more than 0
I've only written two userscripts: one for reverting SE's ill-advised changes to the header (which they eventually reverted themselves) and Tragic Wormhole
Mods can move cross site, but not sure for private betas. Then again I think so because some questions was moved from a closed down private beta site (Technical Communications Stack Exchange) to another live site (Writing.SE).
I am not saying the site has to be closed for it to happen.
I want to design a variable-instruction-length instruction set for an instruction set architecture I'm working on. I've heard that there are generalizable, systematic techniques for optimizing average code size of programs that will be written using it. What are they?
I'm designing a language that looks like this:
to kiss (a: a animal):
say "you kiss" a.
to kiss the frog:
say "the frog turns into a princess".
the frog is a animal;
kiss the frog.
This would print "the frog turns into a princess". While both variations of the function are valid, the m...
Looking at Lyxal’s answer to the stack operations, 2dup seems really useful and I don’t currently have it in Trilangle. What could the (single ASCII character) opcode be?
@mousetail TBH this makes a lot of sense. If 2 is the command that takes the top value and makes it 2 values, 4 is the command that takes the top two values and makes them 4 values.
I've read that switching activity and switching frequency (frequency of flipping bits) are significant contributors to power consumption in the circuitry commonly used in flip-flops and hardware registers.
What generalizable, systematic techniques are there to optimize a fixed-instruction-length ...
yeah, in a year all questions will be "How should I best implement quantum topologic dynamic entropy vector Klien manifold isotropic field alignment rotation approximate Euler Sondheim Calculus micro-hyperdimathematics in my new language?" and the site'll be dominated by Intel scientists with names like "/~mhfwalters"
I'm really interested in what the answers to that be. I guess you'd do some kind of clustering so instructions that appear together have similar bit patterns?
@Bbrk24 to be clear- you meant incomprehensible to you or incomprehensible in general? Because if you meant the latter, I should try to fix that (it's my question. I just realized my profile here is stuck on my old SO chat profile)
@mousetail I'm also guessing something along those lines.
I think the bit about "a refresher" on what bit flips mean for power consumption is, well, very charitably overestimating the reader's likely familiarity with that. Probablt it should be explained in the question, not an answer.
Wondering how much power the instruction register actually uses compared to the rest of the chip. Seems to me it would be a very minor amount but it does change completely every instruction so maybe it's more
I'd like to ask a question about strategies for handling I/O in a pure functional language. What's the current recommended way to make such a question on topic? Ask about pros-cons of each strategy? Just ask about possible implementation strategies and expect multiple answers?
@RydwolfPrograms The site id is also shipped with the StackExchange global object baked into almost all StackExchange pages. You can run StackExchange.options.site in the console to get a fair amount of that kind of information. (StackExchange.options.site.id for the ID)
@mousetail The plagiarism flag is currently only enabled on Stack Overflow. That kind of thing would still be a mod flag on every other site. Stack Overflow needed help to manage both the mod flag dashboard and some tooling to reduce our need for staff intervention.
@DLosc Ideally perhaps something like "I am designing a pure functional language and I want to add I/O support. It uses this sort of type system and has that kind of intended use, while it (e.g.) uses operator overloading a lot. What pure IO approach would be suitable? What complications does it impose on the rest of the language?"; a more general one is a bit harder to scope but probably still possible to make reasonable
@MichaelHomer Yeah... my actual question is something like "I tried one time to make a pure functional language with I/O, and it made coding in the language kind of a pain, so I gave up. Is there a better way to do it?" But that seems too opinion-based.
@mousetail Super User, Server Fault, Software Engineering, Math, and Ask Ubuntu also have them, but I agree that it's unlikely that they'd come to this site and certainly not soon.
@Bbrk24 PostId is used by quite a lot of different types. There is not a different set of Ids for questions or answer it's shared regardless of the post. You can see this in that languagedesign.stackexchange.com/q/205 and languagedesign.stackexchange.com/a/205 both direct to the same post which is a question despite one link using /q and the other /a
Questions, answers, wikis, tag wikis, tag wiki excerpts, etc. You can see, for example, pros-cons that the excerpt is "post" 223 and the (empty) wiki is 222
Is it possible to bootstrap an interpreted language? Bootstrapping, broadly, refers to writing a programming language in that same programming language.
This is obviously possible for compiled languages. Once you have a programming language, you can code a compiler for it in that language. Since ...
A lot of answers seem to put a big
Title
at the top, summarising their main point, before embarking on an explanation. I can understand why this might be useful in questions that expect a list of many answers (and especially in answers that contain a list of several separate points), but I would ...
@MichaelHomer It's not about self-closure or closing privileges. Someone with close privileges can also have Community cast a binding close vote for them on their own question.
For duplicate questions the asker gets a nice UI display that allows them to accept the closure as part of the New UI encourages askers to confirm or dispute duplicate votes (that is now 8 years old). The current UI looks more like this but Community closing occurs when the user clicks "Yes" and Submit.
By chance is saying CGCC.SE correct?, I usually put the .SE part to tell everyone this is a Stack Exchange site I am talking about here and not the general topic of code golf and code challenges itself.
When working with engineering or scientific data, it is often important to know the number of significant digits of numbers. However, decimal numbers in languages I've encountered so far don't seem to include this concept. They just specify the maximum number of significant digits and pad every v...
Many object-oriented languages have classes to create objects from, and allow classes to inherit definitions from one another, but others use a "prototype-based" model and maybe don't have classes at all.
What is prototype-based programming, and what does it actually mean by "prototype-based"? Ho...
Close overly broad or bikeshed questions
Looking at questions from the first few days of the private beta, the site is inundated with questions that are either:
asking to write a Wikipedia article or a book chapter (e.g. 1 2 3 …);
trivial questions about cosmetic details;
big-list questions;
or ...
After reading that I am feeling kind of embarrassed inviting that user 2 days ago. (I was before I am just even more embarrassed.)