flat assembler
Message board for the users of flat assembler.

Index > Heap > sleepsleep's vitally important things

Goto page Previous  1, 2, 3 ... 227, 228, 229 ... 245, 246, 247  Next
Author
Thread Post new topic Reply to topic
guignol



Joined: 06 Dec 2008
Posts: 701
guignol
within a given capsule, one should know each variable
what are you talkin' about
Post 25 Jan 2020, 18:43
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17287
Location: In your JS exploiting you and your system
revolution
sleepsleep wrote:
death toll 42,
(cases) 3 in singapore, 4 in malaysia, 4 in australia, etc
I read that the virus has an R0 value of 3.8! Which means that on average one infected person can spread the virus to 3.8 other people. That is a lot, and it makes it very dangerous indeed.
Post 25 Jan 2020, 20:33
View user's profile Send private message Visit poster's website Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 8906
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 334455
sleepsleep
i was pondering about the idea of variable manager sometime ago, can't remember if i write them here or not,

basically, it makes the creation of variable, read and write, through a dedicated language function provider,

it helps in term of dumping all, profile usage, monitor values and more,

vm("c", "iYearIn", "2020"); //create,
vm("a", "function Name"); //allow, default block them all, function firewall concept
vm("g", "iYearIn") //get
vm("s", "iYearIn", "invalid") //set

and we could program the variable manager based on variable value,

vm("m", "iYearIn", "<=2000", "function Name") // monitor, run function name when iYearIn matched rules

s, g will accompany with it's caller function name in language level,

and we need something else for the current if then else, they seems confusing and complicating the system,
Post 25 Jan 2020, 20:45
View user's profile Send private message Reply with quote
Furs



Joined: 04 Mar 2016
Posts: 1471
Furs
revolution wrote:
How could we rewrite these kind of triply redundant lines in HLLs:
Code:
myType myType = new myType    
Is there a way to make it simpler with less typing (pun intended) on the keyboard, but still give full control?
That doesn't look quite right Wink

myType is the type, but you're declaring an instance of that type, a variable, an object, whatever. So it should be one of:
Code:
myType myObj = new myType;
myType myVar = new myType;    
Or you can just do:
Code:
auto myObj = new myType;    
So you only type it once.
Post 26 Jan 2020, 12:50
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17287
Location: In your JS exploiting you and your system
revolution
Can't I also name the instance the same as the type?
Code:
int int = new int    
Question
Post 26 Jan 2020, 13:32
View user's profile Send private message Visit poster's website Reply with quote
Furs



Joined: 04 Mar 2016
Posts: 1471
Furs
If it's not a reserved keyword (int is, though, but that's a different issue), then yeah sure, you can.

What I meant is that it's confusing since it's not even a type but an instance of that type. So it's not good coding practice anyway.
Post 26 Jan 2020, 13:50
View user's profile Send private message Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 8906
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 334455
sleepsleep
death toll 81, jumped from 56,
scary shit,

hope everybody eat well, stay strong and healthy,
Post 27 Jan 2020, 06:32
View user's profile Send private message Reply with quote
DimonSoft



Joined: 03 Mar 2010
Posts: 707
Location: Belarus
DimonSoft
revolution wrote:
How could we rewrite these kind of triply redundant lines in HLLs:
Code:
myType myType = new myType    
Is there a way to make it simpler with less typing (pun intended) on the keyboard, but still give full control?

In C++14 you just write
Code:
auto auto(auto auto) { auto; }    
The compiler infers the rest from context.
Post 27 Jan 2020, 13:49
View user's profile Send private message Visit poster's website Reply with quote
Furs



Joined: 04 Mar 2016
Posts: 1471
Furs
DimonSoft wrote:
revolution wrote:
How could we rewrite these kind of triply redundant lines in HLLs:
Code:
myType myType = new myType    
Is there a way to make it simpler with less typing (pun intended) on the keyboard, but still give full control?

In C++14 you just write
Code:
auto auto(auto auto) { auto; }    
The compiler infers the rest from context.
Can confirm. I wanted all bugs fixed, and it compiled a program that, when executed, erased my whole repo.

I guess it thought that no software means no bugs. Smart compiler.
Post 27 Jan 2020, 14:31
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17287
Location: In your JS exploiting you and your system
revolution
Is the "auto auto(auto auto) { auto; }" above some kind of C in-joke? I don't get it. Confused
Post 27 Jan 2020, 14:58
View user's profile Send private message Visit poster's website Reply with quote
DimonSoft



Joined: 03 Mar 2010
Posts: 707
Location: Belarus
DimonSoft
revolution wrote:
Is the "auto auto(auto auto) { auto; }" above some kind of C in-joke? I don't get it. Confused

Yes, it’s about type inferring with auto keyword that allows to avoid the whole syntactic nonsense with templates-over-templates-over-templates.
Post 27 Jan 2020, 16:50
View user's profile Send private message Visit poster's website Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 8906
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 334455
sleepsleep
Number infected by Wuhan virus rises to nearly 6,000 in China; death toll at 132
Post 29 Jan 2020, 03:05
View user's profile Send private message Reply with quote
st



Joined: 12 Jul 2019
Posts: 43
Location: Russia
st
revolution wrote:
How could we rewrite these kind of triply redundant lines in HLLs:
Code:
myType myType = new myType    
Is there a way to make it simpler with less typing (pun intended) on the keyboard, but still give full control?

