« first day (2158 days earlier)      last day (2805 days later) » 

4:00 PM
@SterlingArcher 2
 
@AwalGarg Ugh
 
Actually, spaghetti was apparently eaten with the hands originally
 
time to change batteries
 
@SterlingArcher party drunk
 
@KendallFrey I need your brains. Looking at simplex code, there's a value usually referred to as "hairy factor". Can't really find why is it called hairy. Any idea?
 
4:04 PM
@SterlingArcher Does it matter? If she goes after spaghetti like that, imagine how she goes after her boyfriend.
 
it's ( x + y ) * skewingConstant
@ssube you might now as well ^
the main issue is that then there's a value that behaves oppositely, and can't really find names for it. Went for lessHairyFactor here, but that's very likely not the right name
 
 
loooong
 
@littlepootis @SomeGuy @Abhishrek spoken-tutorial.org/watch/Tux%2BTyping/… this is actually interesting. maybe a little mock-worthy but interesting none the less. (ignore the topic, just the language bits)
 
Dammit feeds I don't have time for that
Is.. is this rugby?
 
4:10 PM
@Loktar just skip to the end if you want the spoiler :p
 
@towc Phew, I've never heard of it. It looks like maybe it's converting a square grid into an equilateral triangle grid, but no idea why it's called hairy
 
@AwalGarg nice, but pointless
 
Hmmm :/ so what's a good semi professional substitute to lessHairyFactor?
veryOldFactor?
 
pretty much anything
it's a meaningless name
 
veryYoungFactor?
 
4:13 PM
@towc semiProfessionalSubstituteToLessHairyFactor
 
@littlepootis works for me
moleFactor
 
why are you using simplex noise and dealing with all the weird factors and broad patents rather than just using perlin noise?
 
@ssube I really need directional artifacts to go away
and it's slightly better with simplex
also so I can add simplex noise to one of the things I've implemented in a professional environment
something to tell unis and stuff
 
how are you generating perlin noise that has bad artifacts?
 
and my grandkids
 
4:16 PM
and making noise isn't worth mentioning, it's the most basic of math
 
@ssube meh, something to add to a list that sounds fancy. That's good enough for me
@ssube it follows a pretty apparent grid if the area you're looking at is small
 
How do I install the latest version of npm, but only Node 4.5?
npm install -g npm doesn't work
for an upgrade
 
What version does it install? What version are you on? What version are you expecting it to go to?
 
If I go for the latest bundled package on nodejs.org, it installs Node 6+ and npm 3.10. I want npm 3.10 and Node 4.5
 
Adi
hi
 
4:21 PM
@Adi Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
Adi
ok
 
@SvetanDimoff What version on npm do you currently have?
 
Adi
i used to do javascript, pretty neat language'
 
Also, your latest npm might need Node v6.
@Adi noice
 
@littlepootis 2.1
or so
 
Adi
4:23 PM
noice
 
also, is this kind of stuff accepted?
Utils.simplexUnskewFactor = .5 - Math.sqrt( 3 ) / 6;
Utils.simplexDoubleUnskewFactorMinusOne = Utils.simplexUnskewFactor * 2 - 1;
 
@SvetanDimoff Try npm install -g npm@latest
 
thing is I have no idea what the mathematical meaning of that is, I just know that it's a constant to be plugged into a formula
 
@towc Your spacing is blasphemy and unacceptable.
 
@littlepootis he knows not what he does
 
4:25 PM
- @littlepootis' mom when she came into his room
 
Also, why do you have.. properties on namespaces?
that are not enums?
 
@littlepootis long story short: I suck
but that's not the thing I was asking
and at this point it's not worth refactoring
 
simplexDoubleUnskewFactorMinusOne is a horrible name.
It's too self-documenting.
 
that's the thing I was asking
 
@towc What does less hairy mean?
 
4:27 PM
Name it so it's apparent what it's used for.
And not what it actually is.
 
FYI, I found this helpful:
> Given n = dimension of noise:
> f = sqrt(n + 1);
> skew = (f - 1) / n
> deskew = (f - 1) / (nf)
 
this is the source code that I used as reference (mostly anything on simplex that I found online was by this guy, so not much more code naming/style I could reference to):
// Skew the input space to determine which simplex cell we're in
 final double F2 = 0.5*(Math.sqrt(3.0)-1.0);
 double s = (xin+yin)*F2; // Hairy factor for 2D
 int i = fastfloor(xin+s);
 int j = fastfloor(yin+s);
 final double G2 = (3.0-Math.sqrt(3.0))/6.0;
 double t = (i+j)*G2;
 double X0 = i-t; // Unskew the cell origin back to (x,y) space
 double Y0 = j-t;
 double x0 = xin-X0; // The x,y distances from the cell origin
 double y0 = yin-Y0;
