« first day (2062 days earlier)      last day (2767 days later) » 

3:00 PM
Which is as much as answer hell, because the answer is chosen by the community and it may not work for the asker.
@Downgoat about the computer:
A computer is a device that can be instructed to carry out an arbitrary set of arithmetic or logical operations automatically. Their ability of computers to follow a sequence of operations, called a program, make computers very flexible and useful. Such computers are used as control systems for a very wide variety of industrial and consumer devices. This includes simple special purpose devices like microwave ovens and remote controls, factory devices such as industrial robots and computer assisted design, but also in general purpose devices like personal computers and mobile devices such as...
huh :/
 
no answer from @StackStatus, nor @Nick_Craver
 
^ logging on to answrs.yahoo.com
 
Don't.
1 min ago, by zyabin101
Which is as much as answer hell, because the answer is chosen by the community and it may not work for the asker.
Finally, thank Tyr, an answer from @StackStatus
Stack Overflow appears to be stable again. We are keeping an eye on it.
\o/
 
hello world in my new lang:
 
3:05 PM
Everyone, room TV, phones, you can switch to whatever things you were doing now.
SO is working again.
 
include IO.
func main(s32 argn, ptr ptr u8 argv) to s32
    IO:print("Hello, World!").
    return 0.
end
 
I'm not sure SO being down is a reason to stop what you're doing anyway. Just sayin'
 
@TùxCräftîñg -1 for stelaing ches's IO.print
looks like rust btw
 
How did people program before 2008?
 
3:06 PM
ikr
 
@Downgoat Not fully, because ches' IO.print is JS' console.log actually.
 
no its not
 
but here it call a function which call the OS which print a thing on the screen
 
^^ Ah, forgot. Where is the source for the IO lib of ches?
And by the params of the main function, seems like it compiles/transpiles to C/C++.
 
src/stdlib/IO
cant link on phone
 
3:08 PM
@Mego months.count == 2, but I'll see if I can get an update (although I expect it to be the same as two months ago)
 
@zyabin101 nope, i will transpile it directly to asm
 
How? :O
 
@TùxCräftîñg wat not even GCC can do dis
 
by the same way GCC transpile to asm... ?
@Downgoat wat
 
But you require IO.
 
3:10 PM
ye, SCL use a module system
(headers are mindfucking)
 
SCL is what your lang is called? :3
 
Stupid Compiled Language
 
@TùxCräftîñg compiler output object file which linker combines with libs and then loader outputs editable
@TùxCräftîñg ;_; y u sai dis
 
GCC compile to asm and then call GAS which compile and then call ld which link
 
@Downgoat Languages do not need a linking stage if the complete source is available.
 
3:12 PM
@Downgoat Make an url shortener: src.cheddar.vihan.org/src/stdlib/IO would link to github.com/cheddar-lang/Cheddar/tree/develop/src/stdlib/IO.
 
Eh
usually GCC does all steps tho
@zyabin101 can't GH doesnt allow 302 redirect
 
Because GCC is a toolchain, not a compiler.
 
I have an auto deploy setup tho
 
And on OS X GCC wraps clang, which adds an additional llvm stage.
 
@mınxomaτ wait wat. But it's called "gnu compiler collection"
 
3:13 PM
the CC of GCC output asm
 
the one thing I learn in CS class is BS
 
@Downgoat You can just make a link generator in JS PHP.
 
compile a file and use the -S flag
 
@zyabin101 yeah but I'd still need a file tree mirror
 
you will see (AT&T ugh) assembly
 
3:14 PM
You won't.
 
@mınxomaτ okay if you want to be technical GCC -c
 
The generator makes a link to the required GitHub page, the user opens a src.cheddar.vihan.org page, clicks on the link, and voici - the required page!
 
@MartinEnder Maybe an estimate of how many other site designs they still have to work on would help?
 
@zyabin101 GH pages don't allow php
its gotta be static
 
Then in JS.
@TùxCräftîñg I thought you would compile a library called IO-bios.bin that contains a print subroutine to bios print, and then one called IO-win32.bin which print subroutine uses Win32 apis, and another called IO-linux.bin which uses linux apis...
 
3:17 PM
How do i make file on web server with JS??
 
@Sherlock9 the site designs are not the bottleneck
 
i was talking about -S with GCC
 
