« first day (2790 days earlier)      last day (2036 days later) » 

12:36 AM
CMC: Output all the ascii characters (32-126) except those whose values equal at least one of your source characters (in unicode) modulo 95
 
Anyone know what companies make good computer monitors
I've never actually bought one before, I've always just used my dad's old ones
 
Anonymous
@Pavel Surprisingly, Dell
 
Huh. I never think about Dell. They're... really boring, I guess.
@Mego ._. of nearly 400 monitors they have for sale, 49 support display port.
Also I never realized until today how expensive monitors are
 
1:08 AM
@Pavel LG
Cheap and great color accuracy/brightness
 
Anonymous
1:23 AM
LGs are also good. We use both LGs and Dells at work
 
Golfed a different approach while holding a sleepy baby; will add an explanation later. — Giuseppe 57 mins ago
golf compels us all
 
any thoughts on my KoTH in the sandbox?
 
1:42 AM
brand engagement has plummeted to an all time low
 
I made a poor life choice today. I've decided to create a new 2D language and write an interpreter.
 
@Draco18s Any gimmick to distinguish it? I usually like learning 2D languages if they're not too oblique
 
@JoKing Multiple simultaneous instruction pointers.
 
Off the top of my mind, Cardinal, Beeswax and Fission all have multiple pointers
 
The syntax is (mostly) based on ><> though the full instructionset of ><> isn't (yet?) supported and a few instructions use different characters.
I am unfamiliar with all of Cardinal, Beeswax and Fission
@JoKing Fission and Beeswax are decent comparisons to what I'm doing. Square grid instead of Orthogonal, my pointers have "energy" similar to Fission, although in my case, instruction pointers headed in the same direction that end up in the same cell will merge (the newest one adds its energy to the older one, then is destroyed).
The reason I started doing this is because I wanted to create a runic enchantment system for a game project and the 2D language....space was essentially the right idea: Mana enters from given points on given triggers (atm only on-program-start implemented) and flows from rune to rune until it runs out of energy. If an instruction requires more energy than an instruction pointer has, then the IP doesn't execute the instruction and doesn't move (essentially a NOP).
So I've also got commands that call out to Unity code; e.g. Q invokes Physics.OverlapSphere()
 
2:04 AM
For running Python on embedded systems, for CPython— can I take like the pyc files and execute those somehow? I don't want to embed all the python std lib files as not enough ram
 
picture depicts: Overlap Sphere (dist 4), get the position of the first object, push self onto stack, get position of first object, calculate distance between two vectors, print output, terminate.
 
@Downgoat not sure what you mean precisely
 
@quartata i.e. precompile python to CPython bytecode or w/e it does internally
 
right that's what pyc files are
if you run compileall with -b I believe it'll place the pyc files at the same directory level as the py files
you can then safely eliminate the py files
it's technically a carryover from Python 2 but
 
compileall? is that like a subcommand
 
2:15 AM
python -m compileall
Without -b it goes into __pycache__ like normal
 
@quartata So if I do import re, do I need re module in PYTHONPATH or does the pyc have everything?
 
If the pyc is in the same place as where the source py would be expected, then it will work without it
The reason why it's an important distinction is because in Python 3.x pyc files go into __pycache__/ rather than cluttering up the top-level (which was the behavior in Python 2). And if you don't have the py files it's not going to load from __pycache__
 
@quartata so If I were to copy over python executable and just this pyc file— everything would work ok?
 
I don't think Python would work without at least imp?
I don't see the point in using Python without its standard library though
 
ok well rust it is then
 
2:24 AM
Lol what
 
I want to use a language that is not C++ but can interface with C api easily
 
Lua
 
ew
im not an animal
 
It's what it was made for...
 
if I'm using Lua I might as well just use C/C++
OO pls
 
2:26 AM
Lua has OO?
Well anyways
I could try to find out which modules it needs
 
@quartata Lua OO is like ES5 OO I thought
 
Lua has OO in the same way that ES5 has OO
Nina'd
*Ninja'd
 
encodings, io and importlib
Minimum
Probably more
 
I would use VSL but it doesn't have generic yet :(
 
@Draco18s Neat. Let me know when you think it's in a releasable state and I'll be sure to give it a try
 
2:27 AM
These are fundamental components, they're just not in the C part of the interpreter
 
I have 64KB of RAM I don't think that's enough
python exe is 16KB on its own
not including dylibs
 
what are you targeting??? I thought this was iOS
 
@quartata no embedded arm microprocess
 
You actually have a libc you can use?
 
for what?
 
2:30 AM
do you even have a kernel?
you were doomed to C from the beginning
 
@quartata yes— it is weird but if it has int main() i can get it to run
 
"im not an animal" -downgoat
 