I think you are reinventing Hindley–Milner type system

In OCaml, for example, the following function has type float
Code:
let average a b = (a +. b) /. 2.0;;    

while the next one is of type int
Code:
let average a b = (a + b) / 2;;    
Post 29 Jan 2020, 11:21
View user's profile Send private message Visit poster's website Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 8906
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 334455
sleepsleep
serious question,

Quote:

Some viruses of animals, including humans, are spread by exposure to infected bodily fluids. Viruses such as influenza are spread through the air by droplets of moisture when people cough or sneeze. ... The human immunodeficiency virus, HIV, is transmitted by bodily fluids transferred during sex.


if a wuhan worker cough or sneeze in a clothing factory, would such virus sticked to clothes, or etc phsyical things, staying alive,

after items exported to other nations, and the virus become active again, assume consumer go and touch, smell, eat etc the items,

or virus always need a host, be it human or animal to stay alive?

~

WUHAN: The nationwide death toll from China's viral epidemic has risen to 170, the government said on Thursday (Jan 30), with more than 1,700 new infections confirmed.
Post 30 Jan 2020, 03:54
View user's profile Send private message Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 8906
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 334455
sleepsleep
saw some childhood photos, scares the hell out of me,

i seem to forget a lot, i mean, a lot, damn it, even some of the recent photos, like 10 to 12 years ago, some of the places i been to,

will i forget more? idk, maybe

my classmates, damn it, the most weird thing, how these photos end up here in my house, scary shit,
Post 30 Jan 2020, 09:50
View user's profile Send private message Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 8906
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 334455
sleepsleep
the moment a human person get angry, really angry, he then turns into a monster, demon, started to exhibit his mental illness like behaviours,

the difference between human probably at the output when he is triggered, the conscious to choose calm down instead of panic, angry and etc mental illness like behaviours,

what we do with bugs? we clear them, we change code, add new and clear previous problematic code,

and my current pondering is,

is addiction, repeatation, in human behaviour equal to some sort of mental illness?

be it, playing games, programming, thinking, pondering, drinking, smoking, etc, everything, including writing,

then what is intended input, process and output? is there an intended IPO?
~

Quote:
This planet is being used as an insane asylum by other planets. Beings from other planets are using the Earth as a lunatic asylum. The earth is the lunatic asylum of the Universe. Earth is an insane asylum to which other planets deport their lunatics.
Post 30 Jan 2020, 21:17
View user's profile Send private message Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 8906
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 334455
sleepsleep
Quote:
BEIJING: The nationwide death toll in China's coronavirus outbreak has risen to 213, with nearly 10,000 infected, according to official figures released on Friday (Jan 31).


not good,
Post 31 Jan 2020, 03:28
View user's profile Send private message Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 8906
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 334455
sleepsleep
https://www.theguardian.com/politics/live/2020/jan/31/brexit-day-britain-prepares-leave-eu-live-news-updates
Quote:

We will be free to decide how we trade, what our laws are, and how we control our borders. The fact that tomorrow we will wake up in a free country is due to the Brexit party.


Quote:
This was not a vote against them but a vote against the EU institutions. The people of Europe are our friends and allies. A lot of Europeans have legally come to the country and have made great contributions.


Quote:
Boris Johnson has proclaimed Brexit as the revival of the UK’s “power of independent thought and action” on Friday – but faced an immediate warning from EU leaders that “strength does not lie in splendid isolation”


You are finally divorced Laughing
Post 31 Jan 2020, 22:27
View user's profile Send private message Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 8906
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 334455
sleepsleep
The ten guides for a New Age of Reason are as follows:

  • Maintain humanity under 500,000,000 in perpetual balance with nature.
    保持人類五億以下與大自然永恆共存
  • Guide reproduction wisely – improving fitness and diversity.
    明智地引導生育增進健康與變化
  • Unite humanity with a living new language.
    以一種活的新語言來團結人類
  • Rule passion – faith – tradition – and all things with tempered reason.
    用沉著的理性來控制熱情-信仰-傳統及萬物
  • Protect people and nations with fair laws and just courts.
    用公正的法律及法庭來保障人民與國家
  • Let all nations rule internally resolving external disputes in a world court.
    讓所有的國家自治在世界法庭中解决外界的糾紛
  • Avoid petty laws and useless officials.
    廢止瑣屑的法律及無用的官員
  • Balance personal rights with social duties.
    讓私人的權力與對社會的義務保持平衡
  • Prize truth – beauty – love – seeking harmony with the infinite.
    珍視真-美-愛 尋求與宇宙和諧
  • Be not a cancer on the earth – Leave room for nature – Leave room for nature.
    不要做地球上的毒瘤 給大自然留點餘地 給大自然留點餘地
Post 31 Jan 2020, 22:59
View user's profile Send private message Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 8906
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 334455
sleepsleep
https://github.com/evilsocket/opensnitch
Quote:

OpenSnitch is a GNU/Linux port of the Little Snitch application firewall.

looks nice
https://news.ycombinator.com/item?id=22206116

Image
Post 01 Feb 2020, 05:17
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2, 3 ... 227, 228, 229 ... 245, 246, 247  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


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.