IPC on Windows 10

  • 16 Replies
  • 7286 Views
*

Zero

  • Eve
  • ***********
  • 1287
IPC on Windows 10
« on: September 07, 2017, 09:47:36 am »
Hi guys, don't hit me  ;D

How would you share data in windows efficiently?

Shared memory via file mapping?

The aim would be to connect heterogeneous programs, each of which would be providing some part-of-mind service, and unify it all around a (hopefully) conscious core.

I have this page:
https://msdn.microsoft.com/en-us/library/windows/desktop/aa365574(v=vs.85).aspx

Any thought? (I mean, beyond the inevitable "switch to some real OS")

*

Art

  • At the end of the game, the King and Pawn go into the same box.
  • Trusty Member
  • **********************
  • Colossus
  • *
  • 5865
Re: IPC on Windows 10
« Reply #1 on: September 07, 2017, 12:29:30 pm »
Zero,

Interesting page.  Are you wanting this structure or construct to remain only locally available to just one network or one person or for it to be / become much larger or even on a Cloud level, across various divides?

Sounds like so many possibilities are in the mix.

One thing that always concerns me is Security (or lack of), especially when exchanging or adding to the data flow within the construct.
(hackers be everywhere)
In the world of AI, it's the thought that counts!

*

Korrelan

  • Trusty Member
  • ***********
  • Eve
  • *
  • 1454
  • Look into my eyes! WOAH!
    • YouTube
Re: IPC on Windows 10
« Reply #2 on: September 07, 2017, 01:15:13 pm »
Shared Ram Drive perhaps? Or write a custom encrypted network protocol?

 :)
It thunk... therefore it is!...    /    Project Page    /    KorrTecx Website

*

Zero

  • Eve
  • ***********
  • 1287
Re: IPC on Windows 10
« Reply #3 on: September 07, 2017, 02:48:26 pm »
No, that would be local to the machine, so no cluster, no LAN, no nothing. I'll go even further: I always want my stuff to work fine offline.

No it's really: how do I share among processes on 1 machine, at very high speed. On windows. Tough stuff for me, I'm completely new to this.

I want to avoid bottlenecks, but I want to be open to existing works that would eventually "plug in" to this system. For instance NLP in python, ivan's works on grammar and parsing, Korrelan's nnets (ok the thing is too huge to fit, but maybe a derived system), an upper ontology thing à la Cyc, ...etc. I want streams between parts, and feedback to the core.
There's ROS on linux and other alternatives. I'm also considering message oriented middlewares like ZeroMQ.

Very open question, I know. Maybe too open, sorry.

*

Korrelan

  • Trusty Member
  • ***********
  • Eve
  • *
  • 1454
  • Look into my eyes! WOAH!
    • YouTube
Re: IPC on Windows 10
« Reply #4 on: September 07, 2017, 03:44:40 pm »
Writing efficient muti-thread code can be a pain especially when developing software from scratch.

Perhaps write for a fast single thread with an fast network protocol. Use something like oracle virtual machines to simulate a 4 core/ 4 PC network on one machine. The same tech can then easily be expanded to cover real network machines when required. This is similar to what I've done.

 :)
It thunk... therefore it is!...    /    Project Page    /    KorrTecx Website

*

keghn

  • Trusty Member
  • *********
  • Terminator
  • *
  • 824
Re: IPC on Windows 10
« Reply #5 on: September 07, 2017, 04:37:38 pm »
This logic, IPC, would have to be on the same slab of silicon. Because if you have 20 cpu on this chip then they would need 20 access point in to one memory location. the all write to this location at one time it could be a problem. But all cpu's or gpus's
 reading from on location at one time would not be a problem. This would be very high speed. But it is a more complex.
 I would thing AMD or INtel would be more behind this then MicroSoft.

*

Zero

  • Eve
  • ***********
  • 1287
Re: IPC on Windows 10
« Reply #6 on: September 08, 2017, 08:02:44 am »
I want a software solution, because it should be possible to install it simply on any windows 10 machine. You know, the windows way: download, one-click install, icon appears on the desktop.

Libuv (the networking machinery behind nodejs) is a possible path. And, it's C.

*

ranch vermin

  • Not much time left.
  • Terminator
  • *********
  • 947
  • Its nearly time!
Re: IPC on Windows 10
« Reply #7 on: September 08, 2017, 11:11:14 am »
share data between windows applications?   im not sure what you are wanting.

*

Zero

  • Eve
  • ***********
  • 1287
Re: IPC on Windows 10
« Reply #8 on: September 08, 2017, 11:35:13 am »
What's not clear?

EDIT: I'll try to expand.