it's java
 
@littlepootis Error: EACCES: permission denied, open 'npm-debug.log.3401160753'. Now npm isnt found as a command anymore
 
@towc Yeah that's almost all I found too
 
4:29 PM
@SvetanDimoff oh. What platform is this? Linux?
 
!!sofa or office
 
@rlemon office
 
You should not have installed node and npm with sudo.
 
and it doesn't name the t in an understandable way
so...
 
@littlepootis OS X
 
I installed them from the package on nodejs.org
 
Even if you did, you should've changed the global module path.
@SvetanDimoff not familiar with it.
 
@ssube same naming, those people used the same reference very likely
 
@SvetanDimoff but when you install it the next time, refer to this: stackoverflow.com/questions/19352976/…
 
there's only one reference for usable (unencumbered) simplex noise
OpenSimplex noise is an n-dimensional gradient noise function that was developed in order to overcome the patent-related issues surrounding Simplex noise, while continuing to also avoid the visually-significant directional artifacts characteristic of Perlin noise. The algorithm shares numerous similarities with Simplex noise, but has two primary differences: Whereas Simplex noise starts with a Hypercubic honeycomb and squashes it down the main diagonal in order to form its grid structure, OpenSimplex noise instead swaps the skew and inverse-skew factors and uses a stretched hypercubic honeycomb...
 
4:31 PM
still, how do you call the thing that does the opposite of the hairy factor? And why is it called hairy factor?
looking at wiki's references: csee.umbc.edu/~olano/s2002c36/ch02.pdf
 
@towc I didn't notice anything that does the opposite
 
ctrl+f hairy returned nothing
 
Adi
so lemme get this clear- in games like minecraft the skeleton class is the child class of the mob class?
and everytime a skeleton spawns a new instance of the skeleton class is made?
 
@KendallFrey what the dude calls s
 
The hairy factor is used in the skew and deskew, right?
 
4:33 PM
@Adi probably
 
to unskew the floored values
 
oh wait
 
@SvetanDimoff For now though, you'll probably need to do sudo npm update -g npm@latest
 
a noise algorithm is encumbered? bah.
 
@littlepootis Okay
 
4:33 PM
@Luggage by Nokia, too :P
 
But that's bad.
 
It's in the public's interest for it to be free.
 
it's like the 80s all over again
 
Adi
oh, k
 
I think "skew" and "deskew" are acceptable names for s and t
 
4:34 PM
sure
 
Adi
so everytime something spawns it makes a instance of that class
 
but that's not exactly what they do
I can just call t deskewHairyFactor
 
@littlepootis Ran it, no errors, version is still the same - 2.15
 
I'm actually ok with moleFactor
just really curious with the whys
 
@adi you are welcome here, of course, but minecraft is Java, not Javsscript. Just in case you were confused about that.
 
4:36 PM
@SvetanDimoff that's.. weird. Can you post the entire output somewhere?
@Luggage Pretty sure he/she isn't.
 
@little pootis You mine pipe it to a textfile?
 
@SvetanDimoff not piping, no. Copy from terminal.
 
SOF-MBP-001:authsandbox-mac svetandimoff$
SOF-MBP-001:authsandbox-mac svetandimoff$ sudo npm update -g npm@latest
Password:
sudo: npm: command not found
SOF-MBP-001:authsandbox-mac svetandimoff$ npm -v
2.15.9
SOF-MBP-001:authsandbox-mac svetandimoff$ sudo npm update -g npm@latest
SOF-MBP-001:authsandbox-mac svetandimoff$ npm -v
2.15.9
SOF-MBP-001:authsandbox-mac svetandimoff$ node -v
v4.5.0
SOF-MBP-001:authsandbox-mac svetandimoff$
 
weird..
 
That prompt is not easy on the eyes.
 
4:39 PM
oh my fucking god
@KendallFrey omg
 
install the latest npm to your local folder then verify its version then replace the one in /usr/local/bin with the new npm version
 
Adi
ok
but im talking about games in general
many javascript games contain spawning too
istn JS OOP?
 
nope, but it can be used that way.
 
It does.
 
My mom is complaining about her printer in a group text and i'm terrified she's going to call me for my help
 
4:41 PM
And it's pretty powerful.
 
@Adi Yes, but it uses prototypal inheritance rather than class inheritance
 
also.. it's the game developer's choice wether they instanciate a class instance per entity or use some other method. the language does not dictate that
 
@SterlingArcher Preempt her, just buy a new printer and install it without saying a word.
 
Adi
what is prototypal inheritance?
 
You really need to read a book
 
Adi
4:42 PM
still learning so..
 
It's almost like books are for learning!
 
@Adi Objects inherit from objects. There are no "classes" or "blueprints" or "instances".
For example..
 
Adi
oh
 
ATA
 
PATA
 
4:44 PM
ATAP
 
no
 
@Dsafds Hello there
 
and why Loktar
 
var obj1 = {
  potato: "eat",
  classes: "avoid"
};

var obj2 = Object.create(obj1);

obj2.potato; // "eat"
obj2.classes; // "avoid"
obj2.objects = "embrace";
obj2.objects; // "embrace"
obj1.objects; // undefined
 
why not loktar
 
4:47 PM
worst example, but yeah
 
@towc nothing wrong with IDE
 
Adi
is that javascript code?
 
Adi
i have forgotten it so..
sry
 
are we not making why a thing?
 
Adi
4:48 PM
but i get it
 
I'll try reminding you every time
!!mrwhy
 
yesterday, by Aminadav
Why everyone. I want to share new NPM module I just released yesterday and have 92 downloads...
https://www.npmjs.com/package/run-middleware
https://github.com/AminaG/node-run-middleware/blob/master/example.js
What do you think?
 
and be abnoxious
 
Adi
is there any advantage of using java on javascript?
 
4:48 PM
hwat?
 
um?
oh
I get it
 
@Adi no
 
@Adi Every programming language has its benefits and drawbacks
 
no, there isn't any
 
@littlepootis there are still instances, that doesn't change.
 
4:49 PM
@KendallFrey except REBEL, REBEL is useless
and masochistic
 
It has benefits
 
@rlemon REBOL?
 
REBEL is not masculine enough
 
no, kendall wrote a language that is pure regexp
 
@littlepootis REBEL
 
4:50 PM
called REBEL
 
What is REBEL?
 
Why are we saying REBEL
 
REBEL.
 
4:50 PM
grr
 
@littlepootis hola :)
 
Adi
oh, ok
 
@SterlingArcher because it's fun
I should write more REBEL
 
Adi
but java is compiled and JS is interpreted
 
i haven't touched it in so long
 
4:53 PM
I am having trouble getting a reference to router from react-router. Am I missing a step here? gist.github.com/luggage66/e3899bf024667c4798346e658e2c9741
 
Adi
isnt there any advantage of compiled over interpreted
 
@Adi JS can be compiled if you try hard enough
 
Adi
try hard wnough?
 
you can compile JS
 
@Adi depends on a lot of things
 
4:54 PM
it's just that it's usually only interpreted for debugging and sandboxing purposes
 
Adi
compiled reads the code multiple times
so its better right?
 
@Adi Usually there's slightly less overhead when executing machine-readable code, but JS engines are very very good at making JS run quickly
 
Adi
whats sandboxing?
 
actually, JS uses JIT (Just In Time) compilation
 
I can't remember if Java uses JIT or is interpreted
 
4:55 PM
JIT.
 
@Adi when you put kids somewhere so they don't hurt the environment
 
@KendallFrey both, like JS
 
at least these days
 
@Luggage Yeah, I figured as much
JIT is generally the way to go for non-native code
 
typically the JIT compiler doesn't kick in right away, so the program can start running quickly
 
4:55 PM
was java ever interpreted? or do you consider non-jitted bytecode to be interpreted?
 
Java does that largely wrong, so it's still slow
@Luggage the latter.
 
doesn't .net core let you make standalone pre-compiled binaries, now?
 
.Net, in general, has always supported AOT compilation
 
@Luggage something like that
 
4:56 PM
no, not jsut ngen
i think it now lets you make a binary that does NOT depend on the framework
I think.
 
@ssube Before now, that only really applied to compilation on the target machine
 
@Luggage where are you seeing that?
 
i.e. you wouldn't ngen on a developer machine
 
getting source.
 
Adi
javascript is used for interactieness in web pages...is it used for any other stuff?
 
4:58 PM
".net core standalone binary" didn't find anything good
 
Adi
like normally?
 
@Adi servers, games, plenty of stuff.
 
Adi
but it can REALLY make webpages liik much better
look&
 
@Adi backend
 
JS doesn't change how pages look, typically
 
Adi
4:59 PM
look*
 
checkout Vert.x and Nodejs
 
Adi
i never got to the point of learning how to implement JS in webpages, JS was the first language that I learned!
but it makes them interactive
 
> JS is the first language that I am learning!
 
Adi
JS is also used as backend?? I thought JAVA did the backend..
 
ftfy
 
5:00 PM
@ssube docs.microsoft.com/en-us/dotnet/articles/core/deploying/… I also found mention of it only including th parts of the framework you use,, but still looking for that part
 
Adi
nice LOktar, when did ya start?
 
