hacker

Solomon Jackson

@sugarfi (582)
I didn't break it - it broke
Python.js - The js library meant to be like python!
posted to Share by Code1Tech

normal js can literally do all this stuff in the same amount of code...

VolantOS - An operating system made with Volant (Check the jam section)
posted to Share by CSharpIsGud

Always nice to see more OSDev!

When can I vote?
posted to Share by sugarfi

@Bookie0 @EpicGamer007 btw, we're supposed to keep politics off repl talk - perhaps move to discord?

When can I vote?
posted to Share by sugarfi

@EpicGamer007 eh... the political system is set up so a certain amount of pandering had to be done.

Pence is also very chill. If you watched the vp debate you know how bad kamala did compared to pence. I would rather Pence become president than any of the other 3

ngl i bet he'd violate the seperation between church and state at some point. he's basically trump's yes-man though, i can't see him doing much important stuff. (for the record, he was the head of the pandemic task force; you can see how that went!)

When can I vote?
posted to Share by sugarfi

@DynamicSquid ruby-esque semantics, a nice stdlib, very pog macros, c interop, and a super idiomatic api. one of my favorite features (though i haven't had the pleasure of using it, i feel it's a good example) is the time api:

p 1.days.from_now

would print out the datetime 1 day from now. plus, shards, the package manager, is super cool.

Please Stop With Cycle Fanaticism
posted to Share by sugarfi

@amasad ok, cool! on another note, what plans does the repl.it team have for cycles in the future? are they going to just stay like they are, or what?

The most complicated "hello world" program in a single line
posted to Share by MarcusWeinberger

1810 bytes just to print "hello":

