flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > Heap > sleepsleep's vitally important things

Goto page Previous  1, 2, 3 ... 124, 125, 126, 127  Next
Author
Thread Post new topic Reply to topic
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 15241
Location: 1I/ʻOumuamua

Furs wrote:
I obviously know what you meant ...

Then that is all that matters.
Post 21 Oct 2017, 02:56
View user's profile Send private message Visit poster's website Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 6951
Location: ˛                              ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣ Posts: 6699
someone quite famous die recently, maybe few days ago,

it actually prompts me to ask myself,

am i living, or i am just slaving myself on earth?

if we look at programming and creating a program,

1. write a program to perform as intended,
2. modified the existing program, upgrade it to support new functions,
3. instead of modify and changing existing program, write a new one,

i consider the second one to be harder,
then you see why death makes sense, because they don't know how to modify us to live longer,

destroying is always a short cut, because changing and upgrading is harder than destroying,

armed with such understanding, i actually started to see life in another way, appreciate more of what we are facing right now, regardless of positive or negative,

because living a real life might means having no worry of the gain and losses in the following changes,

after all, we came with nothing and gone with nothing,
Post 21 Oct 2017, 06:13
View user's profile Send private message Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 6951
Location: ˛                              ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣ Posts: 6699
we kowtow and respect those with great cars, mega mansion, high position, nice suits, elegant appearance, huge factories, great numbers of chained stores, etc

basically, if they got what we don't have, and we assume they could benefit us, we give them extra kowtow, regardless of their values or how they practice their businesses, relationship, and etc,

when we saw beggars or person whom we perceived won't give us any benefits, or those we felt less than us, we immediately found some kinda negative perception, we despise them almost in the next second,

we feel others is dirty when we don't realize we too ~ are carrying shits,

there are cruel people, and those who would bully everywhere they go as long as the output suite them, and we would befriend them as long as they got monies and benefit us,

what actually happened to us,?
Post 21 Oct 2017, 08:47
View user's profile Send private message Reply with quote
Furs



Joined: 04 Mar 2016
Posts: 868

revolution wrote:
Then that is all that matters.

Nah, I wasn't arguing with your point (since i understood what you meant) but I just pointed out that what you said doesn't make much sense and you should've said it the other way around. Wink
Post 21 Oct 2017, 12:47
View user's profile Send private message Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 6951
Location: ˛                              ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣ Posts: 6699
why we dont have expanding based learning?

let say we want to set a variable to hold particular value,

1. we need a way to declare variable,
2. mechanism or standard to set something into something
3. retrieve,

var myVarName 32 (assume we need type)
var myVarName 64

why not declare a type,

32:
myVarName, myAnotherVarName, andSoOn,
64:
var641, var642,

(all will be set to 0 by compiler / assembler before using)

a variable will have almost infinite changes of value, but from 0 to maxofthattype, and since memory and disk is cheap nowadays,

why not we make all declared variable automatically as array with will have its value from 0 to maxof it allows,

eg.

myVarName[22]; will automatically make myVarName holding 22,

string will have different treatment, but basically, all string will initialized with using the same ways as var above,

4x100chars:
myString1

8.100chars:
myString2

16cx100:

myString1["this is how i push string into this variable"];

to call variable function, we use myString[show] without the quote

myString[clear], myString[convertUTF16], myString[ copy( myString2 ) ]

Group["LogIn"] {
4.100chars:
String1, String2, String3, myString, myString2, urString1,
}

Function["LogIn"] {
show:
copy:
clear:
clear( 16 ):
clear( 32 ):
}
Post 21 Oct 2017, 13:44
View user's profile Send private message Reply with quote
Furs



Joined: 04 Mar 2016
Posts: 868

sleepsleep wrote:
why not declare a type,

32:
myVarName, myAnotherVarName, andSoOn,
64:
var641, var642,

C?

Code:
uint32_t myVarNamemyAnotherVarNameandSoOn;
uint64_t var641var642;

(or typedef your own 32/64 types, whatever)


sleepsleep wrote:
a variable will have almost infinite changes of value, but from 0 to maxofthattype