1997
 
@Adi not anymore. Java is falling out of favor, slowly. JS is fast enough to run a server now.
 
lol with JS probably like 99-2000
 
Adi
5:00 PM
i really dont like python tho...everything is decided by formatting
 
aww, I over guessed.
 
You can use Java, C#, or JavaScript for your backend and JavaScript for your frontend.
 
Adi
99-2000??
 
I was using visual basic forever though
 
I moved quickly from qbasic to js
 
5:01 PM
basic made me learn some terrible things :/
 
@Luggage huh. Haven't seen that.
 
but then js sucked for a long time so went to c#
@KendallFrey write a webserver in REBEL
 
I thought about it
 
Adi
whos teaching themselves to learn??
like through net?
 
Part of the problem is that it doesn't have any IO capabilities other than stdin/stdout
 
5:03 PM
REBELQuery
 
@ssube also that reads like it's still bytecode + CLR + framework in one package, not a native binary. I thought I found that you could build real native binaries.. but i haven't found that, again, yet, if it's real.
 
my raspberry pi zero arrives home tomorrow :3
 
@Luggage I know you can build for a particular architecture and it will do some AOT optimizations and restrict the instruction set, but that's still not native.
 
right.. like it comes with bytecode + a pre-compiled image?
 
@Adi me.
 
Adi
5:06 PM
I was about to say "maybe i am the only one" xd
noice
where do u learn from?
 
everywhere
 
Adi
samr
same
chat just died xd
 
@ssube .net native is what i was thinking of: msdn.microsoft.com/en-us/library/dn584397(v=vs.110).aspx
which is coming to dotnet core if it's not already
> required portions of the .NET Framework are statically linked into your app
 
@Luggage I can't decide if I like that or loath it entirely.
It defeats most of the point of .Net by static linking but would be super convenient because people hate installing .Net
 
> Third-part serializers, including Newtonsoft.JSON, typically are reflection-based. [ ... ] At a minimum, using these libraries causes MissingMetadataException exceptions
^ that implies it's more that some AOT compiling with the normal .net CLR image
 
5:12 PM
Oh man, fixin so much shit today
#OnARoll
 
Yea.. I think it could have value for some standalone tool that you want to distribute without .net, but not for any large app.
Why can't they compile native and keep reflection? I want both.
 
you mean you want RTTI, that clusterfuck?
 
yea, but hold the cluster.
Reflection is too powerful to give up.
or at least convenient
 
I avoid it
used it in Java, never touched it since
 
well, for things like JSON serialization, it's nice.
plain DTO classes.. maybe a few attributes to control the serialization when the defaults don't suffice.
 
5:22 PM
are we considering Array.isArray and Map.isMap to be reflection?
 
Obkect.keys, getOwnProperties, etc.
I consider them reflection.
sorta.
 
oh, that's way more broad than I thought
 
it's a bit blurry in JS.
 
if you wanna use that definition, then I use tons of reflection
but 100% of it is checking if an object publicly meets a few criteria
 
in c# more like.. umm.. typeof(SomeClass).GetProperties()
if memory serves
 
5:24 PM
like, I have an isCallable(it: any): it is Function { return it.apply && it.call; }
and isThenable and isArray and isMap and so on
 
yea.. well, would you consider (c#): if (someObject is Collection) {} to be reflection?
not that you often need to do that..
or: (someObject as ISomeInterface)
 
@Luggage not really, no, that's just type checking.
since I'm in JS, it's duck checking, but
 
anywho, you can have my reflection when you pry it from my cold dead hands.
 
I have a lurking suspicion that reflection is a smell, probably that your contracts(/interfaces) aren't granular or descriptive enough, but no proof.
 
well, i mostly use it for serialization, when I do any c# (which isn't much) these days
Well, Mr. Newtonsoft does it.
 
5:40 PM
It's weird having to explain front end necessities to a back end developer
 
hello everyone i need some help regarding to AJAX anyone?
 
@BilalSaqib Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
ok
How to Add a form within another form using 'AJAX' remember the first form is also created with AJAX
 
append it
 
@SterlingArcher it is not appending
 
5:47 PM
Ok, that doesn't tell me much. Why isn't it appending? Are there errors?
@Loktar youtube.com/watch?v=L4D6GxkPMgs holy buttclench batman
 
@SterlingArcher man what kind of phone took this video? An Iphone 2?!
lol that video is crazy though
 
Ah yes, the ol' meinPhone. Classic german engineering of WW2
 
user image
2
@JanDvorak ^
 
affect is not a noun
fail
well, I guess you could replace verb with action
maybe
idk
 
fair enough
 

« first day (2158 days earlier)      last day (2805 days later) »