the deal was that they wanted to look into the more urgent requests from "We're not a Q&A site" first
 
@zyabin101 bios??? Uefi master race
 
@zyabin101 and yes, this is the way SCL will work
 
3:17 PM
Same for other platform-dependent operations.
 
@El'endiaStarman Haha, true! But that is probably the same for everyone. On the other hand I think math-people are the most honest compared to any other science when they know nothing about a certain topic. I feel like in most other subjects people are more likely not to admit that they know nothing. Which probably just follows from the fact that people who know the stuff will immediately know if you talk bullshit.
 
@TùxCräftîñg y u no just output llvm to work on multiple architectures
 
i dont know llvm ;_;
 
@MartinEnder Sorry? I'm not parsing that sentence well.
 
»  llvm-
llvm-ar.exe       llvm-objdump.exe
llvm-lib.exe      llvm-ranlib.exe
TIL i have llvm on my machine
 
3:19 PM
@TùxCräftîñg u know asm? O_o
 
@flawr That's probably true as you go down the list from "hard" science to "not-science" also. The most confident people I meet are the ones who believe in downright crazy things ;)
 
obviously
i know x86 asm, 6502, z80 and some mips
 
Pls halp maek jquer OS then?
 
@Downgoat AvocadOS?
 
3:20 PM
I knew some asm back when it mattered more to know it >_>
 
#mobileconnection;_;
 
(warning, 2h talk, but worth it)
 
Ah, it's dead because no one wants to work on it.
 
@zyabin101 s/wants/knows how/
 
But with our power, we can revive it.
 
3:20 PM
OS is hard
Video ram thing is weird
 
@Downgoat i one day tried to create an OS. i gave up with the different modes of the x86 architecture
 
Because no one bothers to learn how to use it, and why it doesn't make sense to use it for 99% of cases because their algo is crap.
 
@TùxCräftîñg And would there be a generic version of libraries for platform independent operations? :3
 
:D
But how would you determine the type of machine you'd compile SCL for?
There can be cross compilers.
 
3:22 PM
@zyabin101 compiler flag or current architecture
 
Like, on Win32 sc --arch=bios hello.scl?
(to compile for BIOS)
 
win32 dont support bios interrupts
it use protected modes, so interrupts need to be cleared to prevent weird mode conflicts
 
Nope, it's compilation of a bootloader, for the BIOS.
 
3:23 PM
ah k
 
That does whatever you want when flashed to a floppy and booted from it.
(However, that needs the compiled code to be in 510 bytes :/)
 
@MartinEnder Oh, I see. Thanks for the clarification
 
bootloader is generally written in asm
 
SCL compiles to assembly.
 
3:25 PM
(the boilerplate added with gcc for example would make the whole thing incredibley hard)
@zyabin101 this dont mean there is no boilerplate
 
:/
 
@Geobits Oh yes, that's another way to see it=)
 
@flawr That's probably largely due to math's precision.
@Geobits Probably the Dunning-Kruger effect in action. Incompetent people don't, and almost can't, know that they're incompetent.
 
C:\TDM-GCC-32\projects\devc++\DefineHell-oWorld>type DefineHell_oWorld.cpp
#include <stdio.h>
#include "definehell.h"

program begin
        printf("Hello, World!");
        return 0;
end

C:\TDM-GCC-32\projects\devc++\DefineHell-oWorld>type definehell.h
#define program int main()
#define begin {
#define end }
 
3:35 PM
I started making a define hell, to change the way you look at C/C++.
^^
Because I only started.
 
one day i redefined everything to make C look like a bastardized version of pascal
 
When?
 
on my old computer
a hello world looked like
#include <stdio.h>
#include <wat.h>

PROGRAM BEGIN
    PRINT "Hello, World!" ENC
    RETURN 0
ENP
 
Also, two questions: can I put a #defined item in the interim of a word (seperated by spaces), and how can I put a parameter into a #define?
For the first question:
 
#define macro(arg) arg++
 
3:40 PM
printf(cocoa);
 
use like macro(var) and it will be expanded as var++
 
For the second one, thanks @Tux. :3
where cocoa is defined by the statement #define cocoa "Chocolate is unhealthy!"
 
include IO.

func print(ptr u8 str)
    u8 c = 0#8.
    while [c = +> str] do
        IO.putc(c).
    end
    return.