That's already the case. I have a hard time understanding your point here. Confused


sleepsleep wrote:
why not we make all declared variable automatically as array with will have its value from 0 to maxof it allows,

eg.

myVarName[22]; will automatically make myVarName holding 22,

This is just syntax, and you can do it with C++ if you overload the [] operator.
Post 21 Oct 2017, 14:01
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 15241
Location: 1I/ʻOumuamua
sqlite supports DB values of any length, you don't have to declare the maximum size at creation. In fact you can't declare the maximum size at all. And you also can't declare the type at all. You can pretend to declare a type and a length but sqlite won't care about that.
Post 21 Oct 2017, 14:14
View user's profile Send private message Visit poster's website Reply with quote
Furs



Joined: 04 Mar 2016
Posts: 868
But he said it goes to "maxofthattype" so it does have a maximum value. In other words, it is a statically typed language he's asking for (not like sqlite I believe).

For his 32/64 int examples it's already the case, but if he wants arbitrary-sized (in terms of bytes) integers, then C++ can do that. Just need to make the appropriate wrapper class and overload the needed operators.

Can't say it's necessarily elegant, but if it's that kind of abstraction he's asking for, C++ can do it with the syntax he's asking for. Razz
Post 21 Oct 2017, 20:34
View user's profile Send private message Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 6951
Location: ˛                              ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣ Posts: 6699
@Furs,
i was thinking if focus of a programming language ~ set on variable, and then all others modification will extend from that variable,

myVar[1 to 10] {} instead of for(i=0; i<10; i++)
myVar[? to 100] instaed of while( i < 100 )

myVar = 3 ? {} instead of if( myVar == 3 ) {}
? myVar = 5 {}

? myVar {
= 1
= 100
= 1000 to 5000
}
instead of
switch( myVar ) {
case 4:
case 100:
}

take away the unnecessary words,
Post 21 Oct 2017, 21:57
View user's profile Send private message Reply with quote
MSrobots2



Joined: 21 Oct 2017
Posts: 2
this looks a lot like JavaScript and JSON

Coming from COBOL I actually like verbose syntax, so removing unneeded words may not be so good.

On the other hand there was once a language called ACTION for the Atari XL

It was assembler written with basic rules.

a=0:b=2:c=3
would result in
mov a,0
mov b,2

and so on.

It was a very basic like syntax resulting in 1 to 1 representation in assembler.

on 8 bit Atari languages types where not really a concept so everything was a byte or string of bytes.

At that time I really enjoyed it, one could see more code on the small screen.

As far as I remember the 'compiler/assembler' provided if/then/else and while/wend repeat/until.

condition could not contain more then 2 variables and translated direct to cmp.

There was a simple parser allowing left to right formulas, but no brackets

A=B+C+D would result in
mov A,B
add A,C
add A,D

here a link https://en.wikipedia.org/wiki/Action!_(programming_language)

Enjoy!

Mike
Post 22 Oct 2017, 00:43
View user's profile Send private message Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 6951
Location: ˛                              ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣ Posts: 6699
i personally believe, less words is better, Smile
and the way create, modify, delete input, process and output should be standardized, and everything preferred to be straight forward, less eye strain and more to logic,

less reserved keywords is better too,
less naming too is preferred,

my2dPoint[2][100]
my3dPoint[22][-59][560]

maybe i should think of a more elegant ways, Laughing
Post 22 Oct 2017, 03:32
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 15241
Location: 1I/ʻOumuamua

sleepsleep wrote:
i personally believe, less words is better, Smile

A curiously long article about the smallest possible instruction set.
Post 22 Oct 2017, 04:08
View user's profile Send private message Visit poster's website Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 6951
Location: ˛                              ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣ Posts: 6699
great videos, i hope you all view these,

How to Rewire & Evolve Your Brain to Experience a New Reality Dr Joe Dispenza YouTube
https://www.youtube.com/watch?v=lqOP_4spobY

Breaking the Habit of Being Yourself - Introductory Lecture
https://www.youtube.com/watch?v=6lbnrRqBjgE