Nobody found the whole AGI solution yet. But I believe there are parts of solutions here and there, implemented in different languages. And there might be, in the future, other parts of solutions implemented in various languages. I want to create a message-oriented middleware, on Windows, that could unite several stand-alone programs, no matter what they're made of, around a core that would be simultaneously message broker and think machine. I'll make the core, and try to make it conscious (always feeling what's happening inside of itself) and self-aware (knowing that itself is a specific part of the world). That's the plan. Back to reality, I want fast data sharing between processes. That could be using named pipes, file mapping, or simply TCP, or anything else. I post here, hoping to receive advices from more experienced devs.
« Last Edit: September 08, 2017, 02:04:36 pm by Zero »

*

keghn

  • Trusty Member
  • *********
  • Terminator
  • *
  • 824
Re: IPC on Windows 10
« Reply #9 on: September 08, 2017, 04:12:29 pm »
Basic Guide of Interprocess Communication and Pipes: 

http://technotif.com/basic-guide-interprocess-communication-pipes/

*

keghn

  • Trusty Member
  • *********
  • Terminator
  • *
  • 824
Re: IPC on Windows 10
« Reply #10 on: September 08, 2017, 05:27:25 pm »

Socket Programming Tutorial In C For Beginners | Part 1: 

*

Zero

  • Eve
  • ***********
  • 1287
Re: IPC on Windows 10
« Reply #11 on: September 08, 2017, 07:27:20 pm »

*

Zero

  • Eve
  • ***********
  • 1287
Re: IPC on Windows 10
« Reply #12 on: September 09, 2017, 02:52:13 pm »
Maybe I should stick to node-ipc. Maybe I'm fooling myself, pretending to search the right tech for the job, when in fact I'm screwin around to avoid, or at least delay, the big jump.

It's a war on yourself.

*

Korrelan

  • Trusty Member
  • ***********
  • Eve
  • *
  • 1454
  • Look into my eyes! WOAH!
    • YouTube
Re: IPC on Windows 10
« Reply #13 on: September 09, 2017, 05:27:14 pm »
Ahhh… I’m back at my main machines so I can type comfortably… I hate typing on a phone lol.

Use FREE Oracle VirtualBox…

https://www.virtualbox.org/

To create a sand boxed local network of virtual M-XP machines. 

Micro XP is a cut down version of XP that runs much faster and uses far fewer resources.  You can get the MXP.iso at the link below. (Go to main YouTube page)



Once you have your XP network established on your single machine you can experiment with using pipes/ TCP/ UDP protocols safely to create your software. 

If you share a RAM drive on the Host machine and connect the virtual machines over the simulated network you can quickly exchange data (MPI and flagging) between the groups.

If you write your code to efficiently share & utilize the sand boxed virtual windows machines on this network then you can later easily expand to a real network of machines.

This approach will give you a FREE easy way to develop your network based systems.

Cheap four core machines are readily available these days for as little as £40 (UK) so you could quickly and cheaply build a cluster or connect existing networked infrastructures.



 :)
« Last Edit: September 09, 2017, 07:45:56 pm by korrelan »
It thunk... therefore it is!...    /    Project Page    /    KorrTecx Website

*

keghn

  • Trusty Member
  • *********
  • Terminator
  • *
  • 824
Re: IPC on Windows 10
« Reply #14 on: September 09, 2017, 05:31:29 pm »
 I am interested in IPC  because of the failure of USB easy to use software. I need to communicate with may Raspberry PI 3
boards. Can not wait for the Raspberry to upgrade to gigabit  Ethernet  on next board.

 


Requirements for functional equivalence to conscious processing?
by DaltonG (General AI Discussion)
November 19, 2024, 11:56:05 am
Will LLMs ever learn what is ... is?
by HS (Future of AI)
November 10, 2024, 06:28:10 pm
Who's the AI?
by frankinstien (Future of AI)
November 04, 2024, 05:45:05 am
Project Acuitas
by WriterOfMinds (General Project Discussion)
October 27, 2024, 09:17:10 pm
Ai improving AI
by infurl (AI Programming)
October 19, 2024, 03:43:29 am
Atronach's Eye
by WriterOfMinds (Home Made Robots)
October 13, 2024, 09:52:42 pm
Running local AI models
by spydaz (AI Programming)
October 07, 2024, 09:00:53 am
Hi IM BAA---AAACK!!
by MagnusWootton (Home Made Robots)
September 16, 2024, 09:49:10 pm
LLaMA2 Meta's chatbot released
by spydaz (AI News )
August 24, 2024, 02:58:36 pm
ollama and llama3
by spydaz (AI News )
August 24, 2024, 02:55:13 pm
AI controlled F-16, for real!
by frankinstien (AI News )
June 15, 2024, 05:40:28 am
Open AI GPT-4o - audio, vision, text combined reasoning
by MikeB (AI News )
May 14, 2024, 05:46:48 am
OpenAI Speech-to-Speech Reasoning Demo
by MikeB (AI News )
March 31, 2024, 01:00:53 pm
Say good-bye to GPUs...
by MikeB (AI News )
March 23, 2024, 09:23:52 am
Google Bard report
by ivan.moony (AI News )
February 14, 2024, 04:42:23 pm
Elon Musk's xAI Grok Chatbot
by MikeB (AI News )
December 11, 2023, 06:26:33 am

Users Online

438 Guests, 0 Users

Most Online Today: 532. Most Online Ever: 2369 (November 21, 2020, 04:08:13 pm)

Articles