@JoKing It's pretty solid atm. Going to get a few more operators in and push it to Github probably tonight. (just added vector dot and cross products, for example)
 
@quartata opls any compiled language that's not Swift should work
oh wait
 
@Draco18s Whenever you're bored, please convert to 3D ;p
 
2:34 AM
has anyone used crystal here
 
@Downgoat No. You're not going to be able to fit the Rust runtime
 
@Quintec You're the second person to make that kind of comment XD
 
@quartata O__o is it really that big for even simple program
smh so much for 'C' replacement
 
I feel like I need more context
 
Anonymous
@Downgoat You could use the freeze utility in Python
 
2:36 AM
Are you working freestanding
 
@Mego he's working on an embedded system with 64 KB of RAM apparently
 
@Draco18s Someday, you may hear the tale of how I tried to make a 4D language when I was bored.
 
@quartata no
 
Anonymous
Oh yeah Python isn't an option
 
2:37 AM
Frankly I would say it's time for assembly but
 
@quartata C++ works fine so far but it's ugly
 
@Quintec I've attempted to navigate 4+ D mazes before. I twas a few years ago and I think the highest dimensionality was 6. 3x3x3x3x3x3. Was a right pain to wrap your brain around.
 
@Downgoat what libc are you using
 
That it is, It was a headache to try to visualize the instruction pointer traveling through time... ;p
 
Especially backwards!
 
2:39 AM
To grant some perspective: your system has as much RAM as the Quest for Tetris computer
Start thinking in those terms
 
@quartata it doesn't have libc but contains most POSIX functions
 
You probably can do Rust freestanding but I can't make any ABI promises
 
@Downgoat C#
 
The reason why I feel like I'm missing something is because you're working with something at the microcontroller level. This is assembly land
 
Anonymous
@quartata Great idea - use QFTASM!
 
2:52 AM
Y'all have that QFTASM GCC backend yet
 
Anonymous
Funny
 
I could have sworn I remembered someone said they were working on that
 
Anonymous
That would be big Q
 
@Pavel I haven't finished it because there are other things that need to be worked on in parallel
Not all of which are under my control
 
3:11 AM
@Pavel C# is very very heavy
 
@Downgoat I read "Can interface with C easily" and by the time I realized the other requirements it was too late to edit
 
@quartata :| you don’t need ASM to program microcontrol
 
3:48 AM
@JoKing Aand pushed to github. github.com/Draco18s/RunicEnchantments Created in Unity 2018.2.0f2, but I'm pretty sure any version 5.0 and later would open it, I'm not using any crazy newfangled features (other than the UI stuff added in 4.6). Hit run, put code in the box, click the button. There's probably still one or two operations that might attempt to parse a Vector3 as a double (structs are ValueTypes that aren't Integers; who knew?) Enjoy!
 
@Draco18s Your solution file has a problem:
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RunicEnchantments", "Assembly-CSharp.csproj", "{8BE25938-E7BC-CE77-0A05-88C0465E0903}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RunicEnchantments", "Assembly-CSharp-Editor.csproj", "{4D2DF87A-3767-2565-957E-1E54F9EE9204}"
EndProject
Two projects can't have the same name
 
that from the sln files?
 
Yes
Also you have a hardcoded path to unity
So it won't build on anyone else's system
 
I haven't done anything to them other than what Unity generated. Don't think that the project would run without Unity. Oh, stupid paths. F* you Unity.
 
Why did you decide Unity was a good idea for a programming language in the first place
 
3:53 AM
Because this is the baseline work for another project...which is/will be a Unity game
 
You could have isolated the actual programming language in a non-unity project that people might be able to actually use
 
I'll have to do that tomorrow. Its midnight.
 
@Draco18s If you make a console app we can get it on TIO
 
That said, it'd have to be a stripped down version as several of the commands reference Unity functions. E.g. the Q command
Was planning on doing that anyway, I just wanted my full feature set first. ;)
@Pavel Having it on TIO would be cool. Definitely a "sometime next week" sort of thing though.
 
@Draco18s Why sometime next week, you just said tomorrow
 
4:01 AM
@Pavel Meant that as a "Not a goal for tomorrow, but eventually" sort of thing
I can fiddle with it, but not making it my priority
 
 
4 hours later…
8:09 AM
I know one of the guys who created Unity if you want me to smack him around a bit for you?
 
 
2 hours later…
10:39 AM
-1
Q: Python Socket Programming

Praveen SoniI've problem in this code. I don't know why is this not running. Before 2-3 day's it's running very well. Now what happened to this don't know. Please help..! import socket socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) #a = socket.connect_ex(('XXX.XXX.XXX.XXX', 2500)) #s = socket....

 
I really don't know how so many people end up here with their questions, without even looking at the name of the website.
 
11:18 AM
Has anyone started looking at the sudoku challenge in the sandbox? I'm just waiting for that
 
 
1 hour later…
12:21 PM
"we don't use windows on the pcs in the labs better get used to ubuntu" and the pcs have 12.04
 
@betseg at least it isn't ubuntu 17
 
@betseg do they pay for Canonical's Extended Security Support?
(else 12.04 is EOL for about 1.5 years)
 
Dunno tbh
 
0
A: Sandbox for Proposed Challenges

SEJPMIs the Matrix Positive-Definite? code-golf math matrix Input A \$n\times n\$ symmetric Matrix \$A\$ in any convenient format (you may also of course only take the upper or the lower part of the matrix) Optionally: the size of the matrix \$n\$ What to do? The challenge is simple: Given a ...

 
1:00 PM
how do I check if [1,2] is in [[1,1],[1,2],[2,1],[2,2]] in JS
in doesn't fucking work because like half of everything about JS is wrong
neither does .indexOf
 
@HyperNeutrino [1, 2] !== [1, 2], so I wouldn't think there's a built-in
 
1:19 PM
...
ok then lol
thanks
 
1:36 PM
0
Q: Get the lowest possible pylint score within 128 bytes of python

user82938pylint has no lower bound on the scores it will give your code. It uses the following metric to score code, with the maximum score being 10: 10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10) With python 3.6, try and write a program that: Outputs "Hello World" whe...

 
1:52 PM
1
Q: Transpile Brainstract to Brainfuck

FireCubezIntroduction Brainstract is a dialect of Brainfuck that adds a bit more elements to the syntax. In addition to the normal Brainfuck syntax, there are macros. To define a macro: {macro_name ++++} Then use it: {macro_name} Adds 4 to the current cell Challenge Your challenge is to take a v...

0
Q: The least weird fact about the US presidency right now

Chelsea G.The least weird fact about the US presidency right now is that there have been two unrelated presidents whose last names start with T-R-U-M. That made me think, how many US presidents share other combinations of characters? There are obviously two presidents that share the characters "BUSH", and...

 
2:07 PM
My teacher bet me I couldn't code isPrime method in one line. Game, set, and match. return n==1?false:n<4?true:!java.util.stream.IntStream.range(2,n).anyMatch((k)->n%k==0)‌​;
 
2:23 PM
@Quintec you don't /need/ newlines in java... you could just write whatever code you wanted :]
 
2:42 PM
4
Q: An ogl-edocf challenge

ArnauldInput A non-empty shuffled string consisting of ASCII characters in the range \$[32..126]\$. Output The output is obtained by applying successive rotations to the input string. For each letter ([a-zA-Z]) in the input string, going from left to right: if the letter is in upper case, rotate a...

 
@maxb Same situation for Stack Overflow. On this site it's more noticeable because there are less questions challenges.
 
3:10 PM
That moment when your are proud of your 30-bytes answer for Arnauld's question but then comes someone with a shorter answer than yours.... damn it xD
 
um...my Jelly solution is nothing to block you from posting
JS, right?
 
Japt actually.
 
feel free to post it :-)
 
but I feel it is not the best solution out there. Im looking for other ways to do it
 
also, my Jelly solution is actually quite bloated...
 
3:26 PM
Is it over 8 characters? Then yes, it is ;P
 
you'd wish
it's actually 20 bytes too long
 
3:56 PM
153
Q: Array state will be cached in iOS 12 Safari, is bug or feature?

abelyaoToday I found some problem of Array's value state in the newly released iOS 12 Safari, for example, code like this: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"> <title>i...

 
@Downgoat boo newest version...
looks like sheep were hired as back-end devs
 
@Poke A true one liner is much more satisfying, especially in this hellhole called java streams. ;p
 
5:00 PM
@Quintec idk man. sometimes any one liner is satisfying: Try it online!
 