MODULATION OF DNA CONFORMATION
BY HEART-FOCUSED INTENTION
Rollin McCraty, Ph.D. Mike Atkinson, and Dana Tomasino, B.A.
http://www.aipro.info/drive/File/224.pdf

Quote:

In contrast, sustained
positive emotions, such as appreciation, love, or compas-
sion, are associated with highly ordered or coherent
patterns in the heart rhythms, reflecting greater synchro-
nization between the two branches of the ANS.


Post 22 Oct 2017, 04:54
View user's profile Send private message Reply with quote
Furs



Joined: 04 Mar 2016
Posts: 868

revolution wrote:

sleepsleep wrote:
i personally believe, less words is better, Smile

A curiously long article about the smallest possible instruction set.

Proof that RISC sucks:

URISC has less instructions than RISC, and it sucks.
RISC has less instructions than CISC, thus, it sucks.

Razz

I know it's a fallacy
Post 22 Oct 2017, 15:44
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 15241
Location: 1I/ʻOumuamua

Furs wrote:
RISC has less instructions than CISC ...

ARM (RISC) has more opcodes than x86 (CISC). Shocked
Post 22 Oct 2017, 15:52
View user's profile Send private message Visit poster's website Reply with quote
Furs



Joined: 04 Mar 2016
Posts: 868
How is it a reduced instruction set then? Makes no sense.

Even so, I doubt it. Unless you compare current ARM with the 8086 or something. (I don't know almost anything about ARM, so ofc it's just my assumption right now but I can't see how it can have more opcodes than the huge list for x86 these days, especially due to the SIMD instructions)
Post 22 Oct 2017, 16:43
View user's profile Send private message Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 6951
Location: ˛                              ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣ Posts: 6699
excellent resources!
https://www.youtube.com/user/reprogrammingmind/videos
ps: i like the Dr Joe Dispenza - Breaking the Habit of Being Yourself (book reviews)

- the way we alter our thoughts, do physically change the connections and routes of our own brain neurons, and the chemicals released inside us,

- these actually strengthen our thoughts that, we could actually be the change we intended,

- because when it shows you dont have to believe anymore that thoughts could change you and yourself, you are changing,

- and we evolve to be the master of our own neuron routes, our own emotions, ourselves,

- everybody emerged as a loser in the end in this living on earth game, there are infinite methods and coincidences that could wipe us away on earth, and mind you, today might be our last day,

- we struggle to somehow become elite and temporarily winner, and all these processes to rise us up usually came with more unnecessary conflicts with our own kinds,

- there is no winner in this living on earth game,

-
Post 22 Oct 2017, 23:55
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 15241
Location: 1I/ʻOumuamua

Furs wrote:
How is it a reduced instruction set then? Makes no sense.

It is more orthogonal, so it is easier to decode, uses fewer transistors, uses less power. As for the naming, I don't think one should try to literally parse "reduced" at face value. Think of it more like "how regular is the instruction coding" I guess.

Furs wrote:
Even so, I doubt it. Unless you compare current ARM with the 8086 or something. (I don't know almost anything about ARM, so ofc it's just my assumption right now but I can't see how it can have more opcodes than the huge list for x86 these days, especially due to the SIMD instructions)

Nope. Latest ARM still has more opcodes than the latest x86. ARM also has SIMD, vector instructions, etc.
Post 23 Oct 2017, 00:30
View user's profile Send private message Visit poster's website Reply with quote
Furs



Joined: 04 Mar 2016
Posts: 868
Do you have a link? Cause I want to see how they even manage to encode that crap in only 4 bytes with so many operands/registers and other RISC jazz it has. Confused
Post 23 Oct 2017, 12:07
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 15241
Location: 1I/ʻOumuamua
https://arm.flatassembler.net

There is a link the the v8 instructions document.

64-bit encodings + 32-bit encodings + Thumb encodings.
Post 23 Oct 2017, 12:10
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2, 3 ... 124, 125, 126, 127  Next

< Last Thread | Next Thread >

Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2005 phpBB Group.

Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2016, Tomasz Grysztar.