end
IO.print in SCL
(the brackets are to use the assignement as an expression)
 
I know that using a feature of a language newer than the challenge in an answer makes the answer non-competing, but what about using recent bugfixes?
 
it's a feature, so if the answer rely on the bugfix, it's non-competing
 
3:47 PM
@Sherlock9 How is that not a change?
 
@mınxomaτ I'm asking for clarification of the line here. Does any change count? Does making the language functional count? Does fixing a bug count? If the answer is yes for any of these questions, I'll refrain from rewriting my answer.
 
@Sherlock9 The implementation counts. If you there is a bug, it's a the feature doesn't exist.
 
@TùxCräftîñg Thanks very much
 
i think the specs are finished, now just to write the compiler
(and to learn llvm)
 
Hmm. Does anyone know if banks will take a pile of change without it being rolled? I've got almost 10kg of pennies here, and I'd rather not use one of the coin-counting machines that take some crazy % off the top.
 
3:54 PM
> 10kg of pennies
 
I wanted to use and for a define hell word, but the word is reserved ;(
 
In the UK they need to be in bags of 100
 
@zyabin101 use And or AND
 
Okai :3
 
I've avoided travelling to the bank by changing bags of small value coins at shops in the past. Some of them get very low on change towards the end of the day and are grateful for someone bringing them more
 
3:56 PM
@TùxCräftîñg yes ^
 
wrong message lol
(ノಠ益ಠ)ノ彡┻━┻ i cant edit the message wtf
wait now i can wtf
 
@Geobits My bank has a coin-counting machine, but it's free if you have an account there. Does your bank charge for that service?
 
Sounds like a liveware problem
 
I don't have a local bank, so I'd need one that's free for non-members also :/
 
#include <stdio.h>
#include "definehell.h"

program begin
	print "Hello, World!" And
	yea
end
 
3:58 PM
> yea
halp i dont have a llvm assembler
 
s/And/so/
 
okai :3
 
print "Hello, World!" so yea
^ cool
 
yea is for return 0, which means success in return codes.
 
so yea
 
4:00 PM
wow llvm is outdated on my computer o_O
»  llvm-ar --version
LLVM (llvm.org):
  LLVM version 3.7.1
 
I have a few other things in the define hell:
#ifndef DEFINE_HELL
#define DEFINE_HELL

// int main() hell
#define program int main()
#define yea return 0;
#define nay return 1;

// stdio.h hell
#define print printf(

// symbol hell
#define yes 1
#define no 0
#define begin {
#define end }
#define so );
#define then ;
#define also ,
#define wax (
#define wane )

#endif // DEFINE_HELL
 
ಠ_ಠ if wax 1 wane then is if(1);
it should be if(1){
 
Okay, so I should reassign the current then and begin. :/
 
reassign then to ){ and use with for ;
 
#define is =
#define if assuming that
 
4:05 PM
@zyabin101 just #pragma once brah
 
What does #pragma once do? :/
 
^^
@zyabin101 it's a one line equivalent to include guards
it's not standard but it's supported literally everywhere
 
@zyabin101 you can remove ifndef, define and endif
 
@Adnan Done.
 
Got it.
Reassigned then to {, and used next for ;.
 
4:08 PM
@Dennis Thanks :)
 
For the latter, think as in, next instruction.
#pragma once

// int main() hell
#define program int main()
#define yea return 0;
#define nay return 1;

// stdio.h hell
#define print printf(

// symbol hell
#define yes 1
#define no 0
#define begin {
#define then {
#define end }
#define so );
#define next ;
#define also ,
#define wax (
#define wane )
 
irb(main):006:0> /a/.
./  ../
(ノಠ益ಠ)ノ彡┻━┻
ruby iz stupid
 
In the C and C++ programming languages, #pragma once is a non-standard but widely supported preprocessor directive designed to cause the current source file to be included only once in a single compilation. Thus, #pragma once serves the same purpose as #include guards, but with several advantages, including: less code, avoidance of name clashes, and sometimes improvement in compilation speed. == Example == File "grandparent.h" File "parent.h" File "child.c" == Advantages == The most common alternative to #pragma once is to use #define to set an include guard macro, the name of which is picked...
@TùxCräftîñg not everywhere lol
 
I want to add function arity shortcuts, so that instead of typing int foo(int x, int y), a define hell user would type int foo dyadic.
And use x and y for the arguments.
 
seriously, what the heck is this compiler
 
4:13 PM
^ that was my try :/
Hmm, this might work:
The Portland Group, Inc. or PGI was a company that produced a set of commercially available Fortran, C and C++ compilers for high-performance computing systems. On July 29, 2013, NVIDIA Corporation acquired The Portland Group, Inc. The Portland Group (or PGI) name is now known as a brand of software development tools produced by NVIDIA Corporation. == Company history == The Portland Group was founded as a privately held company in 1989, using compiler technology developed at and acquired from Floating Point Systems, Inc. The first products, pipelining Fortran and C compilers, were released in...
But I don't know the names of arities 3, 4, etc.
How do I find out the name of any arity N where N > 2?
 
triadic, quadradic, quintadic...
 
Thanks :3
 
@ΛεγίωνΜάμμαλϠΟΗʹ I'll think about it. It would definitely be a good addition if client-side permalinks were to stay, but since v2 and server-side permalinks should arrive soon, it just feels like additional code I have to keep in the interest of backwards compatibility...
 
or just use variadic macros with one type? lol
 
<<|>>|<=|>=|==|<>|\+>|<\+|->|<-|[+-*/<>=&|^~!$()\[\]]
CMC: find the empty char class
ruby say me ruby_compiler/tokenizer.rb:7: empty range in char class: /<<|>>|<=|>=|==|<>|\+>|<\+|->|<-|[+-*\/<>=&|^~!$()\[\]]/
 
4:20 PM
@TùxCräftîñg <>
 
Gasp!
You know regex? :O
 
irb(main):001:0> /<>/
=> /<>/
@betseg nope
 
>_>
 
<_<
 
>_<
 
4:21 PM
<_>
 
c-c-c-c-combobreaker
 
♢_♢
^ quantum version
 
Edits to messages don't count :P
 
stupid caps key do count :P
 
^₺^
 
4:22 PM
Remind me, what character U+26(5/6)2 should look like?
 
★_★
 
And what U+2605 should look like?
Can't find any of these in BabelMap's Composite Font. :I
 
wait i found
the - is unescaped
 
Ah!
That's a problem with a penguin, one penguin...
Gotta tell Mego soon. :P
Also, I dug out YADFPL, with some unfinished stiristic documentation for C.
Who here knows C? :3
can send pull requests to explain it like I'm five but still know C. :P
Also, I just review-protected YADFPL, which means that a review is mandatory for pull requests to merge.
These restrictions apply to me, too.
 
@zyabin101 i do
 
4:35 PM
Nice!
 
i do a little
 
Send pull requests to explain the stiristics to newbies in C, and advanced ones alike. :3
 
I don't think these guides are helpful to newbies.
None of them were to me.
 
:I
Why not?
 
I don't know what that means, and you show me it and say "Do this. This is how you code.".
 
4:40 PM
3
Q: Checkmate (aka the urinal problem)

AMACBMy Precalc teacher has one of his favorite problems that he made up (or more likely stole inspired by xkcd) that involves a row of n urinals. "Checkmate" is a situation in which every urinal is already occupied OR has an occupied urinal next to them. For instance, if a person is an X, then X-X--...

 
@betseg The thing is to explain it, leading by example.
That's what YADFPL is for: explain programming langs, leading by example.
This needs explaining the examples.
Why don't you want to send pull requests to explain the examples?
 
I got Opera to play a WMV without a browser extension by accident.
0
Q: Opera natively plays WMV files?

mbomb007I was working on playing videos in HTML5 and displaying other content instead if the browser cannot play the video. I was looking at the results in Opera, and it played a WMV! I was really surprised. My installation of Opera is a fresh install with no extensions. It doesn't play if I try it the n...

 
@DJMcMayhem Quick C question: is #pragma pack universally supported?
 
#include <stdio.h>
#include "definehell.h"

program begin
	int x next

	x now 123 next
	print "%d" also x so
	yea
end
Variable demo in define hell.
 
@quartata kinda
 
4:51 PM
(Does the same as the second stiristic of YADFPL, by the way.)
 
{:id=>:KFunc, :value=>"func"}
{:id=>:Identifier, :value=>"main"}
{:id=>:LPar, :value=>"("}
{:id=>:Number, :value=>"s32"}
{:id=>:Identifier, :value=>"argn"}
{:id=>:Type, :value=>"ptr"}
{:id=>:Type, :value=>"ptr"}
{:id=>:Number, :value=>"u8"}
{:id=>:Identifier, :value=>"argv"}
{:id=>:RPar, :value=>")"}
{:id=>:KTo, :value=>"to"}
{:id=>:Number, :value=>"s32"}
{:id=>:KReturn, :value=>"return"}
{:id=>:Number, :value=>"0"}
{:id=>:Dot, :value=>"."}
{:id=>:KEnd, :value=>"end"}
tokens for func main(s32 argn, ptr ptr u8 argv) to s32 return 0. end
wait u8 and s32 is borked
fxd
 
Generally speaking, | represents Boolean or and || represents binary or, right?
 
@betseg That's #pragma once?
 
@quartata You probably know more about C than me, cause I have never heard of or used #pragma pack before, haha
 
@TimmyD converse
| is bitwise and || is logic
 
4:55 PM
@DJMcMayhem I'm under the impression it lets you modify how structures are padded
In this case I don't want it padded out to a byte
I have a feeling that it'll open a whole new can of worms though.
Aligning structs sucks.
 
@TùxCräftîñg OK, thanks
 
@quartata oh right
i dunno about most compilers
 
Third stiristic:
 
@quartata not padded to a byte? You want less than a byte?
 
4:57 PM
#include <stdio.h>
#include "definehell.h"

program begin
	int x next

	print "x? " so
	input "%d" also pointer x so
	print "x = %d" also x so
	yea
end
 
Yeah, I have a matrix of 2 bit values that I would like to align differently
Probably isn't necessary though.
 
@zyabin101 does hell.h have a github repo
 
Not yet.
Once I finish all the stiristics in it, will publish.
Define hell will have shortcuts for multiplying by small numerals (2-10) by saying doubled, tripled, etc.
 
do things for the functions isalpha(), isupper(), toupper(), strchr(), strlen() etc
 
and for dividing by two half and fower quarter
^^ will do soon.
 
5:08 PM
#define halved /2 , int i = 4 halved; lel
 
#include <stdio.h>
#include "definehell.h"

program begin
	int a also b next

	print "a? " so
	input "%d" also pointer a so
	print "b? " so
	input "%d" also pointer b so
	print "a + b = %d" also a plus b so
	yea
end
Fowerth!
 
5:23 PM
0
A: Sandbox for Proposed Challenges

TimmyDASCII Odd/Even Cipher code-golf string cipher We'll define the ASCII Odd/Even Cipher via the below pseudocode: If the 0-based index of the letter in the string is even, then Use the binary-or of the ASCII codes of both its neighbors, converted back to ASCII Else If the ASCII code of the le...

 
Fifth!
#include <stdio.h>
#include "definehell.h"

program begin
	int n also x also pr next

	print "n? " so
	input "%d" also pointer n so

	for wax pr now yes also x now 2 next // startup
                x less n                next // condition
                x increment                  // intermission
        doing
		if wax n modulo x equals 0 doing
			print "n is not prime" so
			pr now no next
			break next
		end
	end

	if wax pr truthy doing
		print "n is prime" so
	end

	yea
end
forgot that no corresponds to 0
@betseg Time to release the define hell!
 
@zyabin101 s/yea// s/break next/yea/ and remove the if loop
 
@betseg voici
Nope :/
yea is needed to easily return out of a program. :/
 
@zyabin101 * is pointer, & is value
 
Ah.
 
5:32 PM
@zyabin101 you don't need to return in most compilers
 
In gcc, yes.
But convention.
By convention, a return is required.
Also, I was just translating the stiristics. :P
 
@zyabin101 pr'd
 
1
A: Checkmate (aka the urinal problem)

AdnanOasis, 5 bytes Code cd+2V Extended version cd+211 Explanation 1 = a(0) 1 = a(1) 2 = a(2) a(n) = cd+ c # Calculate a(n - 2) d # Calculate a(n - 3) + # Add them up Try it online!

 
Congrats! Review finished so quickly with a fresh, hot plus.
 
@TùxCräftîñg sure, if you want to be technical. I could draw a horse and call it documentation towards my programming project. that doesn't make it useful, or decisive. — tuskiomi 2 mins ago
huh
 
5:39 PM
Yay!
 
PR merged.
(Soon, I'll review-protect the branch for define hell.)
yay, I'm lucky: 827184902252
 
The first 12 digits of my commit hash were digits :D
 
@zyabin101 another pr
@zyabin101 what are the odds
 
Agh, preparing a project and got a PR.
Okai, gotta review now ~_~
 
5:55 PM
2
Q: Is asking not to use Golfing languages in a code-golf reasonable?

tuskiomiIt seems like it would help out newer members of code golf a bit, and give them a bit more of an edge to participate. It also seems as if golf languages simply a dime a dozen today, and half the challenge in a golf is simply picking the right language. thoughts?

 
Can you get hexplode for Android?
 
0
Q: Alexa and the Tea Plantation

twoTimesAgnewHey guys, first time poster here. I went on Coderoulette recently and some guy posted this question. I looked around online but it doesn't seem to be anywhere. I figured I would post it here for anyone who is a fan of these types of problems. Enjoy! Alexa and the Tea Plantation Alexa is a druid...

 
6:20 PM
Java, 111 bytes: int f(int[]c,int[]a){int m=0,i=0;for(;i<c[0]/2;i++)m+=Math.abs(a[i]-a[c[0]-i-1])*Math.min(c[1],c[2]);retu‌​rn m;}
Where c[] is the second line and a[] is the third line of input as stated. Gotta run, so may not be able to post when/if it gets fixed.
Probably needs to be golfed some :/
 
6:32 PM
@NewMainPosts reopen
 
Cmc pls?
 
@zyabin101 I would be honored if you did!
 
@betseg Cmc: toggle the case of every letter in the input
 
:D
 
SILOS is public domain (I think I did explicitly specify this), but I think a programming languages can not be proprietary.
 
6:39 PM
CMC: sigmoid function
 
@DJMcMayhem i;f(char*n){while(i++<strlen(n))if(isupper(n[i]))n[i]=tolower(n[i]);else n[i]=toupper(n[i]);}
 
@betseg CMC: Roll the Dice: 1d6, but in define hell.
 
@zyabin101 oh, wait. I didn't specify it explcitly yet. I'm adding a liscence now
 
:D
Make it MIT, or the Unlicense :D
The #include "definehell.h" counts due to consensus.
To note, it is 23 bytes.
 
@betseg Nice! V, 2 bytes: g?
 
6:42 PM
@zyabin101 take a look at the new liscence. Its the do whataver the f u want liscence but censored
 
I think it's better that you choose a more widely used license. Like the Unlicense.
 
@DJMcMayhem Alt H 7 T (4 keystrokes in ms word)
 
@zyabin101 I have never heard of the Unlicense. I have heard of WTFPL.
 
6:44 PM
also it doesn't matter at all
 
@zyabin101 honestly I do agree Ideally I should use a fairly quality language, but if it's not something that I can see profits for any major company messing with me on. I'll make it public domain
which is everthing
 
1
Q: Find the largest number 𝐧 positions away from an 𝐧

LynnA sequel to this question. Task Given an array of positive integers, find the largest element satisfying the following condition: There exists some positive integer n, so that the element in the array n positions to the left or right from this element equals n. The array is guaranteed to ...

 
@RohanJhunjhunwala it's not possible to copyright concepts (like programming languages), but it's possible for implementations
 
@TùxCräftîñg thats what I figured
 
6:47 PM
I guess that the actual text of the documentation is theoretically intellectual property
 
@Lynn imo your old avatar icon was cooler
 
@RohanJhunjhunwala yes, the doc can be copyrighted
 
I like changing it up~
 
Although I don't really care
It's worth knowing though for more information
 
when SCL will be finished i will create a SILOS implementation in it
if my brain dont melt in the meantime :P
 
6:48 PM
:) thanks @TùxCräftîñg
 
i am thinking of transpiling SCL to C finally becuz assembly is hard, but idk how to emulate modules :/
 
@TùxCräftîñg you may be better off transpiling to C unless you are an assembly wizard
 
@Lynn Your challenge title doesn't render on my phone...
 
;—; I wish I had LaTeX
 

« first day (2062 days earlier)      last day (2767 days later) »