5:18 PM
@Neil @MartinEnder Could either of you help me with Retina? I'm trying to do An ogl-edocf challenge. I know I can get all prefixes of an input using $'. I also know I could get the length per prefix with {$.>'}. And I know I can rotate them either once left with ^(.)(.{$.>'})(?=[A-Z]) \n $2$1 and once right with ^(.{$.>'})(.)(?=[a-z]) \n $2$1. But how to combine all this? How to loop over the prefixes and rotate them?
(All single quotes are of course backticks. Double backtick for code-snippets containing a backtick didn't seem to work here in chat.. Unless I did something wrong, which is also highly likely..)
 
5:35 PM
CMC: concatenated prefixes of input in Dodos
70 bytes (too much clutter to post here)
 
6:12 PM
@Downgoat wtf
Something is super wrong there
 
@Poke That is awful. ;p
 
@Quintec No, this is awful: Try it online!
 
@Draco18s Pshhhhhh, that's just JSFuck. Nothing new ;p
 
Its still awful :P
did a cops-robbers cop entry in JSfuck once. No regrets.
specifically it was a restricted source where "score" was the number of unique characters
 
#;+
 
6:27 PM
goes back to writing his interpretter. Oh shucks. I've run out of qwerty-avaialbe punctuation symbols.
I've only got &,[,and] left
 
@Draco18s Try the APL keyboard!
 
Well, the thing is, I wanted every op to have a way to type it without needing a code page.
 
@Draco18s (Cool thing)[javascript:(d=>{let e=d.createElement("script");e.src="https://abrudz.github.io/lb/lb.js";d.body.app‌​endChild(e)})(document)]
ah, whatever
 
what's that supposed to do?
Oh I figured it out. had to go to abrudz.github.io/lb and click the buttons
@Quintec anyway, not a solution for my intended future use. The "good for codegolf" variant could make use of it, but not the thing I'm actually building
 
6:43 PM
can someone look over my KoTH proposal? need some confirmation before I post
 
I generally like KOTHs, sure
 
6:59 PM
0
Q: Output a Sudoku board

DJMcMayhemToday's challenge is simple: Without taking any input, output any valid sudoku board. In case you are unfamiliar with sudoku, Wikipedia describes what a valid board should look like: The objective is to fill a 9×9 grid with digits so that each column, each row, and each of the nine 3×3 subgr...

 
@RushabhMehta generally it's suggested to keep a challenge in the sandbox for at least 3 days. Though I haven't read into the challenge too much, it seems reasonably long, though 2 rules sections feel a bit weird, and could do with being one after the other, with the submission info after the rules, by the controller info
 
@dzaima Yea don't intend on posting till later, but still wanted feedback
 
7:24 PM
buhahaha, it works!
 
0
Q: Build a Markdown bomb

Mason WheelerI'm sure most of us have heard of zip bombs and similar decompression bomb tricks, where a maliciously crafted input creates a massively disproportionate output. We even had a question on here to do that to a compiler at one point. Well, it occurs to me that Markdown is a compression format of ...

 
8:09 PM
@KevinCruijssen I don't think you can do it in a single substitution, I would prefix a newline to the input, then for each character in the input, perform any appropriate rotation, then append the character to the output
 
0
Q: A sorcerer's spellbook

DanielA D&D fan from a recent Hot Network Question seems to have some trouble working out whether a sorcerer's chosen spells line up with the possibilities - and I think we should help! Introduction (all of this is already described in the previously mentioned question) A sorcerer knows two level 1 ...

 
9:16 PM
@JoKing Re: this -- I respectfully disagree. I think part of the fun in golfing (at least for me) is combating what's thrown at you. The fact that I'm given a string allows me to approach the problem in a few different ways, even if the core of the problem is just joining suffixes. I think it neither nice nor wise to enforce this "core of the problem" mentality, ...
5
especially on newer users. The problem you (and others, not just you) raise is rather nitpicky. I get that you want the language to be accurately represented by the byte count, but if a language deals poorly with string manipulation or STDIN (e.g.), I feel like that shouldn't be overlooked. As an example: so what if the "core task" is only 14 bytes? The challenge isn't at fault for exposing a weak point in a language.
 
90% of real world code isn't algorithms either
 
I can understand not wanting to write the same bit of code on every <X> answer I write to handle input, but the reality is, input parsing nowadays is the exception rather than the norm. I think we should tolerate these relatively infrequent requirements and just enjoy the process
 
error handling, logging, input processing, file/network manipulation
 
It's also the less fun part of it :P
 
oh, for sure. It's also very language and program-specific that it's not a good fit for challenges anyways
 
9:41 PM
0
Q: Removing points from a triangular array without losing triangles

Peter KageyI have a combinatorics problem that I'd like to put on the OEIS—the problem is that I don't have enough terms. This code challenge is to help me compute more terms, and the winner will be the user with the submission containing the greatest number of terms. The Problem Suppose I give you a tr...

 
 
2 hours later…
11:36 PM
@ConorO'Brien I agree with you up to an extent. Per this comment, I completely agree that taking in a sentence/list of strings isn't unreasonable - but make sure we aren't encouraging "find f(n) and output the square of the sum of the list of the prime factors of f(n) etc."
 
@Quintec yeah, that's fair. I'm really just talking about "f(n) + IO"
 
-2
Q: You failed everything!

bodqhrohroYour goal is simple: to fail everything. More precisely, you should write the shortest code that triggers a compilation/interpretation error, or a runtime error. What does not count Failing with symbols that are not covered by the language syntax and are meant to appear only in string literals...

 

« first day (2790 days earlier)      last day (2036 days later) »