hacker

CSharpIsGud (581)

Presenting... 🔍 The NEW Repl.it User Search 🔍
posted to Share by RayhanADev

@firefish I did name == null because when I was using repl db it was being stupid and didnt work for some reason, I thought maybe that was the problem(it wasnt) and I just left it.

I almost always use parenthesis for arrow functions no matter what.
Normally I omit the brackets but I did that code very quickly because I was trying to figure out why repl db was erroring when it shouldn't have.
In the end I just decided to move to a json file.

Also I made DEBUG uppercase because it is a constant.
Typically I start globals with an uppercase anyway.

HelloWorld OS!
posted to Share by AmazingMech2418

Repl needs more things like this!

Python3 interpreter
posted to Share by Andi_Chin

why do things like this get so many upvotes compared to repls that actually contain a program with more than 1 line

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

@mwilki7 I can barely tolerate reading repl talk just because someone that makes a cycles celebration gets like 40+ upvotes free for doing almost nothing at all.

I spend so much time making decently sized repls and they never get that many upvotes.

Meanwhile everyone else just steady churns out easy and fast projects everyone's already seen before and get tons of upvotes every time.

Can lua language be added please?
posted to Ask by Seth01Master

@AmazingMech2418 the whole people expecting wait to exist is mostly from people who came from roblox and don't realize they added most of that stuff on top of lua.

⌨️ HyperTyper: Ultimate Typing Test ⌨️
posted to Share by PYer

I win.

Who wants to help me dethrone stackoverflow(lol)
posted to Ask by elipie

@elipie C++ web server, thats a funny joke

My New Language - It’s not really a language
posted to Share by VulcanWM

@medcho I have a tutorial for these, and many examples.

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

@PlaySoccer Of course it takes a long time to start compared to other repls, its an operating system

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

@DynamicSquid

  • Install nasm
  • Install an emulator
  • Code
  • Make bash script to compile it
VolantOS - An operating system made with Volant (Check the jam section)
posted to Share by CSharpIsGud

@DynamicSquid I think bochs has a windows download, vmware might work

How to Get Cycles
posted to Tutorials by MrEconomical

"Somewhat decent" - One line print('3') gets 50 upvotes

terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc
posted to Ask by Description

@Description The problem is that on line 87 GameMaster2020 gm;
You define a variable of your class, but you don't actually create an instance of it. Hence when you try to use it it's a "bad allocation".

What line 87 should be:
GameMaster2020 gm = GameMaster2020();

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

@xxpertHacker @fuzzyastrocat I tried to find it but I could only find one thats just a webpage that looks like an OS and one thats based on a linux kernel. technically its made using js but most the actual OS work is done by linux.

CommandScript
posted to Share by JustinPhillip

+1 For not just being a bunch of if statements one after another

How To Make A Language: Parsing
posted to Tutorials by CSharpIsGud

@StudentFires Thats basically how any interpreted language does it, this tutorial isn't going to cover a compiler but I might make a separate one after this series is finished.

How To Make A True Coding Language: Part 1
posted to Tutorials by CSharpIsGud

@AmazingMech2418 Also he technically didn't make a compiler in 3 lines, he just used the existing one which compiles into python bytecode, so roylat keeps his life savings

How To Make A True Coding Language: Part 1
posted to Tutorials by CSharpIsGud

@LoganSpong Mine uses classes, but I never said the C++ classes were classes in my own language. If you look, you will see that the compiler doesn't actually support python classes because I haven't gotten to parsing those yet

And obviously I have to make a program for the compiler to compile

Bad habits and how to avoid them
posted to Tutorials

@AmazingMech2418 A bunch of print statements and file io does not show you at all how paging works or interacting with hardware. So when I do print("Hello World") do I become an OS design expert?

A beginners guide to OS Dev: Part 2
posted to Tutorials by CSharpIsGud

@AmazingMech2418 does it happen if you make two literals like one 32 chars and another 35 chars long?

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

@DynamicSquid Or bochs, bochs is recommended as qemu doesn't have good debugging capabilities. I couldn't get bochs running on repl.it so if you are making an OS you want to download it and compile on your own machine with bochs installed. If you don't you will never get anything working if you run into a problem.

A beginners guide to OS Dev: Part 1
posted to Tutorials by CSharpIsGud

@AmazingMech2418

mkdir libtmp; cd libtmp; wget https://repl.it/@CSharpIsGud/VolantOS.zip; unzip VolantOS; mv qemu/lib* ../; mv qemu/*.bin ../; mv qemu/*.rom ../; cd ..; rm -rf libtmp

try this

First program
posted to Share by SophannaB

@Zuhdi28 Never took a CS course in my life and my profile is full of projects like operating systems(assembly and C, not print in python) and interpreters so all you need is effort

OPERATION SHUT DOWN
posted to Share by ChezTacoz

@ChezTacoz Noone criticized being new, people criticize print(1) print(2) print(3) which gets old the 10th time you see it

Facilis - A Low Level Functional Language
posted to Jam by CSharpIsGud

@AmazingMech2418 it happens on the main repl too.

Facilis - A Low Level Functional Language
posted to Jam by CSharpIsGud

@AmazingMech2418 the linker isn't the problem, the error happens because the compiler has a bug that makes it generate an empty file.
the linker errors when it cant find the main function.

Facilis - A Low Level Functional Language
posted to Jam by CSharpIsGud

@fuzzyastrocat We assume it has something to do with memory alloc/dealloc problems.

Volant
posted to Jam by ApoorvSingal

@AmazingMech2418 Some of the languages being submitted to the jam use a parsing library to do the parsing for them, but noone seems to mind.

Volant
posted to Jam by ApoorvSingal

@AmazingMech2418 An interpreter usually isn't very fast and most people use an intermediary like C or C++. Not everyone knows assembly good enough to generate fast, portable code.

What I call a fake language is when people do this:

class Console:
    def writeln(self, str):
        print(str)

console = Console()

console.writeln("Woo look at me im a new language based on python")
Facilis - A Low Level Functional Language
posted to Jam by CSharpIsGud

@fuzzyastrocat It happens randomly, usually if you keep on trying the same thing it eventually works. We don't really know why yet.