Skip to content
Sign UpLog In
Profile icon

DynamicSquid

@DynamicSquid
developing a language, check it out: https://github.com/DynamicSquid/night
GitHub
  • night template

    Cover page
    Made with Bash

    Amazing repl by @programmeruser that allows you to run my language Night on replit! https://github.com/DynamicSquid/night

    Recent comments (0)
Repls
Community
DynamicSquid
DynamicSquid
published a Repl
7 months ago
2
Milky Hordes
Milky HordesDefend your turf from the milky hordes! WASD to move, hold down mouse to shoot. Don't touch the milk! Replit KaJam 2022
firelop
firelop
That's so hard !7 months ago
Whippingdot
Whippingdot
Impossible game. Oh and I didn't know you were still on replit...7 months ago
DynamicSquid
DynamicSquid
shared a Post
2 years ago
Hi! July weekly challenges finished! And the winner is: @Nayoar With the top 5 being: @MattDESTROYER @IMayBeMe @pyelias @InvisibleOne Huge congra
Vaibhav18
Vaibhav18
Cool 2 years ago
RtoonTV
RtoonTV
how do i participate im new2 years ago
CodingElf66
CodingElf66
Wait, there will be another set of Weekly Challenges next week?2 years ago
DynamicSquid
DynamicSquid
shared a Post
2 years ago
Hi! I'm back! And welcome to the last weekly challenge! Huge thanks to everyone that participated last week! And congrats to the top 5! @Nayoar @Ma
AlmightyDeaks
AlmightyDeaks
i know its a bit late but would this work: h=True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True+True1 year ago
Highwayman
Highwayman
Aw. aw man. I'm so sad. Could've done this all in two seconds. :/ #include const char * hi() { return func; } int main() { puts(hi()); } `2 years ago
ShizukoV
ShizukoV
Who won? It's friday morning for me right now... Has anything been graded yet?2 years ago
DynamicSquid
DynamicSquid
shared a Post
2 years ago
Hi! Welcome back! Excited to be hosting it this week :) And thanks to everyone who participated last week! Four people got full marks, wow! Here's t
Whippingdot
Whippingdot
Hey can I submit this in like 1 hour. I want to do final checks and finish it and submit it by then. When will you create the post and do the final checks. Please try to give me time by 9 PM IST... 🙏2 years ago
AaronClements
AaronClements
join my team @hjggfhhhghgfhg 2 years ago
FlaminHotValdez
FlaminHotValdez
God dammit I give up lmao I have like a 500+ char code for just part 1 oof2 years ago
DynamicSquid
DynamicSquid
shared a Post
2 years ago
Hi! As you know, Apps is rolling out, so instead of monthly highlights, we'll have monthly tutorials! And we have some epic tutorials in June! Yes i
Davi21
Davi21
@plscodeinjava I do not understand what your trying to say can you please explain it better?2 years ago
HaydnWorsfold
HaydnWorsfold
hello2 years ago
GabrielHui1
GabrielHui1
why do you need to type these boring things all the time?2 years ago
DynamicSquid
DynamicSquid
shared a Post
2 years ago
Clients send packets of information to a server directed through routers. Sometimes, the packets may travel through different routers or may be delaye
CSharpIsGud
CSharpIsGud
You will commonly see TCP called TCP/IP, because TCP is the protocol used to transmit data from one end to the other over IP. It does more than just check that the data is correct. The packets could also arrive out of order, or not at all. > And if so, then why do we even need the TCP? Why can't the server tell the client that not all information was sent? TCP is the exact reason the server can tell the client that. TCP at a basic level just splits data into segments along with a checksum and2 years ago
InvisibleOne
InvisibleOne
From the limited amount, I know from the internet and working with a lot of networking stuff setting up security cams. TCP is the protocol for insuring packages are legit. It set's up a start point and destination sort of like the IP protocol, but then breaks the packages into smaller pieces and routes them through the network to their location. On each package, it adds integrity codes to make sure everything gets to the other end more securely and not in a jumbled mess. But I'm sure other peopl2 years ago
DynamicSquid
DynamicSquid
published a Repl
2 years ago
15
Pixel Art Creator
Pixel Art CreatorDraw pixel art! Left click draw; right click fill; 1 toggle colors; 2 toggle grid; c clear grid; Also, press s and copy the URL of the new tab to save your image! Comment below your image URLs :)
Intellect103
Intellect103
You could have an eraser tool maybe. (White colour) or change the size of the pixels; grid.2 years ago
knowledgeyoutub
knowledgeyoutub
Hi there, we have unlisted this post because it does not have qualities that are most important2 years ago
DynamicSquid
DynamicSquid
shared a Post
2 years ago
How can I have multiple files in Rust compile down to a single executable? My project structure looks like this: Cargo.toml src/ main.rs error.r
Coder100
Coder100
first off, you don't need to change the cargo.toml file, that's nasty. Second off, have you seen the rust tutorial? use ; done2 years ago
DynamicSquid
DynamicSquid
shared a Post
2 years ago
Hi! So I'm trying to create a shared pointer without owning an object. Is this possible? Because from my limited knowledge on smart pointers, shared
Testing
C++
DynamicSquid
DynamicSquid
shared a Post
2 years ago
I want something like this: [div] [div] [div] So the divs are centered evenly across the screen. The spaces between each div and the edg
RohilPatel
RohilPatel
ez pz. i hope i can get this one right lol Since u have this: .container { display: flex; } .unit { flex: 1; } Flex box automatically does the sizing, even if u add padding lol ;) If u like this answer, why dont u mark it as correct :)2 years ago
Coder100
Coder100
Found it! https://stackoverflow.com/questions/6916079/two-divs-on-the-same-row-and-center-align-both-of-them https://stackoverflow.com/a/511427312 years ago
Coder100
Coder100
Ok, I use something like this: Maybe click check mark? Pog verified idk Css: .cont { float: left; } .cont > div { width: calc(100% / 3); } Hmmm2 years ago
DynamicSquid
DynamicSquid
shared a Post
2 years ago
I have a file with this in it: \"squid\" And when I read the file and put it into a string it becomes this: \"squid\" And if I print it out this i
RYANTADIPARTHI
RYANTADIPARTHI
You could try this: #include #include using namespace std; int main(void) { string test; test="this is a test" test.replace('/',' ') // replace the / with space cout << test; return 0; } So there you are just replacing something with space instead. That should work2 years ago
Theboys619
Theboys619
You could do what Rohil did but with regex. Match a string with R"(regexhere)" and replace the group. Here is an example: #include #include #include std::string replaceAll(std::string str, const char* begin, const char* replacement) { std::regex expr(begin); return std::regex_replace(str, expr, replacement); } std::string replaceAll(std::string str, const char* begin, int group) { std::regex expr(begin); std::smatch sm; std::regex_search(str, sm, expr); while (sm.size() > 0) { 2 years ago
RohilPatel
RohilPatel
You could just use a replace function and use the findfirstof on the string. Here is a replace function to replace all occurrences of a string with another string: std::string replaceAll(std::string str, std::string begin, std::string replacement) { sizet found = str.findfirst_of(begin); while (found != std::string::npos) { // While our position in the sting is in range. str = str.substr(0, found) + replacement + str.substr(found + begin.length()); // Change the character at position. 2 years ago
DynamicSquid
DynamicSquid
shared a Post
2 years ago
Hi! I made another language. It's called Mirror. It's statically typed and riddled with bugs. It's coded using Rust and transpiles down to C++. I o
Mirror
Bash
samfierycreeper
samfierycreeper
Lol for 10 hours still looks 500% nicer that JavaScript.2 years ago
zplusfour
zplusfour
some lil project :) https://mirror.zdev1.repl.co/2 years ago
zplusfour
zplusfour
um hi squid can you tell me how can i go into language design and development? thanks edit: and plz answer me, shud i use Rust or C++?2 years ago
DynamicSquid
DynamicSquid
shared a Post
2 years ago
I'm a little confuzzled on what my syntax for my language should be. Mainly when it comes to arrays. I don't know if I want predefined functions, or
xxpertHacker
xxpertHacker
Totally random, but I barely remembered this. You might be interested in this piece of knowledge since you're making an interpreted, memory-managed language. JavaScript implementations, ex: V8, do not use array-like structures to store strings, instead, they use what are known as "ropes". Some random search results: https://en.wikipedia.org/wiki/Rope(datastructure) https://www.geeksforgeeks.org/ropes-data-structure-fast-string-concatenation https://github.com/alaroldai/cpp-rope https://stacko2 years ago
maxina
maxina
Not sure what language this is, Ruby, maybe?2 years ago
xxpertHacker
xxpertHacker
I think dynamically reallocating arrays is just a bad idea. Unless... you implement arrays as linked lists, in which case I recommend syntax.2 years ago
DynamicSquid
DynamicSquid
shared a Post
2 years ago
Hey mods... What just happened to repl.it Talk? What are the details on this? How much did it affect the server? The spammer said he "unbanned" himse
Coder100
Coder100
k here's what happened according to AA: made a spambot spambot got banned while (isNotBored) { createPygameRepl(); useAsVpnToSurpassBan(); } AA blocked all outlets from being posted/commented on temporarily2 years ago
Bookie0
Bookie0
wait how do you know I got spam pinged (rip)? was there like a post or something?2 years ago
realTronsi
realTronsi
Oh and to answer your questions: Didn't affect the server thankfully, not much latency Not sure, he appears to still be banned. If you are saying from IP ban, he probably used a VPN. I did not keep count, but it was about 2-3 per second, so maybe 1800 assuming he spammed for around 10min (it was probably longer but I'm not sure how much) Personally, I pinged mods, but people from discord probably got to them wait why would hahayes, coder100, and bookie be pinged, they aren't mods lol 2 years ago
DynamicSquid
DynamicSquid
shared a Post
2 years ago
[ currently broken :D ] Hi! I made Snake. You can control it using WASD, or the arrow keys. Eat the red apples, and don't crash into the walls or yo
Snake
HTML, CSS, JS
ch1ck3n
ch1ck3n
image :D2 years ago
ThePythonCoder12
ThePythonCoder12
the AI doesn't work and I think you should be able to hit space again to toggle the AI2 years ago
FrancisPan
FrancisPan
It doesn't work2 years ago
DynamicSquid
DynamicSquid
shared a Post
2 years ago
Let's say I have an interface called Squid. interface Squid { void DisplayInfo(); } And we have a bunch of different types of squids: class Aquat
firefish
firefish
Hi, don't mind me just testing a bot2 years ago
firefish
firefish
@DynamicSquid use the duplicate macro in the duplicate crate // eek rust syntax highlighting extern crate duplicate; use duplicate::duplicate; trait Squid { fn display_info(&self); fn new() -> Self; } #[duplicate( typ atk mve; [ AdvancedAquatic ] [ advanced_attack ] [ swim ]; [ BasicAquatic ] [ basic_attack ] [ swim ]; [ AdvancedLand ] [ advanced_attack ] [ crawl ]; [ BasicLand ] [ basic_attack ] [ crawl ]; )] trait typ { fn atk(&self); fn mve(&self); } /* ... */ fn main() {2 years ago
xxpertHacker
xxpertHacker
I personally don't use classes, I don't know why, I just don't like OOP code, but, I recommend just using whatever is simplest and most maintainable. ... Honestly, I sat here for more than 15 minutes, trying to think of a good way to create these interfaces, but nothing sounds good. I have no clue how you should do this, maybe go look at some gaming industry's source code? Although, maybe it's hard to understand it because of the lack of information. What makes a squid advanced or basic? H2 years ago
DynamicSquid
DynamicSquid
shared a Post
2 years ago
I have a nested anonymous union (is that what they're called?), and it's throwing this weird error. Do I need an explicit default constructor for it?
Testing
C++
Coder100
Coder100
i mean it says it got implicitly deleted, so yeah you do :( I think the reason for this is because like vectors have like a default value of {}2 years ago
DynamicSquid
DynamicSquid
shared a Post
2 years ago
I'm getting this weird error: "Borrow of moved value in Rust" I looked online but I can't find anything. Does it have to do with the fact that your t
HahaYes
HahaYes
Rust: Laughs in memory safety2 years ago
Summit
Summit
wait why is everyone learning rust i should learn rust but i need to learn node.js first waaa whichh should i learn first2 years ago
RayhanADev
RayhanADev
Hey @DynamicSquid do you not have hacker?2 years ago
DynamicSquid
DynamicSquid
shared a Post
2 years ago
I have three std::string vectors. 2 of those vectors contain different strings, and the third vector is just to "point" to one of those vectors. For
xxpertHacker
xxpertHacker
Well... I'm a month late. Never got the ping, I think when you ping people in a post, or maybe if you ping multiple people at once, they won't get the ping, at least I haven't. For anything thread related, CSharpIsGud is who you're looking for. (you're not the only one who had ever pinged me for a C++ question, so it's annoying that I haven't been getting the pings)2 years ago
CSharpIsGud
CSharpIsGud
Basically, from what I read of mutexes here is what happens when you use one. After you call lock() no other thread can execute the code up to unlock() until unlock() is reached. Therefor if you just lock and unlock from within thread individually it has no effect because the other threads don't ever enter the same place in the program. But if you make a function that they both have to call to acquire the lock then they have to take turns and can't access it at the same time.2 years ago
CSharpIsGud
CSharpIsGud
I was able to fix it with this https://repl.it/@CSharpIsGud/thread-safety2 years ago
DynamicSquid
DynamicSquid
shared a Post
2 years ago
So there's a new user by the name of @BotWatches, and the user's been posting a couple of repls that lags repl.it. As soon as I click on one of his re
BotWatches
BotWatches
Summary: I do it for fun its not gonna steal your bank account its not gonna do anything, its just some test for file replication. I dont actually know how it freezes automatically, u probably ran the code beforehand and thats why it lags.2 years ago
BotWatches
BotWatches
_2 years ago
Bookie0
Bookie0
Lol how did you even get on his profile Btw for the tutorial, we’re almost done, just got headers, small programs, ANSI, and other websites that help and then we’re done! This whole week I’m free, so we can probably finish it :)2 years ago