Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Locked thread
unidef freeman
Sep 18, 2014

by R. Guyovich
Tomorrow I’m going to try to write some code in

Todo:
Find out whatever *malloc() returns and create a proper function (or sadly a macro) that allocates a neuron
Figure out this multidimensional binary tree (where and how do I implement multi heads and multi tails? Please god no macros, I’m thinking of a multidimensional array)
Build tools for database management (including random characters generator to fill up databases in ram)

Adbot
ADBOT LOVES YOU

Captain Foo
May 11, 2004

we vibin'
we slidin'
we breathin'
we dyin'

Pham Nuwen posted:

imagine 4 pointers on the edge of a cliff. say the pointer nearest the cliff is sent to the back of the queue of pointers and takes the place of the first pointer. the formerly first pointer becomes the second, the second becomes the third, and the fourth falls off the cliff. this could be useful for hyperspace.

Captain Foo
May 11, 2004

we vibin'
we slidin'
we breathin'
we dyin'

unidef freeman posted:

Tomorrow I’m going to try to write some code in

Todo:
Find out whatever *malloc() returns and create a proper function (or sadly a macro) that allocates a neuron
Figure out this multidimensional binary tree (where and how do I implement multi heads and multi tails? Please god no macros, I’m thinking of a multidimensional array)
Build tools for database management (including random characters generator to fill up databases in ram)

what's wrong with /dev/urandom

why would you want to use random data rather than 0s or flag values

beyond all that, you're working far below the level of a database if you're talking about mallocs

unidef freeman
Sep 18, 2014

by R. Guyovich

Captain Foo posted:

what's wrong with /dev/urandom

why would you want to use random data rather than 0s or flag values

beyond all that, you're working far below the level of a database if you're talking about mallocs

The tool is mainly for benchmarking, and this isnt a sql database, it’s something concoceted by me

Captain Foo
May 11, 2004

we vibin'
we slidin'
we breathin'
we dyin'

unidef freeman posted:

The tool is mainly for benchmarking, and this isnt a sql database, it’s something concoceted by me

if you are talking about "databases" people will assume that you are talking about traditional rdbms; terminology is important

Dijkstracula
Mar 18, 2003

You can't spell 'vector field' without me, Professor!

op why do you care so much about macros

unidef freeman
Sep 18, 2014

by R. Guyovich

Dijkstracula posted:

op why do you care so much about macros

I think it goes back to when i was a kid, and my dad took me to work, and a macro killed my dad

qhat
Jul 6, 2015


if only sons were like fathers

unidef freeman
Sep 18, 2014

by R. Guyovich

qhat posted:

if only sons were like fathers

ah the #define keyword, come to finish the job, eh?

qhat
Jul 6, 2015


:allears:

unidef freeman
Sep 18, 2014

by R. Guyovich
didn’t see the stealth edit

El Mero Mero
Oct 13, 2001

qhat posted:

I still have no idea what the op is going on about but I'm enjoying this thread a lot

gonadic io
Feb 16, 2011

>>=
Agreed, the is much better than the time MrSuperAwesome went off their meds or whoever

elite_garbage_man
Apr 3, 2010
I THINK THAT "PRIMA DONNA" IS "PRE-MADONNA". I MAY BE ILLITERATE.

unidef freeman posted:

Tomorrow I’m going to try to write some code in

Todo:
Find out whatever *malloc() returns

you should post this update to the linux mailing list thread.

unidef freeman
Sep 18, 2014

by R. Guyovich

elite_garbage_man posted:

you should post this update to the linux mailing list thread.

When I finish my small library I’ll give it a go at implementing it inside the Linux kernel, then send a patch

Dijkstracula
Mar 18, 2003

You can't spell 'vector field' without me, Professor!

this was a pro emptyquote that I missed the first time round

Pham Nuwen posted:

you'll all be sorry when the next volume of TAOCP is titled "binary trees revisited: quantum?!?"

YOSPOS: you'll all be sorry when the next volume of TAOCP is titled "binary trees revisited: quantum?!?"

