« first day (2 days earlier)      last day (644 days later) » 
00:00 - 22:0022:00 - 00:00

00:03
Or the other way around lol
No, Rust is older
And some of the features aren’t even close — some and any, Swift’s version of impl and dyn, were only introduced last year
(If you’re wondering “how does a trait-based language work without impl and dyn”, the answer is “barely”.)
0
Q: How to implement dynamic scoping?

Molossus SpondeeHow to implement dynamic scoping? Dynamic scoping is useful for forms of dependency injection, error handling and alternatives to thread local storage. Some examples of dynamic scoping include React's useContext and Java's proposed scoped values. The C2 wiki mentions deep binding and shallow bind...

0
Q: What is gradual typing, and what are the implications of using it?

Michael HomerStatically-typed languages specify the types of variables and functions and reject programs they know won't work before they run. Dynamically-typed languages don't include these annotations or checks, and let any program run as far as it can. I see languages that are "gradually typed" now, which ...

00:24
Rust is not exactly inventing these things de novo, it's at the culmination of decades of PL research that Swift also draws on
Pretty idiosyncratically in fairness
No but I was active on the forums at the time. That pair of keywords was very explicitly taken from Rust
0
Q: What are the different options for breaking out of an inner loop?

user16217248In languages such as C, to break/continue out of an inner loop, there is no direct way so one must use goto: while (condition) { continue_outer: while (condition) { // goto break_outer; // goto continue_outer; } } break_outer: What are some more direct was to support ...

so do i post spam or what?
@naffetS STOP!
00:40
Stop! You have violated the law!
I'm actually really close to tag wiki privileges
lol
Idk why that badge exists
0
Q: Should PLDI accommodate some types of philosophical (opinion-based) questions?

RedzGooseI just saw this question. It's actually quite a good question in terms of relating to on-topic questions (being about implementation of error messages) and it has 2 answers, both of which are good-quality. It even goes so far as to point out differences between the question and a related question...

00:53
oh rip, i almost hit repcap
Already? It hasn't even been an hour
They prolly mean yesterday
Thus the rip
I think I repcapped but I was at +215 so I have no clue if wherever that +15 came from more could've followed
Are y'all planning to follow the general (unofficial) policy of using the plural form of most nouns? So queues instead of queue ? I'm getting a mix of them - right now, you have "queue" but you also have "strings", "numbers", "compilers" - etc.
You have "loops" but only "for-loop". :(
0
Q: Are there any disadvangates to requiring sincos() type functions?

user16217248sincos() is just a way to compute sin() and cos() at once, possibly at improved performance compared to separate calls to sin() and cos(). However, many languages, notably C, lack this feature in the standard library. I do not see how this could be hard to implement, as the compiler could just em...

@RydwolfPrograms an accepted answer
Accepts and bounties don't count towards the rep cap.
01:12
@Catija Probably accidental, we can tag-synonym them
01:36
@naffetS Right, but which should be a synonym of which?
0
Q: What are the different ways of handling multiple return values?

naffetSDifferent programming languages handle multiple return values differently, used in functions such as divmod. For example, in Python or Haskell, you would just return a tuple. In Go or Lua, you would return multiple values - not a specific type. What are the different ways of handling multiple ret...

@Bbrk24 arrays is a synonym of array, strings is a synonym of string, etc. if we want to use singular.
Singular > plural
0
Q: Why was "C" designed with a register preservation convention that seems to be far less efficient than its predecessor's?

Ray ButterworthIn the "B" language, the caller is responsible for saving and restoring any registers it cares about before calling a function. In the "C" language, the called function is responsible for saving and restoring any registers it is going to use. Consider this code: for (index=0; index<1000; ++index)...

@user flip that comparison around
01:42
No.
Unless you mean plural < singular
How was my question on meta closed? I won’t bother reopening it because I got my answer, but it’s not a duplicate of the thing I got linked to
Link?
CMM: There's a list-style question that I have two answers to. Should I put both in a single answer or make a new one?
The question in question is this question
0
Q: Why is the red circle appearing in an empty review queue even with Approve Wiki Edits privilege?

user16217248I am not sure why the red circle is appearing. The queue is ostensibly cleared but I have Approve Tag Wiki Edits. At first I thought the ghost items triggering the circle were tag wiki edits I could not yet approve, but I just approved 3 now and now the queue is showing as cleared. I also have no...

@user no plural > singular
@user no, we had a meta discussion about this
01:54
Oh
Anyone else get the feeling that this is really a numeric analysis question, not a programming languages question? languagedesign.stackexchange.com/questions/611/…
Generally, plural is preferred.
@Pseudonym Part of the question is about how many languages do not implement that.
02:13
@user What is the pro-con for that?
02:24
@RydwolfPrograms What does the inbox-interrupt userscript do? Its @description is not terribly helpful
02:51
Also I just used up all my reviews for today going through the tag queue
0
Q: What should be the quality standards for list-style questions?

user16217248Many questions ask for 'What are some examples of ...?' (Including the pros-cons questions). But I would expect 'What are some examples of <thing>' with no elaboration to be closed as lacking details but others are well received. What should be the quality standards and guidelines for asking such...

0
Q: Who is handling flags?

IsaiahWho handles flags during the private beta? I know the site's moderators typically handles them, but we don't (to my knowledge) have any yet.

I have a specific and somewhat long question, but I would like someone to read over it before I post it. Is there anywhere I could leave it for that -- or anyone here willing to proofread it?
03:07
0
Q: Why most langauges prefered complex enum instead of simple enum?

moliktoI don't know the standard words for these, but: complex enum is like enum { E1(t1: T1, t2: T2, ...), E2(...), ... } simple enum is like enum { E1(T1), E2(T2), ... } The difference is the simple one always contain a tag and a type, the complex one contains a tag and multiple name-type pairs. In ...

03:20
0
Q: Why do newer languages allow implicit variable declarations?

Ray ButterworthFor me, one of the best things to happen to FORTRAN was the introduction of the LOGICAL*1 type. I quickly discovered that putting IMPLICIT LOGICAL*1 (A-Z) at the top of every program was a life saver. Knowing about this one line saved me hours of work debugging new code, where many typos resulted...

03:41
0
Q: If I don't understand a question, do I vote to close it?

ice1000Sorry for the moronic title, but I am asking about this question: Why most langauges prefered complex enum instead of simple enum? It is currently voted to close by 3 people, for unknown reasons. However, I think they didn't even read the question. The question is well-behaved: It gives examples...

03:54
@Bbrk24 Nothing any more, as far as I'm aware
It originally made it so that clicking the inbox before the page's JS had loaded wouldn't send you to a different page (its noscript behavior was a link)
But I think that's been removed
Ooh I've got tag wiki approval privs now!
Just cleared the queue, there were 12 of them lol
I'm not going to be online until like 5 PM (my timezone) tomorrow, AP exam
I'll be using the morning to study and don't want to be distracted
So repcapping tomorrow's gonna involve some Dream speedrun music
But anyway, 'night everyone! o/
Good night, RydwolfPrograms!
@NewPosts I am trying to big up the CM team. Catija Take note
@RydwolfPrograms There are some on the Meta.
@RydwolfPrograms So that's how many I couldn't see, huh
I just approved them all, some were a little brief or imperfect, but they all looked better than nothing
04:06
I got through 20 of them and then I hit my daily cap
There was one or two that I rejected but yeah most of them were fine
@RydwolfPrograms One of them was something like " is about functions" which really isn't
@Bbrk24 I'm debating whether to just post it and hope it isn't closed overnight
At this point I'll just do it
0
Q: How do I implement AOT compilation of my 2-D esolang?

Bbrk24Background Trilangle is an interpreted 2-D esolang that I made in February and March of this year. At some point, I had the idea to implement an AOT compiler for the language, and what resulted was a "disassembler" feature to convert it to an assembly-like syntax. For example, when passing the c...

04:35
I think I need to learn English
I still want to help this site
Perhaps I was offended by the fact that others have already gained a lot of reputation. But that shouldn't worry me.
05:09
0
Q: What are some syntax options for generators?

lyxalSome programming languages allow you to create generators - lazily evaluated iterable objects that use a function to determine what the next item should be. For example, python allows: def f(): x = 0 yield x x += 1 To generate an infinite list of numbers. What other syntax options ex...

0
Q: Should generators be their own type?

lyxalFor languages that allow generators (iterables where elements are determined by a function), what are the pros and cons of having a unique type for generators? For example, languages like python have a special type for generators, meaning there's no immediate shared superclass for lists and gener...

Spot the person who's been screwed over by python's generator type in the past :p
05:48
Legitimate question: Any good libraries for implementing a JIT compiler in Rust?
06:10
0
Q: What are the pros and cons of mechanistically prefixing every question with "What are the pros and cons of"?

Michael HomerI ask motivated in particular by this question, but also by the general pattern seen so far. That question was originally titled Should generators be their own type?, but was now renamed to What are the pros and cons of having a unique type for generators?, in line with a number of others on the ...

This says:
> If your meta site does not have a post to nominate Moderators, start one now! Pro Tem appointments will begin about two weeks after the site is created. The more guidance we receive, the more informed our choice.
Should we be making such a post?
I don't think that is current any more
@mousetail cranelift?
I'll check it out thanks
06:36
0
Q: How to beat Wadler's law?

Andrej BauerI was looking forward to the PLDI StackExchange site, but am dismayed to seee that it has fallen victim to Wadler's law: In any language design, the total time spent discussing a feature in this list is proportional to two raised to the power of its position. 0. Semantics ...

Hint: You can get your Meta rep to update instantly just by clicking the Ask Question button. IDK why.
07:20
should voting down/vote to close be considered "hostile"?
I I was browsing Meta until I saw a comment that says that
I always follow what SO did: You vote for the content, not the person.
@MichaelHomer yeah it kinda irritated me when someone said that
08:07
@justANewbstandswithUkraine No, but don't downvote questions just because they need to be closed
Only downvote for exceptionally bad quality, not just because they are off topic
08:36
0
Q: What design strategies matter for new languages seeking long-term, widespread adoption when approaching a problem-domain with existing languages?

userI recognize that not everyone designing a new language is doing it to compete with other languages in the same problem/application-domain and achieve (and retain over time) similar adoption levels and. But for those who are, what overarching, high-level design strategies matter? Some additional q...

Uh oh
There's two users now
And they both use identicons
now how can I tell which user is which? :p
08:58
oh no
 
2 hours later…
11:14
muahahaha I can now approve tag wiki edits
11:59
yesterday, by Bbrk24
Also we have two users now and I am Going to get them confused
the one that makes you gamble all your money is the code golf user
The real answer: code golf user is just user, the other user has a bunch of numbers after the word "user"
(Please don't make me regret saying that)
@Adám no. We run elections now.
I'll make the post, because I like doing that
(unless Adám wants to)
this is for mods
12:10
I know
I would assume the SE team will handle that :p
and once private beta is done
> If your meta site does not have a post to nominate Moderators, start one now!
sounds like we're supposed to do it
that was before elections
???
7 mins ago, by Catija
@Adám no. We run elections now.
12:11
ohhhhhh
I misunderstood that lul
disregard the above
12:27
I've succesfully built a JIT compiler for a very very small subset of ><>
It just supports +, $, and @
I’ve always wanted to make a jit compiler
JIT compilers are black magic as far as I'm concerned
The cranelift documentation is terrible but using the examples it finally works
@Ginger my rep gain amount has dropped significantly, I didn’t hit ceiling last utc day
I have a conundrum. I want to make another programming language but I already have two stalled programming language projects, and I'm not sure I have actually figured out how this next one will work
12:31
A tale as old as time
@mousetail ...what is that font lol
why?
Mostly to annoy people
I enjoy the looks in my coworkers faces when they look at my screen
ah, a little trolling
eminently understandable
12:34
Code in wingdings, tell your colleagues it's APL
9
@Adám
I used to use it for the code itself too but that mostly just trolled myself. Just the interface is acually nice though
@kaya3 when you actually know APL 😏
@Seggan I enjoy not having headaches
I rather like APL
12:40
I'm not saying I don't like it
not as a GPL, but for doing data stuff and calculations
I'm saying using it actually gives me headaches
@lyxal i know
like literally ouchy in the head
and that's after being carried by aplcart
Anyone know how to dynamically call a function (from a *const u8 pointer) that requires N arguments from a array of N arguments in rust? Also ideally to get a array of m return values back
12:43
Why are you using pointers?
Cranelift returns a function pointer for the function I just compiled
why
You can't really do JIT safely
They can at least return an Fn* object
Not really since the signature is determined at runtime
Even the calling convention can be changed at runtime
12:45
Ah yes forgot
That's why I have this line: let function = unsafe { std::mem::transmute::<_, extern "C" fn() -> [f64; 1]>(program) };
Except I'd like to dynamically determine the length of the return and also pass arguments
You may have to write some part of it in C or assembly (note: I do not know Rust)
It's quite possible
I can always just have a huge if else with all 100 possible combinations of functions under 10 arguments
Swift doesn’t support calling variadic C functions, only ones that take a va_list pointer
The function is not actually variadic, it takes a fixed number of arguments decided at runtime
12:54
So depending on what you’re doing you could make the function type @convention(c) (CVaListPointer) -> Int and then unsafeBitCast the return value to whatever type it actually is
It's actually returning multiple values as well. Basically I dynamically decide how many values from the stack it needs, pass those as parameters to the function, then the function returns the new stack state and I push that back onto the stack
nvm wrong site
Right, I used Int because on Swift that’s word-sized so it’ll consume the whole of rax (or your platform’s equivalent). If you return multiple values your answer will likely depend on your calling convention
@mousetail Does Rust support the older C unspecified argument function types like int foo()?
I'm using SystemV calling convention
@Bbrk24 I don't know, I'll do some research
 
1 hour later…
14:11
I can now do more complex expressions with : and ~
0
Q: What are the pros and cons of fixed-point arithmetics vs floating-point arithmetics?

justANewbieFrom Wikipedia: In computing, fixed-point is a method of representing fractional (non-integer) numbers by storing a fixed number of digits of their fractional part. ... More generally, the term may refer to representing fractional values as integer multiples of some fixed small unit, e.g. a frac...

14:35
@lyxal and vyxal not?
In general, how to create a programming language?
Very broad question, probably first define what you want to accomplish, then define a syntax, write a lexer, parse AST, then either interpret or compile that.
@NewPosts Is this even on topic? Don't want to VTC after answering but it's not really about programing language design
More like general software engineering
14:44
IMO fixed point and floating point can be related to help programmers choose between the two when making a new lang?
Most languages support both though
maybe for choosing the default one
based on your needs
Maybe edit your question to make it more specific about choosing the default for a language?
Right now it would fit better on softareengineering.se
@Adám Mix of the two, personally
I only upvote things I think are somewhat good, but I'm making a conscious effort to upvote things, so I'm upvoting things a lot more than I otherwise would
More votes means more rep going around, which means better high-rep-user stats and more ability to moderate the site effectively
Plus upvotes encourage question asking and answering, both of which are very important
14:50
Are there any languages where the default number type is decimal?
@RydwolfPrograms same
CMQ: i was in the process of writing an question, but then i realized the answer in the process, should i still post it?
If you think it's generic you can self-answer it
@Seggan write it and also answer it?
@mousetail There're old languages that use BCD right
CMM: Are terminology questions on-topic?
I'm considering asking one about the meaning behind the terms "product type" and "sum type"
i think basic was one?
14:56
Also what languges use fixed point? I'm pretty sure decimal is more common than fixed point
Though I guess fixedpoint decimal is also possible
0
Q: What is implied by the names "sum type" and "product type"?

Rydwolf ProgramsAlgebraic data types include two concepts with names that feel like they imply something clever, but that I can't for the life of me understand: Sum type: This refers to tagged unions, like Rust's enums Product type: This refers to collection types like tuples and structs Why are these referred...

@RydwolfPrograms maybe you should have waited until you got an answer in the affirmative :P
if you're genuinely wondering that then you can just ask in chat
I think the downvotes are more because this is only tangentially design related
And also because of the one-vote-invites-more-votes effect
it's a pretty simple answer and yeah i literally just downvoted because it's not a question about design at all
What is the "pretty simple answer"?
I can't find it anywhere
15:06
@RydwolfPrograms i say its more for CS.SE
maybe wikipedia got some answer: https://en.wikipedia.org/wiki/Tagged_union
https://en.wikipedia.org/wiki/Product_type
sum types are values from type a or values from type b, product types are values from type a and values from type b
if both types have a finite number of members, then the sum type has the sum of those numbers, and the product type has the product
and yeah if you really wanted to ask it on a site it would probably belong more on cs or maybe even history of mathematics
@mousetail Tag excerpts need to describe how the tag is used, not just define a term
I was trying to make a joke programming language that extended sum/product types with type signature derivatives and integrals using the sum rule and product rule and it just...wasn't interesting
Because they're not really all that sum-like or product-like
15:42
@RydwolfPrograms Wasn't there a meta concensusa while ago that "for questions about" should be removed from all tag wikis?
> Avoid generically defining the concept behind a tag, unless it is highly specialized.
yesterday, by Catija
When y'all are writing tag wiki excerpts, please make sure you're including usage explanations instead of just defining the tag! It's a lot easier to review if I just have to approve them :P Most of y'all are doing great, just thought I'd call it out here.
16:12
somebody be doing retagging again
3 reviews in a row
ooh i found a loophole in chat
16:33
0
Q: How can I reconcile “all functions are variables” with a trait type system?

SegganIn my WIP language, all functions are really just variables with a callable type. That is, a function call foo(bar) is parsed into the following AST: CallOperation / \ expr args / \ VariableAccess VariableAccess | |...

0
Q: Scope for questions about terminology

Ben KovitzRight now, the question "What is implied by the names 'sum type' and 'product type'?" is closed for being off-topic, but the help center doesn't specify what is on-topic for PLDI. The question is not directly about how to design or implement a programming language, but it's about terminology comm...

0
Q: What are the syntax options for implementing decorators?

The ThonnuIn Python, this code is an example of decorators: @decorator_func def main_func(): # Do stuff When main_func is called, it will call decorator_func with main_func as the only argument. It will then call the returned function* instead of main_func with the arguments provided. *A decorator doe...

0
Q: Should we ban AI-generated answers?

cocomacNote: I haven't seen any instances of this, nor do I think it is currently an issue, but I do feel it is worth considering, especially if this site goes public I'm proposing that answers created using AI, including ChatGPT, are not allowed. AI-answers have a number of issues They often look righ...

0
Q: What are common options for comment syntax?

GingerAlmost all languages have comments, but the syntax for comments can vary wildly between them. What are commonly used options for comment syntax, and what are their advantages and disadvantages?

17:13
0
Q: What are the benefits of stackful vs. stackless coroutines?

Silvio MayoloMany languages that use async nowadays are implemented via stackless coroutines. That is, in a language like Python or Javascript, when you await an expression, that await returns to the caller, returning the minimal amount of information needed to resume the function later. The caller can, in tu...

0
Q: Why does Rust have an infinite loop construct?

GingerThe Rust programming language has an infinite loop construct, which looks like this: loop { <some code> } It's the only language I can think of that has dedicated syntax for this; in most other languages some variation of while true is used instead. Why does Rust have it?

0
Q: Enforcing doc comments in the compiler, good idea or no?

mousetailMost languages have a way of writing doc comments. Doc comments above a function, class, or struct provide a strucutred way to describe every part of the function, like this: /** Compute the sum of two numbers * @param A the first operand * @param B the second operand * @returns the sum of ...

0
Q: What are some syntax options for iterating over arrays?

cocomacWhat are some different syntax choices for loops that iterate over arrays? Of course, there is the common for loop: for (int i = 0; i < 8; ++i) { myArr[i] } But, this isn't the only option. What are some others?

I agree, most questions on this site should be downvoted and closed. The site has a very serious problem with Wadler's law. — Andrej Bauer 11 hours ago
Yea we have way too many questions like this: languagedesign.stackexchange.com/q/700/8
We don't need to just list the syntax of every language
17:57
nice, I broke 800
also yeaaaaaaah ^^^^
I am quite guilty of that myself
I should probably think of some more complex questions lol
That would be great
There is nothing really inherently wrong with the syntax questions it's just there is no real limit to how many you can ask and they require 0 effort to write so we'll end up floded with them
I want to ask about REPLs but I'm not sure how to make the question nontrivial
asking about prompts would be easy... and also trivial
Maybe whether you should ouptut None if the result is None? That behavior is inconsistent between different REPLs
Or write some broken repl code and ask for help debugging it
ooh, good one
@mousetail what're the other options? do some repls output as an empty string?
My toy language represented the repl by taking stdin as an AsyncIterable<string>, piping that to that to the lecture to get an AsyncIterable<Token[]>, and then calling .forEach(tokens => print(evaluateAst(parseToAst(tokens))))
18:03
Python doesn't output anything if a function returns None
It just prints >>> in the next line
huh, so it doesn't
But Node prints undefined even for statements that are not even expressions
@mousetail Similar in Swift, but for empty tuple instead of none
Shout out to our top voters
0
Q: Should a REPL show null types as null?

GingerI'm working on a REPL for a language that has a null type, and I'm not sure how to represent it in the output. The behavior of existing REPLs seems to be either to represent it by its name (null) or not to show it at all. For example, Python doesn't show any output when a None-returning expressio...

18:06
there, that's a good question
(I hope :p)
@mousetail I just did those 2 extra votes because I can :P
That's the spirit
If ginger does 2 extra votes too we'll get a lot more votes which is what we need
argh but ginger did 3
haha lul
0
Q: Are questions about developing a language specification on-topic?

user16217248I am considering asking a question along the lines of 'How could I best describe a void or never type in a formal language specification?' However I thought that may be more of an English question than a technical question. Should questions about writing a language specification (a document that ...

18:24
Almost to 500 users!
0
Q: Community doesn't have a profile picture

GingerThe Community user doesn't currently seem to have a profile picture. Is this intentional?

@Ginger wait many less committed, how is that possible
wdym?
Also only 50% of those who commited actually joined
wow, we've got a NaN% success rate for autoflagging
18:34
It's probably dividing by 0
@mousetail Is that a thing? I thought you can't divide by the famous 0.
You can for floats
OK, thanks for the information.
1.0/0.0 = Infinity, 0.0/0.0 = NaN
Also 1.0/-0.0 = - Infinity
@HenryWHHackv3.0 Not in math, but programmers can do whatever :)
APL lets you divide 0 by 0
18:40
I use x/max(y,1) soo often I would like a builtin for it, usually for taking averges
@mousetail @RydwolfPrograms I don't think this should have been approved. Tag edits which are nothing more than [tag] is for questions about [tag] with no more elaboration are not really useful, as per the rejection reason.
the fact that I can't come up with a description that isn't that would seem to mean that that is not a very good tag
0
Q: What are the pros and cons of using unconditional jump?

Nimesh NeemaUsing unconditional jump instruction such as goto in C programming language is generally considered as a bad programming practise. It can be argued that the same can be quite useful in certain scenario. However, there can be possible scenarios where using it can come in handy. What are the potent...

so close to repcap
@Ginger I would have approved something like "Questions about which tags should be used on questions" or something. Something other than "Questions about [tag]."
18:58
@Ginger Nah, it's a valid meta tag. It's useful for questions about tag synonyms, burninating tags, which tags should be used on some specific question, etc.
0
Q: What are the advantages of providing a until loop construct?

Nimesh NeemaAn until loop construct can almost always be achieved with a while loop. What's a possible reasoning behind having it available when a language also provides a while loop?

 
1 hour later…
20:11
@user in JS, 1/0 is Infinity, and 0/0 is NaN
@naffetS Not just JS, that's what the IEEE standard specifies
20:35
0
Q: Let's please do better at objectivity when doing Q&A about design choices

userI've been seeing questions and their answers like Should a REPL show null values as null? Enforcing doc comments in the compiler, good idea or no? - There is an objective criteria hiding in a complaint, and that complaint itself is really hiding a goal-oriented question that I think is worth its...

20:54
@mousetail I have reason to believe your approach to I/O ordering is impossible. Consider this (intentionally inefficient) code: It picks two random numbers. If at least one of them is non-negative, it always prints the smaller number first. If they're both negative, it prints them in an implementation-defined order.
    ; Create two threads that run the same code in parallel.
    TSP next
next:
    ; Pick a random number, make a copy, and decrement that copy until it's less than zero.
    RND
    DUP
loop:
    BNG end
    DEC
    JMP loop
end:
    ; Print the original number, then stop this thread.
    POP
    PTI
    TKL
What does DEC do?
decrement
And BNG?
branch if negative
BNG-DEC-JMP is just used here to spin for an amount of time that varies depending on the original number
Ok yea, so if you look at my algorithm each iteration would increase the value of the base IO count. If it takes longer the base iteration could will be higher so it will output later
20:58
Maybe I misunerstood part of it, let me look again
So the IO index will be 3*the number when you reach the end since the loop has 3 instructions
The important part is at the end of every block you increment the base IO index
Also, everything would have to track this from the very start, because there might be multiple TSPs and so you can have arbitrarily many threads all with different ages
Yea it's just a global variable per thread
When forking just clone the base index of the thread to both copies
Anyways, I now have the time to attempt to implement your algorithm for traversing the code, so I'll let you know if I run into anything else
I'm gonna try the same thing for ><> which is going to be a lot more complex because it can self-modify
If my algorithm turns out not to work at all I'll run into it too
21:03
I open up the project and one of the first things I see is a #pragma warning(disable) because constant-folding complains about unreachable code
@mousetail Well one thing that makes this tricky is that the version of gcc I have is too old to support std::optional
It uses C++14, and that was introduced in C++17
What is preventing you from updating GCC?
apt-get thinks I have the newest one
and I really don't feel like building gcc from source
You probably have outdated repos then
No, just Ubuntu 18.04
...wait, why would that not support C++17?
Whatever, I'll figure something out (probably just a pointer instead)
The option part is not a super important part of the algorithm, just as long as you somehow mark what is done and what is not
You could even use some external data structure to do it maybe
21:10
I've been using a binary tree of... references into a std::unordered_map. Fun.
I don't think Rust would even let me do it the way I originally did
First problem: My enum equivalent to the Instruction type you used corresponds to the source character rather than the operation performed, so direction-sensitive instructions will be lacking context. I'll need to make a second enum.
I can't even factor out the direction-insensitive ones because using enum wasn't introduced until C++20
(well, I guess I could use a macro)
@user16217248 That's true. I think I voted to approve that since I figured something was better than nothing, but I probably didn't look at it as hard as I should've
21:26
I know I rejected at least one tag for that reason
@user It's not a meta-tag?
Well I mean I guess a tag about tags is inherently meta :p
But like, it's a perfectly valid non-meta-tag. It's for questions about tags, it has a straightforward relation to the content of the question
Ugh, Rust-style enums would really help right now!
I can't write Branch(SourceLocation, SourceLocation) and Push(int) and Nop in the same type very well
Guess I'm wrapping an enum and a union in a class
0
Q: Raising the bar: this should be a community for people who work on languages in a serious capacity

chrisaycockI was a pro tem moderator for the Quantitative Finance SE during the beta. We had to make a decision upfront that the site would be exclusively for people who work in quantitative finance. As moderator, I had to eject non-quants on a daily basis because the site would quickly have become overrun ...

21:43
m_op = static_cast<operation>(static_cast<char>(op));. This is a sign of good code.
@NewPosts wtf
is this guy seriously proposing locking us out of our own site because we're "not professional enough"?
0
Q: What are the benefits of providing syntax to bind an attribute to a function?

Henry EckerSome languages support binding a function call to an attribute. Python, for example, supports this via property class Foo: _values = [1, 2, 3] @property def last_value(self): return self._values[-1] @last_value.setter def last_value(self, new_value): self._va...

@Ginger yep
wow
21:59
@RydwolfPrograms Wait why would questions on main need then?
It's a tag on meta
Wait did you mean a-tag-on-meta when you said meta-tag
00:00 - 22:0022:00 - 00:00

« first day (2 days earlier)      last day (644 days later) »