x=list(str(sum([*map(lambda x:sum([*map(int,(bin(ord(x))[2:]))]),'hello world!')])*(1<<1|1)));y=x[9//2//(9//2)];x[654**0<<1]=x[3>>1];x[(10^1)&1]=eval(chr(ord('Y')+(2<<4)),locals());x=__import__('htam'[::~0]).sqrt(int('abc'[:8*(2>>3)].join(x)));x=int(x//4*(2<<2>>1))+[~~(1&1&1&1&1&1&1)][0];x*=len(hex(3735928559)[[*[2<<1>>1]][0]:]);print(chr(x),file=getattr(__import__(chr(ord('S')+(2<<4))+'y'+chr(ord('t')-1)),'stdout'),end='');x=str(6+(2&3^2&3))+[*map(str,[*[int(str(6))+(6//2)]])][0];y=int((int(x)|[*[4*((34^34)|1<<3)]][0]));i=sum([*[*[*[y if ~((int(x)*c)>y) else 0 for c in range(5^5,int(str(10)*2,base=2<<1>>1),5%2)]]]]);i=int(str(i)[:~0]);z=getattr(__import__(chr(int('12'[:5&abs(~0)]*(1<<1|1)))+chr(i+(1<<2|1<<1|1)+int(hex(7)[2:],base=16))),'sys');getattr(z,'stdo'+chr(10**(1<<1)+(8*9-(7*9)+8))+chr(10**(1<<1)+(8*9-(7*9)+7))).write.__call__(chr(i));d={'ba'+[*[chr(ord('S')+(2<<4))]][0]+chr(int(bin(5)[2:])):2};x=ord(getattr(__builtins__,'ch'+chr(ord('R')+[*[2<<4]][0])).__call__(ord('0')+(2<<(int(str(ord('e')),**d))-(2<<1))));x=eval(compile('x','','eval'),globals())*(eval(type(5).__name__)(chr(eval(compile('x','','eval'),globals()))));x=int(x-(round.__call__(x//((7>>1)&2),-1)));a={'end':'end'[:2-(~~2)]};print(chr(x)*2,**{**a,**{'file':getattr(__import__(chr(ord('S')+((2<<5)//2))+chr(ord('n')+int(str(10)*2,base=2)+5%2)+chr(ord('S')+((2<<5)//2))),'_'*2+'stdo'+'u'+chr(ord('n')-ord('n')+ord('t'))+'_'*2)}});x=str(ord.__call__(chr(ord('0')+(2<<(int(str(ord('e')),base=2)%2+eval('~'*5+chr(48))))))*(1<<(5&(1<<0))));x=eval('__builtins__.__dict__')['chr'].__call__(int(x)+int(x[:[*[(5&1&1&1)+1]][0]])+int(x[:[*[1]][0]]));d={};print(x,file=getattr(eval('s',d) if not exec('import '+ord('y').__getattribute__('__repr__').__call__().replace('1','s').replace('2','y')+';s=sys',d) else None,'stdout'),end='');

Try it online!

Making your own programming language with Python
posted to Tutorials by Scoder12

If anyone is interested, I would really recommend checking out sly. It's a great lexing+parsing library for Python, and it lets you skip a lot of the harder parts of lang dev.

SIMP! The language
posted to Share by developer1001

@Leroy01010 no it isn't. They are right; this is not a language, and it is most definitely not how you are supposed to make a language.

[ C++ ] [ enums ] Coder100 got lazy
posted to Ask by Coder100

just nest an enum in a namespace...

namespace x {
  typedef enum {
    A, B, C
  } y;
}
// x::A, x::B, etc.
ULTIMATE_DUMB_THINGS_TO_DO
posted to Share by Bookie0

I tried sticking a fork in the toaster and I got electrocuted and died. 0/5 stars.

[CHALLENGE] What You Should Code!
posted to Share by ThatOneDude1

just use random.choice(list) rather than list[random.randint(0,len(list)]. also, why do you use int(len(list)) when len(list) already returns an int?

🍑PEACH🍑 programming language
posted to Jam by emd22

Wow, this is awesome!

Human Worth Calculator
posted to Share by Axrevyn

@TaylorLiang what do you mean? on the dark web people go for, like, $20!

Please Stop With Cycle Fanaticism
posted to Share by sugarfi

@codecademy123 oH bOy My PoSt Is GeTtInG sO mAnY vOtEs Im GoNnA gEt CyClEs

[Beta 1.0] repl.email - an exclusive, but fully functional email service
posted to Share by MarcusWeinberger

Wow, this is great! IMO the frontend has a few minor issues, but overall amazing work!

Looking for Teammates for Jam
posted to Ask by Zavexeon

I would be willing to help. I know some Ruby and NodeJS/Python. but I'd prefer to work in a faster language like Rust if that is an option.

s p a c i f y - w r i t e t e x t l i k e t h i s
posted to Share by AlephZero

Instead of having the default value of the input be Type here, set the placeholder to Type here, so the text disappears when the user starts typing.

Python Tutorial (not all)
posted to Tutorials

@Zuhdi28 templates aren't for teaching, this is the board for the template competition...

IN MEMORY OF ALL THE LATE COVID-19 PATIENTS.
posted to Share by JosephSanthosh

@JosephSanthosh Well then, I apologize. Sorry for your loss.

IN MEMORY OF ALL THE LATE COVID-19 PATIENTS.
posted to Share by JosephSanthosh

Every Upvote is prayer for these unfortunate victims.
Are you serious? Covid-19 is a serious issue; Don't use it to farm cycles.

why trump is better than biden
posted to Share by bwoop

@bwoop no you can't, that's not how the first amendment works. people can still view your opinion and they are allowing you to host it - but you violated their rules are they are allowed to enforce them.

Slime Text Game
posted to Share by eredden

How smart are you?
posted to Share by Uzalii

@Uzalii 69/10

How smart are you?
posted to Share by Uzalii

@Uzalii i got e/10

IS IT DIVISIBLE
posted to Share by Uzalii

@TaylorLiang code golf is my favorite sport

Give me your problems!
posted to Ask by Zexogon

@Haaruun my favorite case is ___uGLy___caSE___

Adventure Game
posted to Share by connorstott

You stay still, the tiger is not stupid, it attacks you. Great game!