old thread: >>54724576
What are you working on, /g/?
>>54726833
killing myself.
How do I pass values by reference in javascript?
>>54726864
I can help with that.
>>54726864
Man only knows true peace after he has shuffle'd off this mortal coil.
can the retarded java is pass by reference faggot please stay in the old thread thanks
>>54726876
Consumer & disposable helium tanks are no longer 100% helium and won't work with this method, just FYI
Can somebody help me understand this haskell code?primes = 2 : primes'
where isPrime (p:ps) n = p*p > n || n `rem` p /= 0 && isPrime ps n
primes' = 3 : filter (isPrime primes') [5, 7 ..]
I don't understand how one can use primes' inside primes' definition, since it is an infinite list.
Repost bc maybe someone has a clue why this prints 0 AND 1#include <cmath>
#include <iostream>
int main()
{
double sineSignal;
double my_pi = 3.141592653589793;
sineSignal = std::sin(my_pi/2);
std::cout << "std::sin(my_pi/2):\t" << sineSignal << "\n";
sineSignal = std::sin(my_pi*(1/2));
std::cout << "std::sin(my_pi*(1/2):\t" << sineSignal << "\n";
return 0;
}
C++ sine is like Schrodingers Cat
>>54726871
by not using javascript
>>54726977
IEEE-754 b64.
>>54726977
shouldn't the integers be doubles
>>54726977
(1/2) returns an int due to them both being ints. Do (1/2.0), or (1/2.f) if you were working with floats.
>>54727016
Useless post. Filtered.
>>54726977
I'm guessing 1/2 is integer division, so the result is 0. Try 1.0f/2.0f, for example.
>>54727043
>i'm a retarded and i don't follow the standard IEEE convention
hello reddÃt
>>54726870
>o != o[0].
>>54726967
>pass by reference syntaxusing System;
class Program
{
static void foo(ref object o)
{
o = null;
}
static void Main()
{
object o = new object();
foo(ref o);
if (o == null) {
Console.WriteLine("passed by reference");
} else {
Console.WriteLine("passed by value");
}
}
}
inb4
>that's not pass by reference in C# because ref o != o
>why don't you compare "ref o" against "null" in Main
Please don't be this stupid.
>>54727109
>strawman out of nowhere
Put your tripcode back on.
>>54727121
Fuck off with this shit already.
>>54726936
Look at the C# "equivalent"
>>54726964
>>54727134
>DELETE THIS
Out of arguments, my mentally impaired friend?
>>54726880
Would you happen to have an un-fucked (compressed to hell) version of that picture; or be able to point me to the article?
>>54726977
>double my_pi = 3.141592653589793;
double my_pi = acos (-1.0);
>>54727134
>>strawman out of nowhere
>Put your tripcode back on.
I don't take it off to post niggers on /pol/, /s/, and /hc/, so I definitely wouldn't take it off here.
Get ahold of yourself.
How do I write an array of arrays in C?
>I don't want multidimensional array
>>54727154
Reverse image search will get you to it.
>>54727151
No, the shitposting should just stop with the last thread.
>>54727198
An array of arrays is a multidimensional array, a multidimensional array is not an array of arrays.
>>54727198
they are the same thing
>>54727222
>shitposting should just stop
Got told hard, eh?
>multidimensional array is not an array of arrays
Prepare your anus again!
>>54727222
>No, the shitposting should just stop with the last thread.
Pass an array to a function, then. That's a reasonable simple thing to do, right?
mercilessly rate my sortimport re
splitter = re.compile( r"\d+|\D+" )
def split_compare( a, b ):
longer, shorter, mult = ( a, b, 1 ) if len( a ) >= len( b ) else ( b, a, -1 )
for i in range( len( longer ) ):
if i >= len( shorter ):
return 1 * mult
try:
l_part = int( longer[ i ] )
s_part = int( shorter[ i ] )
except ValueError:
l_part = longer[ i ]
s_part = shorter[ i ]
if l_part > s_part:
return 1 * mult
elif l_part < s_part:
return -1 * mult
return 0
def smart_sort( *strings ):
presplit = [ ( s, splitter.findall( s ) ) for s in strings ]
return [ p[ 0 ] for p in sorted(
presplit,
cmp = lambda a, b : split_compare( a[ 1 ], b[ 1 ] )
) ]
>>54727142typedef struct trip {
Date date;
char destiny[MAX];
int seats_available, max_seats;
} Trip;
I got this struct, why can't I simply do destiny = "Paris"; ?
>>54727044
>>54727043
>>54727027
>>54727016
Thanks, didn't knew that.
Interestingly, both equations return 1 when I change the compile settings in QtCreator to debug.
>>54727222
>multidimensional array is not an array of arrays
why would you contradict the C standard? is your mouth itching for a big dick?
>>54727258
>return 1 * mult
>return -1 * mult
>>54727285
Because destiny is an array and not a pointer.
>>54727305
inb4
>b-but arrays are pointers
>>54727320
Not exactly.
>>54727299
>[][][][][][][] == [][]
Go home.
I swear, C is the only language that can offer so much entertainment with this crowd of retards! Keep it up!
>>54727305
So, how can I make it work? Sorry for wrong quote I forgot to delete the quick reply
>>54727333
not exactly inb4? how do you know?
>>> from datetime import datetime
>>> t = datetime.utcnow()
>>> print t
>>> datetime.strptime(t, "%d-%m-%Y %H:%M:%S")
ValueError: unconverted data remains: .86400
Help
>>54727349
You must do a for loop (or a mem copy) to copy the value of your static string to your array.
>>54727341
nah, I'll stay and rape your fat stupid face :^)
>>54727304
Yes I am lazy
>>54727341
>dodging the questions
anon...
>>54727352
arrays in C decade to pointers every time they get passed to a function.
>>54727397
how do you know it's "not exactly inb4"?
>>54727397
Or used as a pointer.
>>54727333
>>54727397
That's what the >inb4 meant, dumbass
>>54727397
>decade to pointers
the fuck is that?
>>54727355
help
>>54727397
>arrays
>every time they get passed to a function
you can't pass arrays to a function
>>54727121
pass-by-reference cucks BTFO!
>>54727043
>Useless post. Filtered.
That's true, I'm retarded and didn't read gud. To be fair, though, IEEE is the problem in 99% of "Why doesn't this float/double calculation do what I expect?" posts.
>>54727433
>you can't pass arrays to a function
What a shitty language.
>>54727359
Jesus christ all I want to do when creating a trip isTrip paris;
paris.destiny = "Paris"';
And I apparently can't do that
>>54727481
Is this C or C++? If it's C++, use std::string. If it's C, choose another language or resign yourself to strcpy_s()
>>54727481strncpy (paris.destiny, "Paris", MAX);
Maybe "Paris" must be allocated to a static variable.
>>54727475
>I'm surprised by this
standard webshit, as usual
>>54727475
I recall that Ritchie said the entire thing was a fucking mistake.
>>54727481
try javascript, it was literally made for you
>>54727506
I can't.
This C assignment I'm supposed to make a "travel agency" with linked lists, queues, reading from files etc...
It's supposed to be able to choose a trip, cancel it, if full then go to a queue, list all trips to a destiny list all trips by a client, etc etc...
>>54727519
>C programmer
>can't take criticism
Enjoy your shrinking programming niche
>>54727343
>what is c++
>>54726833
I was told by /g/ that my project was shit so now I am working on a CLI anime folder organizer written in C; pls do not judge
>>54727551
>criticism
>from webshits
you're out of your element, "html programmer"
>>54727570
But all this does is organize my anime folder?
>>54727475
you didn't understand: YOU can't pass arrays to a function; competent programmers can
>>54727544
Use strncpy http://en.cppreference.com/w/c/string/byte/strncpy the page is C++ but the function is available to C99 and later.
>>54726833
>covert hime thread
I like this.
>>54726871
You don't.
There's literally no possible way to pass a reference to a variable.
>>54727557
its shit
>>54727509
Why the MAX?
>>54727598
you shouldn't give advice if you don't know what the fuck you're talking about
>>54727609
Its not ready yet, soon all you neckbeards will be organizing your anime folders automatically with my command line application
>>54727570
>you're out of your element, "html programmer"
And you STILL can't pass an array to a function.
>>54727622
What if you don't have any anime?
>>54727613
lel k what's your solution?
I mean if all destinations are known at link time sure you can just reference them.
>>54727622
What about my hentai? Does it look for tags?
>>54727630
of course I can, see >>54727596 for more information
>>54727596
>you didn't understand: YOU can't pass arrays to a function; competent programmers can
From Dennis Ritchie himself
" The rule, which survives in today's C, is that values of array type are converted, when they appear in expressions, into pointers to the first of the objects making up the array."
DENNIS FUCKING RITCHIE.
>>54727622
Organinzing? Can you explain how it works? I'm actually kinda excited.
>>54727640
memcpy
>>54727622
What language is it in? C? Why not Python?
>>54727610
To protect from writing outside of the array.
>>54727649
yes, and you're not competent enough to figure out how to work around that
>>54727557
Do "vec4(f_color, fade);"
>>54727433void PrintArray(int arrah[], int arrayElements) {
for(int i=0; i<arrayElements; i++) cout<<i<<"="<<arrah[i]<<"\n";
}
int main() {
int arrr[5]={1,2,3,4,5};
PrintArray(arrr, 5);
return 0;
}
Output:1
2
3
4
5
>>54727649
>DENNIS FUCKING RITCHIE.
he's a fag, err was*
>>54727622
Do you have this on Github yet?
>>54727660
How do you justify that above strncpy()?
>>54727695
that's a pointer, donkey
>>54727670
>yes, and you're not competent enough to figure out how to work around that
BTFO BY THE LANGUAGE DESIGNER HIMSELF.
work around to pass an array to a function, my fucking sides.
As I said you can't pass an array to a function in C, and Dennis Ritchie agrees with me.
>>54727707
it doesn't do stupid shit
What are you guys going to do when blo-lang (aka Jai) revolutionizes programming?
Stroustrup, Gosling, Rossum, Hejlsberg, and Alexandrescu are planning a group suicide for its release day.
>>54727258
bampu~
>>54727724
>agrees with me
he agrees that stupid shits should stick to css
>programming
>2016
Programming is being made obsolete under your feet and you crusty C autists are too stupid to realize it.
Nobody will be programming in 20 years from now, software development is over.
>>54727633
>>54727647
>>54727651
>>54727668
>>54727678
>>54727705
I am sorry guys this was a joke, I said that /g/ would not make fun of my project if it were a "command line application written in C" and the people I was talking to said /g/ was not this way. So while I am sorry I got you guys excited for nothing, I know have evidence that /g/ would not make fun of my project if it were an anime organizer and for that I thank you.
>>54727695
You passed a pointer and a length. That's differente tha an array, and it's retarded.
You should be able to do something like this.
void PrintArray(int arrah[]) {
for(int i=0; i< length(arrah) ; i++) {
printf ("This would the element %d of a true array, if C were a sane language", arrah[i]);
}
}
>>54727779
(¯―¯٥)
>>54727733
>revolutionizes programming?
sure, just like Go :^)
>>54727779
fag
>>54727838
>>54727852
I am sorry comrades.
>>54727835
>void PrintArray(int arrah[]) {
>int arrah[]
that's a pointer
>length(arrah)
length of pointer?
>>54727760
So butthurt dunning kruger programmer.
>>54727861
Nothing to be sorry for, I don't even care for your initial post, you just sound like a colossal faggot, that's all.
>>54727864
>length of pointer?
This is a fictional variant of C, in which you could pass arrays as arrays, and not as pointers.
>>54727886
It is okay, let out your anger that your anime folder will not be organized
>>54727899
Jokes on you, I've no anime folder :)
>>54726927
As long as they don't contain oxygen they will work fine. Easier to just use a nitrogen tank anyway.
>>54727892
implement it
>>54727909
We are the only two on /g/ who fall under this category
>>54726871
Using arrays, or by declaring the variable outside the function.
>>54727779
You had me so excited for the chance to organize my anime. My life had meaning again.
What am I supposed to do now?
>>54727934
That and the people who have bookmarks instead of downloading it all. ;D
>>54727953
I mean I guess we could start one if others are interested
>>54727869
>butthurt
I'm not the one mad about arrays :^)
>>54727912
They're purposefully doped with carbon dioxide (CO2), oxygen (O2), or a denaturing agent like Benzene, to discourage use as an exit bag.
Try it today with any tank.
You will feel like shit right away and have the instinctive urge to breathe or get fresh air, just like using a closed O2 bag.
function multiplier(factor) {
return function(number) {
return number * factor;
};
}
var twice = multiplier(2);
console.log(twice(5));
Why do closures exist?
Why not justvar multiply = function(number, factor) {
return number * factor;
};
console.log(multiply(5, 2));
>>54727983
>Why
masturbation purposes
>>54727975
Lab grade nitrogen is easy enough to get hold of though and that contained no oxygen.
>>54727923
I think it's called Pascal
>>54728006
>Pascal
>variant of C
I think you're retarded
>>54727969
>I'm not the one mad about arrays :^)
I think I'm the one who is right. Prove me wrong.
Pass an array to a function, I'll wait.
>>54727983
For when you need a function that multiples by two and a function that multiplies by five but don't want to define two nearly identical functions.
>>54728016
Semantically wise it's a sane C (the non OOP variants).
>>54728028
>so mad
>>54728050
>it's a sane C
yeah, that's why everyone uses it
>>54728043
javascript already supports anonymous function literals so you can write any one-off local inline functions you could want, why would you want to mix functions and data by creating functions that return functions?
It just seems completely backwards to me.
>>54728059
>so provably wrong
Stay mad C cuck
>>54728050
It's the other way around, C is an insane Pascal.
>>54727983
> mfw I have some coworkers that love to have functions that return functions
I'm okay with jabascript, but thing kills me a little everytime I see it.
You guys didn't tell me how nice object-oriented programming is in Lua. I was struggling with the idea that "best practice" in C++ is creating a separate header file.
This language is intuitive.
>>54728120
What's wrong with it? It seems like a cool idea to me. I'm sure they have good reasons to use it, right?
>>54728081
>yeah, that's why everyone uses it
C is pleb
Pascal is patrician
>>54727983
it called currying, can be pretty useful if used right.
>>54728110
>It's the other way around, C is an insane Pascal.
That's a better way to put it, actually
>>54728083
To avoid repeating yourself.
>>54728127
You're not even using Lua OOP at all, just a simple table. To achieve actual OOP you have to use meta tables.
>>54728083
>why would you want to mix functions and data by creating functions that return functions?
>object-oriented programmers actually believe this
>>54728107
>muh html
>>54728188
Lisp, masterrace you cuck.
If you don't know metaprogramming you'll be dead in 10 years.
>>54728171
Oh, I didn't realize that. I'm just looking at the Lua documentation, which is paginated; I didn't realize there was more to it!
>>54728130
yeah, that's why everyone uses it
>>54728206
>List
>masterrace
>dead since the 70s
top cuck
>>54728260
>yeah, that's why everyone uses it
>He doesn't know he's a sitting duck
Have fun debugging legacy applications, because that's your future.
Hey /dpt/, post yfw he uses a C array in C++
>>54728273
You are right, it's dead :^)
Which is the superior power function?
99% of programmers will get this wrong!function power(base, exp) {
if (!exp)
return 1;
else
return base * power(base, exp - 1);
}
function pow(base, exp) {
var result = 1
while (exp--)
result *= base;
return result;
}
>>54728279
>Pascal
>debugging legacy applications
what?
>>54728157
It's also more specific because Pascal predates C and it's [spoiler]better[/spoiler]
>>54728292
we know
>>54728330
>better
yeah, that's why everyone's using it
>>54728325
I'd say 2 but statistically that's probably wrong.
>the real answer is whatever's in your language's standard library
>>54728325
both of these are shit and O(n)
exponentiation should be O(logn)
read your fucking SICP
>>54728325
Directly from the bible
(define (fast-expt b n)
(cond ((= n 0) 1)
((even? n) (square (fast-expt b (/ n 2))))
(else (* b (fast-expt b (- n 1))))))
>>54728346
>yeah, that's why everyone's using it
Not an argument
>>54728346
The fact that people still use C is a historical accident.
>>54728349
>>54728325
Wait a sec.while (exp--)
You got me.
>>54728371
>totally better
sure
>>54726871
you have to wrap it in an objectfunction whatever(kys)
{
kys.val += 10;
}
var num = { val: 104 };
whatever(num);
console.log(num.val); //114
welcome to the wonderful world of javascript
>>54728380
yeah, so sad, they should be using javascript
>>54728387
C is what makes the botnet possible.
You are just a CIA nigger.
ITT: cucks rekt on C topics blame the grapes for being sour tho
>>54728402
They should be using non retarded systems languages, m8.
>>54728409
yeah, javascript is the tits tho, amirite, webshit?
>>54728419
You mean C cucks Rekt by Dennis Ritchie himself?
>>54728428
yeah, Go is great, isn't it, cssboy?
>>54728385
What's wrong with while(exp--)?
I just tested it and it seems to work fine.
>>54728440
>so sour
I know, right? dat pascal tho...
why does everything on /g/ devolve into a shitfest? Are people really that defensive/autistic about their preferred language?
>>54728458pow(5, 0) = ?
>>54728402
Clipper was the Jesus of programming languages and we never even knew it until it was too late, and it was gone.
>>54728448
>yeah, Go is great, isn't it, cssboy?
Go is not a systems language, despite some claims, you fucking CIA nigger.
>>54726833
How do I scale images in C/OpenGL?
>>54728485
should return 1
Why does haskell, a purely function language that shuns mutability, store programs in mutable character arrays?
>>54728526
Haskell is not pure.
>>54728469
BTFO by Ritchie himself
>Dat damage control
>>54728510
You're right, I'm dumb. Still, the real answer isimport mathetc.
>>54728492
>Go is not a systems language
no way!
>>54728551
>muh html tho
>>54728562
Marketing, amirite?
>>54726876
there's easier way, Just try to find a logic behind PHP
>>54727258
>python
absolutely savage
This javascript book is kinda shit.
I'm only 10 pages in, and it's asking how I would write an "isEven" function recursively.
Are all javascript books like this?
It's self-masturbatory as fuck.
>>54728547
It tries to be
How would I make a list from 1 to a sqrt of a number in haskell? I've tried but I always end up with a type error.listSqrt x = [1..(round . sqrt . fromIntegral x)]
is what I tried, but throws werid type errors
google image search "sicp"
>>54728762
>cp
how bout no
>>54728485
>asking how I would write an "isEven" function recursively.
Top kek
is this a valid use of javascript?
it sorta seems to use C strings, but at the same time, it sorta does't.function strlen(str)
{
var len = 0;
while (str[len++]);
return len - 1;
}
>>54726876
>tfw you need $101 just to have a peaceful death
string_length = None
def strlen( string ):
global string_length
if string_length == None:
string_length = 0
try:
string[ string_length ]
string_length += 1
except IndexError:
string_length -= 1
string_length_to_return = string_length
string_length = None
return string_length_to_return
return strlen( string )
>come back to /dpt/
>javascript everywhere
What the fucking hell happened?
>>54728734
What errors?
Holy fuck, you guys are fucking retarded.
Just please STOP talking about C. You have absolutely no fucking idea what you are talking about, do NOT talk about languages that you don't know.
Please just go back to talking about Java and C# on reddit.
>>54728932
Are the Java shitters at least gone?
>>54728942
>implying to know C
anon...
>>54728885
It's a lot easier if you have a car.
r8 oc
>>54728653
isEven 0 = true
isEven x = not . isEven $ x-1
>>54728971
This is not the right thread for this.
Just because she has a book, doesn't mean it's ok.
>>54728971
Terrible editing 6/10
I'm trying to learn C, but I'm finding the K&R book to be increasingly difficult (and maybe old?), what books do you recommend for me (that's my first programming language, and I don't want to learn something else instead)?
>>54728942
>You have absolutely no fucking idea what you are talking about,
Maybe it's you the one who has no idea.
> I know better than the language designer himself
Of course, anon, of course you do.
>>54728942
>Just please STOP talking about C. You have absolutely no fucking idea what you are talking about, do NOT talk about languages that you don't know.
I hope you have the spec memorized.
>>54728971
10/10 new /dpt/ OP image confirmed
>>54729009
There's only one book anyone needs to read about C
the standard, dumbass
we will fucking test you on it too
>>54729009
>he fell for the meme
at least learn python or something first geez
>>54728971
It's shit.
>>54729009
>I'm trying to learn C, but I'm finding the K&R book to be increasingly difficult (and maybe old?),what books do you recommend for me (that's my first programming language, and I don't want to learn something else instead)?
C programming a modern approach is better.
But if you are learning programiming for the first time, you should learn the concepts first, and then the language.
I don't know if starting with C is a good idea though.
>>54729009
K&R is written for programmers who already know how to program, not kids who don't know what a for loop is.
Go read something else then come back.
>>54729042
It's not even freely available, and it's meant as a reference for those who are already experienced, and just want to... idk, make a C compiler or something
>>54729048
No can do.
>>54729067
I'm not an absolute beginner, I know what a for loop is.
(define (iter x) (begin (display x) (display " ") (cond (< x 10) (iter (+ x 1)))))
what am i doing wrong? it just prints 1 and 10 when i do (iter 1) but i want it to print every number between 1 and 10
>>54729051
that criticism isn't very constructive
>>54729088
Then you should have no problem with K&R.
Where are you having trouble, anon?
>>54729100
>what am i doing wrong?
using a dead language
>>54729110
nothing good can be constructed from what you did
>>54729117
I found myself unable to do the exercices in the book. I did the ones on the first few chapters, but then I couldn't.
>>54728853
Since Javascript permits that syntax for accessing individual characters in Javascript strings, why wouldn't be okay? It has nothing to do with C strings.
It's a bit weird not to just to str.length, though.
>>54729144
>a student of life
>>54729143
Post the exercise.
>>54729100
this works
(define (iter x)
(if (<= x 10)
(cons x (iter (+ x 1)))
'()))
>>54729179
it's to make a program in scheme that counts from 1 to 10. this is what i have so far >>54729100
>>54729182
i want it to print it though. i want output to be 1 2 3 4 5 6 7 8 9 10 if you do (iter 1)
>>54729190
I thought you were doing K&R?
So /dpt/, what's your current project?
>>54729179Exercise 1-20. Write a program detab that replaces tabs in the input with the proper number
of blanks to space to the next tab stop. Assume a fixed set of tab stops, say every n columns.
Should n be a variable or a symbolic parameter?
Exercise 1-21. Write a program entab that replaces strings of blanks by the minimum
number of tabs and blanks to achieve the same spacing. Use the same tab stops as for detab .
When either a tab or a single blank would suffice to reach a tab stop, which should be given
preference?
Exercise 1-22. Write a program to ``fold'
'long input lines into two or more shorter lines after
the last non-blank character that occurs before the n-th column of input. Make sure your
program does something intelligent with very long lines, and if there are no blanks or tabs
before the specified column.
Exercise 1-23. Write a program to remove all comments from a C program. Don'
t forget to
handle quoted strings and character constants properly. C comments don'
t nest.
Exercise 1-24. Write a program to check a C program for rudimentary syntax errors like
unmatched parentheses, brackets and braces. Don'
t forget about quotes, both single and
double, escape sequences, and comments. (This program is hard if you do it in full
generality.)
>>54729211
it does on my REPL
otherwise I think you could do a (display (iter 1))
>>54729100
You're using a begin, for one thing. It's not necessary when you're creating a new procedure.
Also, the problem is the cond. A cond form looks like(cond ((predicate0?) ...)
...)
You need all those parentheses, which you were missing. Consider using when if there's only one condition you're testing for.
>>54729245
really?
this is just playing with C stringsif (str[i] == '\t') fprintf(stdout, " ");
>>54729262
thanks. i keep fucking up cond and i keep trying to memorize the right form and think i get it
>>54729247
idk i'm just doing fib now, i know its creating the recursion its just not printing all the info
>>54729242
Android app for erowid.org
>>54728400
manigga
> I salute you comrade SR JS dev
>>54729211
This is what you want I think
(define (iter x)
(if(<= x 10)
(begin
(display x)
(display " ")
(iter (+ x 1)))
(newline)))
But now you have to generalize it.
Write a function (count-iter start end) that counts from start to end.
(count 2 7) should print
2 3 4 5 6 7
>>54729268
fprintf hasn't been discussed up to this point.for (i = 0; i < TABSTOP; i++) {
printf(" ");
}
>>54726999
>>54727606
>>54727945
Pahjeet, Sandeep and Kishore
>>54729242
SDL/Qt "competitor"
>>54729291
>idk i'm just doing fib now, i know its creating the recursion its just not printing all the info
You are doing the SICP exercises by any chance? Don't worry about the display function right now, if you cons a list it automatically appears on the REPL.
Is R a meme or is it actually useful for data profiling/mining/stats?
>>54729367
i'm not doing an exercise right now. right now i'm just trying to do some simple programs in scheme to get the hang of it
(define (fibIter sum current target) (if (< current sum) (fibIter (+ sum current) (+ current 1) target) (sum)))
(define (fib x) (fibIter 1 1 x))
what am i doing wrong? it tells me
application: not a procedure;
expected a procedure that can be applied to arguments
given: 1
arguments...: [none]
>>54729458
That last (sum) is actually the number 1. And 1 is a literal, not a procedure.
>>54729458
You are invoking sum, sum it's not a proceure, drop the parentheses
>>54729505
what do i do instead then? i want it to return it
>>54729505
>>54729517
removing the parenthesis fixed it (still got a problem where its return 1 always but im sure thats just me being stupid) but i'm not sure why
i don't get what's happening
>>54729684
how is fibiter iteration if it's called within itself?
>>54729715
how isn't it?
>>54729684
I think you need memoization for iterative fibonacci. Iterative fibonacci is less straightforward than the recursive one. Have you tried writing the recursive before?
>code logistics
>>54729715
what
>>54729722
because it's recursion?
>>54729684
Open it in DrRacket. There might be some better information given to you.
>>54729727(define (fib x) (if (< x 3) 1 (+ (fib (- x 2)) (fib (- x 1)))))
ok thats the recursive, but i want the iterative to get working. i don't see why you would need memoization if you're working upwards from the bottom to the top
>>54729749
the process is still iterative. you can stop it at any point and look at the variables, and then give it the variables again and it will resume
>>54729749
>>54729727
calling a function from within itself doesn't necessarily mean it's not iterative. Iterative functions can be expressed through recursive calls, so long as those calls are stateful.
if the function arguments include everything necessary to describe the state, it's stateful/iterative.
you can see this in the example because every call includes {fib1 fib2 current target}
>>54728496
you need to use a scalar IIRC
>>54726833
Is it possible to make a fast physics engine in OpenGL in java? do I have to do it in C to get good performance?
>>54730021
Yeah, if you do all the work on your graphics card
>>54726871
var variables are global anyway, so just call it
why would you pass by reference anyway, immutable is based
Sorry for off topic, but don't know where else I could for insight.
Is a programming Cert useful for getting a job?
My school has certs for C++, Java, Visual Basic or Object Oriented Design and programming.
I was thinking of doing the C++ certs
>>54727983
composition, partial application
fizzbuzz progress coming along well
>>54730096
Keep up the good work, anon.
>>54728734
so it works if it's floating point?
Anyone here do freelancing? Is UpWork the only pisshole around right now or is there some others that popped up? Got laid off yesterday so i'm going to dig for what I can get for now.
>>54730077
don't know anyone who has programming certs, thought you mostly get it for the networking
I'm thinking of how to properly implement a set of objects for a game.
See, generally speaking, I was thinking to use abstract classes, but some sites indicate an interface might be better. However, my objects would BOTH store data AND have different functions depending on the specific item.
I guess a good example is:
All of these might be found in the inventory:
>helmet
>magic amulet
>spellbook
>hammer
Each of these items can do things like be examined, be dropped, be moved, etc.
However:
helmet can
>be worn/equipped
spellbook can:
>be worn/equipped
>be read
magic amulet can:
>be worn/equipped
>be activated
These are generic examples, but what would be the best way to do this, such that their display interface would be the same and require the least code?
If I used abstract classes, I'd need to make it so they all have a value for things like:
>wearable
>pickuppable
>droppable
>readable
>activatable
and other such actions
However, if I used interfaces, I'd need to come up with some sort of (user) interface that lists the necessary menu options, even if:
>spellbook implements Readable, Pickuppable, Droppable, Wearable
>helmet implements Wearable, Pickuppable, Droppable
>hammer implements Pickuppable, Useable, Droppable
etc.
So, in a case like this, which would make the most sense? Abstract class inheritance with Boolean values for different aspects, each defaulting to FALSE in the super?
Or less-deep abstraction with multiple Interfaces used for different items depending on their intended use, and then some kind of (user) interface that has to determine what (software) Interfaces are applicable and display the necessary options?
Of course, there's a combination method somewhere along the line, but I'd like a few opinions on how I might proceed with this.
https://wiki.installgentoo.com/index.php/Structure_and_Interpretation_of_Computer_Programs
do people hate sicp because they don't get it?
>>54730268
you can always use a table of pointers
nullptr = no associated function
>>54728734
this what you trying to do? (not haskell)let listSqrt n = [1 .. n |> (float >> sqrt >> round >> int)]
does round give an int? is x piped in?
>>54730334
I don't know of anybody that hates SICP.
>>54730358
>Structure and Interpretation of Computer Programs, Second Edition, or SICP for short, is a cruel and twisted tome full of useless conjecture and self-mastubatory academia, most of which is written in a hopelessly abstract language deeply entrenched in 1970's MIT academia that has zero real-world application.
the only person i can think of that would write this would be a rank novice trying to teach himself from it, but even then, it seems to be a pretty standard introduction to computer science..
>>54730374
What, too deep for you?
>>54730400
are you retarded? it's from the install gentoo page i linked
>>54730354
hmmm, that's true. But, unless I'm misunderstanding you, that's really only playing with the semantics of the objects.
You're saying to go with Abstract Classes, then? And store a pointer table in the super, then each subclass populates the table as its object type allows?
Also, the game I'm talking about would be in Java, b/c online, so I'd have to use a table of something else, since there's no direct access to pointers.
(Unless I decide to try a single-player one first, using a similar concept)
>>54730583
Actually, that's not a bad idea, because I could have a display function in the super that just reads the list of whatever and adds the options as necessary
Also, might not need to go quite as deep
Can I use a regular void pointer to pass a function pointer around, or is that undefined behavior?
Because my program seems to work regardless.int main(void)
{
char arr[] = "RTBBDRR";
void *fp = &increment_one; /* void (*fp)() */
foreach(arr, fp);
printf("%s\n", arr);
}
$ ./test
SUCCESS
>>54730768
perfectly normal
Working on an audio decoding/encoding library. I'm using libsoxr-lsr to resample audio. The documentation states that the output audio might exceed [-1.0, 1.0]. As far as I can tell, my options are to either clip any samples that exceed the range, or preprocess the entire stream to find the maximum absolute sample value and then normalize with it.
Is there another way?
>>54730768
Techinically not necessarily guaranteed to work according to DA STANDARD, but both Windows and Posix requires it to always work because their shared library load function pointer both returns void pointers.
Anyone else work for big tech companies? I started at Facebook recently. So far it's been great!
>>54730924
Don't you have a Clinton rally to attend? Don't you have some citizens to betray? Cuck off.
>>54730921
>not guaranteed to work
What makes you say this? Void* must store any pointer and functions must have callable addresses
>>54730909
Not really. If you store your data as floats, you can have it go over, but clipping is generally what you want to do. When working with audio, especially digital, you want give it some room. Plus clipping gives you more noticeable audio feedback that you've gone over.
>>54730924
No, all my CS friends have, but I've always been to lazy to look for work. Now that I'm still in college, I'm planning on looking for some for next year, or even better, remote work so that I can pay my bills and go to school at the same time.
>>54730924
I'd have to fuck up ROYALLY to even CONSIDER working for Facebook... and by that point, suicide would probably be higher on the list.
Holy shit, m8, what is wrong with you?
def foo(a=[]):
a.append(5)
return a>>> foo()
[5]
>>> foo()
[5, 5]
>>> foo()
[5, 5, 5]
>>> foo()
[5, 5, 5, 5]
explain yourselves, pythonfags
>>54730987
>default value is a reference
kek, but that has some amusing uses
def counter(i=0): i = i + 1; return i
>>54730941
Converting to and from a void pointer is only well defined for object pointers.
Function pointers be bigger for example - in which case it would be a lossy conversion.
>>54731022
How could function pointers be bigger? Void* is guaranteed to store any pointer, I'd assume that includes function pointers
>>54731033
oop, didn't realise it was specifically non-function pointers
>>54728120
So you're too retarded to even be a web developer?
>>54729684
>ok thats the recursive, but i want the iterative to get working. i don't see why you would need memoization if you're working upwards from the bottom to the top
A working solution
(define (fibIter a b n)
( if (<= n 1)
b
(fibIter b (+ a b) (- n 1))))
(define (fib x)
(if (= x 0)
0
(fibIter 0 1 x)))
(trace fibIter)
trace is a useful function for debugging
>>54728932
>>54730355
Why the fuck are you guys using floating points?upTillSqrt :: Int -> [Int]
upTillSqrt x = takeWhile (\y -> y * y < x) [1..]
main = print $ upTillSqrt 50
>>54730987
Every function call, a is referencing an array that has been appended. Keeping state is useful for things like caching
>>54731004
No it's because [] is a mutable data type, your counter wouldn't work
>>54730933
I voted for Sanders and will be voting for Trump in the general
>>54730962
get an internship. Best decision I ever made
>>54730966
They pay me $200k. Not exactly sure what you mean by "whats wrong with you?"
>>54730944
Okay, good to know. I'm pretty new to this stuff so I'm often unsure what SOP is. Thanks1
I'm only using floats as an intermediate format (although some encoders like Opus take floats which Is nice).
>>54731127
>useful for caching
Yeah but not as a default.
Default should be immutable.
>>54731131
>They pay me $200k. Not exactly sure what you mean by "whats wrong with you?"
They pay you $200k to further bring ruination to this already metrically fucked world.
I mean, don't get me wrong, the SITE is actually pretty good, for the most part. Bit restrictive, but not too bad.
The MANAGEMENT, however, is dirt and scum... dirt-scum? dircum? Their use of personal data is, at best, horrendous. And their high-level data-mining practices are, for lack of better words, an atrocity
If Facebook wasn't such an absolutely disgusting COMPANY, I'd actually have been happy to work for their WEBSITE. But, they are a foul and loathsome cockroach stampeding across the face of the interwebz.
BTW, for $200k/yr, what do you do?
>>54726833
Writing a lecture about functions.
It's tough; last week, I wrote a 15 minute lecture/presentation about web development, which took me over two days.
This time, I have to make TWO 20-minute presentations in just TWO days.
Eughhhhh
I'm nearly finished with my first lecture though, so right on schedule, and I managed to sneak some PicoLisp into my slides :^)
>>54731157
lists should be mutable? they wouldn't be much use
>>54731183
>BTW, for $200k/yr, what do you do?
makes up stories on the internet
>>54731197
What?
>>54729302
Just so you know, that isn't literally passing a value by reference. It's passing the address of an object.
The code gets done what you need, but it isn't a perfect translation to C/C++ because ultimately you need to access it with something.value
>>54731183
Im an engineer
>>54731201
Nope. See this: https://www.dropbox.com/s/ges24saz61d7e4h/2016%20Full-time%20and%20Intern%20Offers.xlsx?dl=0
NEW THREAD!
>>54731233
>>54731228
>I'm an engineer
What do you engineer?
>Facial-recognition and better auto-tagging (fuck you)
>Refactoring code (The site is getting fucka [more than hella] slow, so I hope you're good)
>Asynchronous code (the "online for the chats has always been glitchy")
>targeted advertising system (fuck you)
>data-mining (fuck you)
>game/app implementation (God dammit, what the fuck else do I need to block notifications for?)
>more automatic loading for the feed (I don't even default to my feed anymore, because if I leave the tab unused for like an hour, it loads like 5,000,000,000,000 things and crashes my computer)
>hardware/networking (Cool, sounds fun)
>>54731286
none of the things you listed lol
>>54731296
Diversity hire?
>>54731300
Im a white heterosexual male so I guess at Facebook I AM a diversity hire since Im in the minority haha
>>54731296
Do you write code for them?
Do you have to do with their datacenter hardware?
Or is it that fucking Flappy Bird clone to broadcast Internet to Africa? (That fucking quadcopter thing)
>If you work for that last thing, that's about the only thing I approve of them doing.
Why so secretive, m8? I haven't asked for defining specifics. What, is it the new Face-stapo Secret Police to take over the world?
>>54731323
>at Facebook
Literally cancer.
I bet you write algorithms to suppress dissenting (i.e. not liberal) opinions.
>>54731336
Ya Im a software engineer so all I do is write code and sit in meetings. No hardware
Lol internet.org is so shitty
I work on Javascript infrastructure. I'm a contributor to React.js
>>54731347
I'm actually politically moderate, myself. As I said above, I'll be voting for Trump in the general election (unless Sanders somehow makes it that far)
>>54731367
>unless Sanders
The fact you would have voted for Sanders makes you far left, not a moderate.
>>54731393
I would vote for him for reasons other than policy. I dont agree with him very much, but I hope that if he wins it would demonstrate that the establishment is dead and hopefully lead to libertarian leaders in the future.
>>54731423
>Sanders
>Libertarian
>>54731357
Eh, that's okay I guess.
I don't know much about internet.org, but it seems like it's trying to do something.
Is it non-profit?
>>54731367
Wait, wait, wait....
>I'll be voting for Trump
>unless Sanders
That's not "moderate", dued.
Trump is close to moderate, but Bernie is so far Left, he's dropping sickles from his goddam pockets with each step
I'm, personally, a political disaster, EXTREME economic conservatism, socially-moderate, and a globalist (non-nationalistic). I also fall under moderate militarism and moderate-high imperialism.
So, if there's one thing I know, it's that Bernie Sanders is ANYTHING BUT "moderate"
>>54731439
>globalist
I hate you and everything you stand for (Israel)
>>54731439
Btw, Facebook doesnt censor conservative content. What happens is libtards report the content over and over again until it's auto removed. Facebook engineers want nothing more than to get you and everyone else to look at ads and we would be shooting ourselves in the foot if we blocked an entire segment of the potential market. We want conservatives because we want money. Money transcends policy
>>54731455
>I hate you and everything you stand for (Israel)
First of all, I said nothing about Israel, but we can't become a Kardashev Class 3 or higher (or even Class 1) civilization if we don't put the species before stupid boundaries.
Also, we can't live in a society with strict splits until we control multiple worlds. Of course, by then, you can lock down planets, but most importantly, you need to create Confederation (union by choice, NOT by requirement).
Essentially, free-flow of goods, capital, technology, (and, with acceptable limits,) people. Boundaries would essentially be enforced only as group-defense.
I usually call it something like an interplanetary government for hire. (although on Earth-only level, a government for hire)
>>54731367
>I'll be voting for Trump in the general election (unless Sanders somehow makes it that far)
You seem very confused
>>54731520
>stupid boundaries
Which boundaries? You clearly aren't talking about racial, ethnic or geopolitical boundaries.
>>54730768
>Can I use a regular void pointer to pass a function pointer around, or is that undefined behavior?
Undefined behaviour in standard C.
Defined behaviour in POSIX C.
>>54731520
Tell me you are joking.
>>54731537
boundaries related to internal politics, mostly.
They're fucked up right now.
morons can gain power over select groups, whereas the best suited have trouble doing so. Rules are decided by unqualified morons, as well.
Laws are generated for monetary purposes rather than exclusive protection.
Essentially, the boundary between intellectuals and fucktards.
The government can be as big or as small as it needs to in a given situation, but it MUST be run only by those who are qualified, have decisions made only by those who understand the related issues, be done with a Utilitarian view (for the good of the most possible, with harm to the fewest possible (if capable, none at all)).
My actual governmental style is: Technocratic Utilitarian Meritocracy.
The PEOPLE don't know what's the best choice, so let's put the experts in charge.
Remove the media from politics.
Boundaries between nations would be monitored by calculated decisions.
Personal lives are essentially ignored (we don't care what you do, as long as you don't fuck with someone else)
Justice becomes a matter of fact and purpose, NOT legalese and bullshit. You are guilty if the cameras show you being guilty. Your level of guilt, however, is determined by purpose (self-defense overrides, etc.).
Groups of people from many countries put their money towards a common protectorate and administration.
That's the essential gist of it: multinational/interplanetary organizations designed to push up the standards of society through protection and better management.
But, a Libertarian view for individuals (as mentioned earlier. As long you do what's necessary, I couldn't care less if you worked for ABC, Inc., opened your own store, or sold shit on the street corner, or worked from home, or were so rich you don't need to work). As long as what you do primarily only affects YOU, not someone else
>>54731674
>I don't understand human nature, the post.
You fall on the spectrum, right?
>>54731674
>yeah my system of running the country is basically like this: i know better than everyone else
>>54731707
>>I don't understand human nature, the post.
No, I understand it, and it's broken. It also, mostly, doesn't apply to me, because:
>You fall on the spectrum, right?
There is a good chance of this. At least according to what people tell me.
No diagnosis, though.
However, it's hard to tell whether I've basically transcended human nature or an just a fucking Aspie.
I also generally don't have emotions, and my definition of "having fun" or "being happy" is Grey-Goo level shit, such as
>generating more experiences is fun
>increases in memorized data makes me happy
>limitations on how much information I can acquire makes me sad
So, either I'm way too next-level for contemporary human society OR I'm a literal Autist, yes.
But, because humans are so stupid, I welcome our ASI android overlords.
>>54731811
>No, I understand it, and it's broken.
Then why are you proposing political solutions that will never work?
>There is a good chance of this. At least according to what people tell me.
Why am I not surprised?
>However, it's hard to tell whether I've basically transcended human nature or an just a fucking Aspie.
Aspie.
>I also generally don't have emotions, and my definition of "having fun" or "being happy" is Grey-Goo level shit, such as
>>generating more experiences is fun
>>increases in memorized data makes me happy
>>limitations on how much information I can acquire makes me sad
>So, either I'm way too next-level for contemporary human society OR I'm a literal Autist, yes.
>But, because humans are so stupid, I welcome our ASI android overlords.
Get a diagnosis asap.
>>54731811
>human nature is broken
By what standard?
>>54731881
>Then why are you proposing political solutions that will never work?
It would work... if "The People" don't have a real say, and only the experts do.
>Aspie.
>Get a diagnosis asap.
If only it was that simple...
Besides, what benefit do I gain from having this diagnosis? I can say I'm Autistic when I argue on the Internet?
There's no real purpose for it other than confirmation. That much I can hold off knowing for a bit.
Right now, there's no specific benefit to it, and if I temporarily need some other kind of position next year before one of my projects starts bringing in money, I don't particularly think it'd look good.
Besides, in public, I can pretty easily pretend to be normal. You'd only catch it if you started talking about one of my scientific interests or tried to tell me a joke/something with an undefined nuance, and I'm sitting there looking at you like "What the fuck does that even mean?".
>>54731961
>It would work... if "The People" don't have a real say, and only the experts do.
Oh God, the "government of philosophers" argument.
>If only it was that simple...
>Besides, what benefit do I gain from having this diagnosis? I can say I'm Autistic when I argue on the Internet
>There's no real purpose for it other than confirmation. That much I can hold off knowing for a bit.
Maybe you can get some help / calibrate your behaviour?
>>54731961
The problem isn't autism, it's narcissism
You think you're more intelligent than you actually are
>>54731901
It's too random.
Randomness is good to some extent, like deciding what to eat for lunch, or maybe suddenly running out to the mall instead of sitting in your house for the 12th day straight, but it's bad for heavy decision-making.
Furthermore, people are too self-interested, and moreover, those self-interests ONLY benefit themselves. My self-interests are moving to space, learning quantum-based psychic powers (see below, don't stop reading yet), and having new and advanced technology.
Those benefitted are:
Space: EVERYONE
Telekinetic abilities: The entire study of quantum physics, and because it's based on quantum computing, that too. Plus, EVERYONE, since the abilities would be useful across the board*
>Yes, I'm fully aware you'll use this one to conclude Autism, but my theories and methodologies are based on hard scientific evidence. For instance:
http://jcer.com/index.php/jcj/article/view/99/101
New computers and other technology: EVERYONE
*For reference, I'm using colloquial terms so you know what they DO. Telekinesis would be "Applied Programmatic Eigenstate Collapse". And similarly, what many people call "Magic[k]" would be "Applied Alignment-Programmatic Eigenvector Collapse-State Catalysis"
Essentially thinking patterns developed by intensive methodology to create alignment-changing field-vectors propagated outward from start-point thoughts beyond the body, by pseudo-programmatically-defined alteration of the eigenstates they pass through
>>54732072
>it's too random
You mean it's too complex
>people are too self-interested
Why is this bad?
>quantum based psychic powers
Don't exist, even if a way to control wavefunction collapse existed you'd need a machine to do it
>>54732032
>Oh God, the "government of philosophers" argument.
Not really... I mean, philosophy has a good position when it comes to right and wrong, but it has little to do with decision-making.
It doesn't even need to be people, it could be a computer. As long as it's decisions are made using algorithms and interpretation instead of gut feelings or personal interests, unless your personal interests are also in line with a better society.
>Maybe you can get some help / calibrate your behaviour?
Why? I mean, I held a 7-month job as a cashier, and I was one of the best salespeople they had, because I only looked at customers as algorithms. Playing different scenario-specific arguments to get them to buy stuff, etc. Playing on emotions. Analyzing likelihood of individuals to make donations based on expressions, tonality, age, and whether they have kids (and their interactions with them)
I could easily make a living in the business world, but I'd rather do it in the computer world, because I don't really like dealing with live people.
>>54732152
>philosophy has a good position
>it has little to do with decision-making
>algorithms and interpretation instead of gut feelings or personal interests
You literally understand nothing.
You need to grow up, you sound too young for this site.
>>54732138
>Don't exist
There's far more evidence I COULD throw at you, but I doubt you'd go over it. If you like, though, he's Dr. Rupert Sheldrake's proof of natural telepathy:
https://www.youtube.com/watch?v=JnA8GUtXpXY&index=2&list=PLQbq5VCCYTq1N82-EhVOhl4EuxTqOyFMQ
That includes the playlist link, so feel free to also see the one where he proved mediums and ghosts.
>even if a way to control wavefunction collapse existed you'd need a machine to do it
That jcer article I linked earlier shows one way to force it with a machine, which isn't necessarily the point.
However, the brain is nothing more than a quantum computer anyway. All you need to do is find the way individual brains cause collapse through individual testing and then train the students using their respective methods derived from the data.
This article right here talks about how the brain can be directly affected by quantum vibrations, so it would make sense that the inverse can be done if handled correctly. However, it would NOT make sense to say the inverse CAN'T happen:
http://phys.org/news/2014-01-discovery-quantum-vibrations-microtubules-corroborates.html
Also, here's a link of physicists already uncollapsing qubits:
http://phys.org/news/2013-11-physicists-uncollapse-partially-collapsed-qubit.html
>>54732210
The brain isn't a quantum computer, it's a neural network with insignificant quantum effects.
Forcibly collapsing something is easy, controlling the collapse is not. Wavefunction collapse is one way as far as we know, so it does not make sense to assume an inverse - you certainly can't uncollapse a wavefunction.
>>54727355
use .isoformat
>>54727359
man memmove
who low level python here?
I am working on a forth-like language implemented on the CPython vm: https://github.com/llllllllll/phorth
>>54727121
>hurr
>>54732236
>The brain isn't a quantum computer, it's a neural network with insignificant quantum effects.
It's an antenna that is tuned to a specific alignment of information vectors that would otherwise float about.
Everything is made of the same energy, and a human brain is nothing more than an aligned macroscopic energy condensate, whose general structure acts as an antenna and an input processor, but is also capable of generating output signals which have energy (and therefore, alignment) effects. Calculating the alignment effects into a proper waveform collapse state is what would need to be researched.
>you certainly can't uncollapse a wavefunction.
I'm not saying you uncollapse the function, I'm saying you can determine its states by its collapse data output and then replicating initial state vectors to alter the flow of other similar waveforms.
If you know how one electron decoupling from one axon to produce an action potential alters alignment states around it, you can create a programmatic thought-pattern alignment to create propagating wavefunctions that create the same superpositional collapse-state events.
And I'm not saying that most people will NOT need to start with an assistive machine to help them direct such collapse-state catalytic action-potential pattern vectors, but I'm saying that it CAN be done, as long as you are aware of the waveform collapses you create with certain patterns of energy release
>>54732327
>It's an antenna that is tuned to a specific alignment of information vectors that would otherwise float about.
This is bullshit.
>>54731961
autismbux dumbass
>>54731811
*tips*
also >>>/adv/
>>54732333
Well, everything is information, and more precisely quantum alignment, so it would.
The Orch OR article I posted above shows this, that a brain is basically an antenna for quantum input. You can even change the way a person thinks with the right waveform input.
Ergo, the brain is nothing more than, essentially, a CPU and main memory. The hard drive a vector alignment field.
It's LONG been postulated that you could, with a powerful enough computer, reconstruct a consciousness or even a physical body, by calculating how the changes in states occur throughout and after a lifetime. This would occur because thermodynamics doesn't allow for information loss, such as mass, energy, and charge.
It's the alignments within energy quanta that create mass and charge, or maybe you could even say it's the charge that creates the mass and energy (charge being used as alignment in this case, such as color charge and half-spins, whatever)
The point is, since the overall charge does NOT disappear, and furthermore, such things as quantum entanglement can even be used on macroscopic scales, as the jcer article showed or any experiment with quantum tunneling technology (levitation), it becomes clear that alignment fields are the primary way in which data actually exists.
I use this next line, sort-of metaphorically, sort-of not:
>matter is the idea of itself
More correctly, matter would be the data developed by intermingling quantum alignment fields after a collapse-state event, condensation of information.
I usually try to avoid going all the way to my consciousness argument, but consciousness is merely a data field that either has or hasn't been tapped by an input device.
>>54732444
>everything is information
No, it isn't
>>54732458
Everything is energy, and energy is data. Data becomes information. So, yes it is.
It's like all the tiny qubits that have become aligned in such a way that they generally follow a standard pattern.
>>54732498
>energy is data
No, it isn't, and the two aren't exchangeable.
>>54732516
clearly, we're referring to data and information in 2 different ways here.
I'm referring to it as a type of base-level resource which, through some form of computation, is capable of being understood.
Not: one qubit holds the idea "I like the color green".
More like: This qubit is linked to that qubit is linked [...] and the entire array structure means the human equivalent of "I like the color green"
It may take millions of qubits, but the string of qubits is an idea, information, or otherwise data.
There have already been tests done on particles that don't even "exist" at the same time, but which have been entangled. And the end-particle reacts to input on the first particle, even when the center particles have "disappeared"
qubits are basically pointers with a little more. And when they link, it's not that easy to completely UNlink them.
>>54732552
You haven't addressed what I said
>>54732614
Yes, I did.
The energy is data in that its existence in any specific state can be understood if a calculation is used.
In other words, say the energy of electricity. Depending on the architecture of a system, a higher voltage (difference in charges) can be a 1 or a 0.
The "calculation" is done by the machine assigning that value when it receives a high or low voltage.
For quantum data, different brains and other stuff interpret the data differently and store it as pseudo-raw signals back into the field, different types of qubits. However, by the high variability of qubits, you can store more than just a 0 or a 1.
That's why humans do NOT necessarily see the same colors the same way, you could say.
"I like the color green" may mean something totally different for you than it does for me. The body is processing the data of green light and turning it into raw qubits for storage.
Once it's stored, the qubits mean something different. To something with no interface, it's just random signals, but to a brain, it means links to known alignment patterns, which may be millions of qubits long defining "green", "like", and "I"
The field, in itself, from its own processing ability knows what it means, but for each person, it's very different.
The data and energy exchange is based on a calculated result, just like how a computer stores 1s and 0s, but it needs a CPU to make sense of them.
But the 1s and 0s on their own have meaning, just indecipherable meaning without something to determine its purpose.
The energy is either the cause of or the effect of the data, but it also is stored IN the data.
>TL;DR:
1 proton can be data if you know how to handle a proton.
1 burst of radiation FROM a decaying proton is ALSO data, in that if you know how a proton decays, you can determine information about that proton.
The charge will also intermingle in specific ways after the decay, because of what it was.
And the proton could also be reconstructed from that same energy
>>54732784
No, you didn't. Energy isn't data. You can interpret energy as data, and you can have data about energy, but energy isn't data. Energy isn't information, either.
>>54728885
>>54726876
>>54728969
ur paying for the premium of no pain. if you really are ready to go, getting 100 shrekels shouldn't be a problem and/or a car. either you can dumb ur bank account or if you don't have one just steal some shit and sell it like a nigger. if you plan it right you could go out in the car.
i'm not endorsing nigger type behavior but i'm just saying it's not hard to get money or cars if one is sneaky. ofc you need a card to order shit offline so if you can use a bank debit without stealing that is advised. otherwise you can get pre-paid cards at most bigbox shops.