JawnV6
Jul 4, 2004

So hot ...

Dijkstracula posted:

op why do you care so much about macros
i've never seen a stronger love/hate relationship with a construct

unidef freeman posted:

Find out whatever *malloc() returns

gonadic io
Feb 16, 2011

>>=
don't worry op, in your case (and in fact all cases) malloc won't return anything important

unidef freeman
Sep 18, 2014

by R. Guyovich

gonadic io posted:

don't worry op, in your case (and in fact all cases) malloc won't return anything important

you can do void to void but I settled with a macro

Captain Foo
May 11, 2004

we vibin'
we slidin'
we breathin'
we dyin'

unidef freeman posted:

you can do void to void but I settled with a macro

post the macro

BattleMaster
Aug 14, 2000

unidef freeman posted:

Find out whatever *malloc() returns and create a proper function (or sadly a macro) that allocates a neuron

this is where i figured out that this is a troll

suffix
Jul 27, 2013

Wheeee!
all this time ive been allocating multidimensional arrays without considering the metaphysical implications

akadajet
Sep 14, 2003


is this a call for help?

Beamed
Nov 26, 2010

Then you have a responsibility that no man has ever faced. You have your fear which could become reality, and you have Godzilla, which is reality.


is it bad it's programming exclusively in macros that's making me so angry

Dijkstracula
Mar 18, 2003

You can't spell 'vector field' without me, Professor!

the m in malloc stands for macro

JawnV6
Jul 4, 2004

So hot ...
m'alloc,

Dijkstracula
Mar 18, 2003

You can't spell 'vector field' without me, Professor!

Captain Foo posted:

post the macro

code:
#define malloc(x) sbrk(x)
#define free(x) (void)(x) //really memory hungry mode, I have 32gb of ram on all my computers, prime rib? 

Dijkstracula
Mar 18, 2003

You can't spell 'vector field' without me, Professor!

JawnV6 posted:

m'alloc,

Only registered members can see post attachments!

gonadic io
Feb 16, 2011

>>=

Along comes the hero: Raii

unidef freeman
Sep 18, 2014

by R. Guyovich
new push on https://github.com/unidef/quantum

I kind of gave up, will work on this project on and off

could someone fix my code? is the data structure supposed to go inside the node struct or visca versa?

my homie dhall
Dec 9, 2010

honey, oh please, it's just a machine

unidef freeman posted:

is the data structure supposed to go inside the node struct or visca versa?

look within yourself to find the answer you seek

akadajet
Sep 14, 2003

unidef freeman posted:

could someone fix my code?

lol

qhat
Jul 6, 2015


Op your binary graph has too many matrixs, it can't fit into the cache lines on your cpu without multifactored prefetching.

unidef freeman
Sep 18, 2014

by R. Guyovich

qhat posted:

Op your binary graph has too many matrixs, it can't fit into the cache lines on your cpu without multifactored prefetching.

Awha? You can make binary graphs out of c code?

Try adjusting the dimension macro to about 5 for modern hardware

unidef freeman
Sep 18, 2014

by R. Guyovich
shopping list
gin (mornings)
whiskey (evenings)
rum (nights-mornings)

just my regime for dissecting the Linux kernel

animist
Aug 28, 2018
the best kind of performance art is performance art indistinguishable from a psychotic break

Dijkstracula
Mar 18, 2003

You can't spell 'vector field' without me, Professor!

lgtm op, ship it

unidef freeman
Sep 18, 2014

by R. Guyovich
does anyone have any constructive criticism of my code? I'm thinking of putting it ffmpeg, maybe avdecoder.

maybe ill hack the poo poo out of mplayer

qhat
Jul 6, 2015


You're doing a great job op! Continue pushing the envelope no matter what the naysayers say

Adbot
ADBOT LOVES YOU

unidef freeman
Sep 18, 2014

by R. Guyovich

qhat posted:

You're doing a great job op! Continue pushing the envelope no matter what the naysayers say

Ty qhat

  • Locked thread