Development discussion. Logged to https://ddnet.tw/irclogs/ Connected with DDNet's IRC channel, Matrix room and GitHub repositories — IRC: #ddnet on Quakenet | Matrix: #ddnet-developer:matrix.org GitHub: https://github.com/ddnet
Between 2017-12-06 00:00:00Z and 2017-12-07 00:00:00Z
@cineara not far at all, just brainstorming, some random code, learning a new programming language, reporting dozens of bugs, writing blog articles about the language, forgetting that I wanted to write a game initially
A Windows-based system that is used only for gaming, whose user prefers a REAL Unix-based operating system (often some distribution of Linux or, more often, Mac OS X) for their serious work.
VIM Adventures is an online game based on VIM's keyboard shortcuts. It's the "Zelda meets text editing" game. So come have some fun and learn some VIM!
<nemo2> I really don't see the advantage of hjkl frankly. vim is everywhere. arrow keys are everywhere. if I was going to use non-←↑↓→ I'd use wasd I think
@heinrich5991@Learath2 (sorry for answering ur super old statement about the call the srand() one time in main but here it is:) ye i thought that too. But i tested it. If i call it once it doesnt help i have to call it every time before i want to use rand(). I tested it in a plain test.c with only a loop which prints random numbers it works great. But in this special code i send earlyer i have to call it every loop tick to get new values. Idk it is a sub process fork or something i dont really understand
Idk it is a sub process fork or something i dont really understand
@ChillerDragon Well rand() is pseudorandom, with the same seed for each process it also will produce the same output, therefore having the same number on each fork is expected.
In computing, particularly in the context of the Unix operating system and its workalikes, fork is an operation whereby a process creates a copy of itself. It is usually a system call, implemented in the kernel. Fork is the primary (and historica...
by Colm MacCarthaigh In 2015, AWS introduced s2n, a new open source implementation of the TLS/SSL protocols that protect the privacy and integrity of data moving over a network. s2n was designed to be secure, simple, small, and fast. The project is thriving, and we use it extensively. In February, our CISO Stephen Schmidt shared […]
22:24
<nemo2> WIPEONFORK
22:24
<heinrich5991> nemo2: most importantly, the function returns 0 in the child, and nonzero in the parent
bmm6o's reply captures the approach; you WIPEONFORK a guard variable, and use the state of that variable to re-initialize.When we're writing a crypto library, like s2n, or OpenSSL, we don't get a choice to avoid fork() ... the application can for...
22:26
<nemo2> yeh, must be annoying for the lib which is trying hard to be secure
22:27
<nemo2> well. that comment and the "reliably detecting forks" link in the reply