LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Closed Thread
  Search this Thread
Old 04-11-2010, 03:52 PM   #1936
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339

Rep: Reputation: 231Reputation: 231Reputation: 231

Thinking how to implement multi-process in smeezix...
 
Old 04-11-2010, 04:03 PM   #1937
MrCode
Member
 
Registered: Aug 2009
Location: Oregon, USA
Distribution: Arch
Posts: 864
Blog Entries: 31

Rep: Reputation: 148Reputation: 148
One more on the topic of determinism and I'm done for today:

If the future is known, then couldn't that mean that with some kind of super-powerful computer, you could predict it?

And if future events are known in the past, doesn't that create the ever-popular Predestination Paradox?

If not, then our understanding of time must be waaaay off. As a matter of fact, I think I read an article in Discover magazine on the subject...I don't remember all the details, but it was an interesting read (not necessarily fun, just interesting).

My theory: If you were to know the events of the future (say, by travelling to the past), and you could influence the events of the past to "change" the future, you're simply moving along a different timeline than you were before; i.e. there are an infinite number of alternate timelines, and our idea of "free will" is simply the ability to choose which timeline we follow.

I'm pretty sure there's support for that idea as well. So maybe the universe is completely deterministic, but at the same time, free will can exist.

Maybepossibly?

Last edited by MrCode; 04-11-2010 at 04:06 PM.
 
Old 04-11-2010, 04:05 PM   #1938
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Quote:
Originally Posted by MrCode View Post
And if future events are known in the past, doesn't that create the ever-popular Predestination Paradox?
Just thinking about that makes my brain hurt...

As for what I'm doing now, I'm waiting for someone either to tell me how to fix VirtualBox or get 32-bit ASM to work on my 64-bit desktop.

Last edited by MTK358; 04-11-2010 at 04:06 PM.
 
Old 04-11-2010, 04:21 PM   #1939
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 203Reputation: 203Reputation: 203
Quote:
Originally Posted by MTK358 View Post
Just thinking about that makes my brain hurt...

As for what I'm doing now, I'm waiting for someone either to tell me how to fix VirtualBox or get 32-bit ASM to work on my 64-bit desktop.
Did updating the kernel module not work for you?
 
Old 04-11-2010, 04:22 PM   #1940
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
What's a kernel module?

 
Old 04-11-2010, 04:24 PM   #1941
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339

Rep: Reputation: 231Reputation: 231Reputation: 231
Rotflmfao! @mtk358.
 
Old 04-11-2010, 07:53 PM   #1942
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Improving my ASM skills:

Code:
extern int asm_main();

int main() {
  return asm_main();
}
Code:
section .text

extern printf
extern scanf

section .data
  scanf_string_a db '%d', 0
  printf_string_a db 'You entered the number %d!', 10, 0
  printf_string_b db '%d * 2 = %d', 10, 0
  printf_string_c db 'Enter a number: ', 0
section .text

global asm_main
asm_main:
	push ebp
	mov ebp, esp
	sub esp, 4 ; make room for dword int local variable

	push printf_string_c
	call printf
	add esp, 4

	mov eax, ebp
	sub eax, 4
	push eax
	push scanf_string_a
	call scanf
	add esp, 8

	push dword [ebp-4]
	push printf_string_a
	call printf
	add esp, 8

	mov eax, [ebp-4]
	shl eax, 1
	push eax
	push dword [ebp-4]
	push printf_string_b
	call printf
	add esp, 12

  mov eax, 0
  add esp, 4
	pop ebp
ret
Code:
$ ./a.out
Enter a number: 42
You entered the number 42!
42 * 2 = 84
 
Old 04-11-2010, 08:01 PM   #1943
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 203Reputation: 203Reputation: 203
Quote:
Originally Posted by MTK358 View Post
What's a kernel module?

What is a kernel module?
 
Old 04-12-2010, 09:04 AM   #1944
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 203Reputation: 203Reputation: 203
Sitting in a doctor's waiting room.
 
Old 04-12-2010, 09:15 AM   #1945
lupusarcanus
Senior Member
 
Registered: Mar 2009
Location: USA
Distribution: Arch
Posts: 1,022
Blog Entries: 19

Rep: Reputation: 146Reputation: 146
In class, working on Winyouknowhat Expee, thinking about getting a flash drive and putting cygwin on it...

Or VBox, but 512 MB RAM is weak, lol.
 
Old 04-12-2010, 10:42 AM   #1946
mrmnemo
Member
 
Registered: Aug 2009
Distribution: linux
Posts: 527

Rep: Reputation: 51
Wondering if I get the one of the jobs from my interviews last week and trying to understand how i can screw up following a step by step tutorial. I try very hard to create run ons. lol. Have a nice day everyone. this thread just keeps going and going and going.

Just curious, wonder what the subject matter was from the longest thread ever run on LQ?
 
Old 04-12-2010, 11:11 AM   #1947
lupusarcanus
Senior Member
 
Registered: Mar 2009
Location: USA
Distribution: Arch
Posts: 1,022
Blog Entries: 19

Rep: Reputation: 146Reputation: 146
Fixed up a Windows Box real nice over the weekend for someone for $ 100.
 
Old 04-12-2010, 11:34 AM   #1948
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Code:
$ echo 'Univat zber sha jvgu NFZ.
> 
> V znqr n cebtenz gung nccyvrf EBG13 gb fgqva naq cevagf vg gb fgqbhg, hfvat whfg Yvahk flfgrz pnyyf naq ab P yvoenel shapgvbaf.' | ./rot13
Having more fun with ASM.

I made a program that applies ROT13 to stdin and prints it to stdout, using just Linux system calls and no C library functions.

Last edited by MTK358; 04-12-2010 at 11:39 AM.
 
Old 04-12-2010, 12:26 PM   #1949
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339

Rep: Reputation: 231Reputation: 231Reputation: 231
But you do know that asm is unportable and unportable is bad.
Using the C lib its not architecture portable but is OS portable.
Without using the C lib it is not portable at all.
It nips at me a bit if something is not portable.
 
Old 04-12-2010, 01:10 PM   #1950
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Don't you understand that I'm just learnrng?

How could you learn asm without writing asm just because it's not protable?

The code, in case you're interested:
Attached Files
File Type: txt rot13.asm.txt (1.8 KB, 6 views)

Last edited by MTK358; 04-12-2010 at 01:15 PM.
 
  


Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 10:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration