Saturday, September 30, 2017

Digest for comp.lang.c++@googlegroups.com - 11 updates in 5 topics

woodbrian77@gmail.com: Sep 30 03:49PM -0700

> Unfortunately, string_view wasn't introduced years ago. I hope compiler
> vendors will take a "better late than never" attitude toward string_view
> and make it available with their C++ 2011 and 2014 compilers.
 
In this talk Titus Winters says they are going
to "pre-adopt" string_view into a library they're
developing:
 
https://duckduckgo.com/?q=cppcon+videos&atb=v72-1__&ia=videos&iax=1&iai=tISy7EJQPzI
 
(around the 49 minutes and 40 seconds mark)
 
This is further indication of the need for this
support for people using C++ 2011 compilers and I
hope compiler vendors will do the porting themselves.
 
 
Brian
Ebenezer Enterprises - Enjoying programming again.
http://webEbenezer.net
Ivan Shmakov <ivan@siamics.net>: Sep 30 07:05PM

>>>>> red floyd <dont.bother@its.invalid> writes:
>>>>> On 9/29/2017 12:24 PM, Chris M. Thomasson wrote:
 
[...]
 
>> Perhaps, you should create an online CAlive compiler. I can go to
>> your site, type in my program, hit compile and see output.
 
> But it won't allow constants that equal 666.
 
Not much different to how some countries won't allow 13th floors,
I guess.
 
[...]
 
--
FSF associate member #7257 http://am-1.org/~ivan/ 7D17 4A59 6A21 3D97 6DDB
fir <profesor.fir@gmail.com>: Sep 30 03:43AM -0700

i once said i was coding some library for win32
that grants acces to making easy (old school in spirit)
per pixel graphics apps in windows (win32)
 
i was quite not touched it for 2 years or so but its functional and i am quite pleased by that lib though it is
not polished and even in design state as o some elements
 
you may check some example how to use it
 
minddetonator.htw.pl/gfe.zip
 
you need windows and mngw installed and thats all
here i showed how with few lines of code you cold create a windows and make something like small raw paint
appplication
 
this code is
 
 
#include<windows.h>
 
#include "green-fire.h"
 
int background_color = 0x00400020;
int drawing_color = 0xffffff;
 
int pen_size = 5;
 
void RunFrame(int no_advance)
{
 
if(frame_number==0)
ClearFrameData(background_color);
 
 
if(lmb_pressed)
FillCircle( mouse_x, mouse_y, pen_size, drawing_color);
 
if(rmb_pressed)
FillCircle( mouse_x, mouse_y, pen_size, background_color);
 
 
}
 
void ProcessMouseMove(int x, int y)
{
 
 
}
 
void ProcessKeyDown(int key)
{
if(key=='1') drawing_color = 0x00ffffff;
if(key=='2') drawing_color = 0x00551188;
if(key=='3') drawing_color = 0x00115088;
if(key=='4') drawing_color = 0x0015e078;
if(key=='5') drawing_color = 0x00256048;
if(key=='6') drawing_color = 0x00358098;
if(key=='7') drawing_color = 0x00e5c098;
if(key=='8') drawing_color = 0x003530a8;
if(key=='9') drawing_color = 0x0085c0f8;
 
 
if(key==VK_SPACE)
SaveFrameAsBMP("saved.bmp");
 
}
 
void OnResize()
{
 
RunFrame(1);
 
}
 
 
 
int main(void)
{
SetupWindow(" fir's Green fire usage example ", "2D", "notrace", 515, 415, 30, 20, RunFrame, 9, OnResize, ProcessMouseMove, ProcessKeyDown);
 
return 0;
}
 
 
separate topic is in fact i could and should to redesign it a bit (removing windows.h dependency (which is slight and probably not needed) and redesign the callbacks maybe for better usage
 
 
my goal (which probably fail as i know life though its good imo) would be to interest some people here to write some per pixel snippets and make some fun of it , mayb some contests and discussion (the contexts and discusion based on console are boring and my ap makes coding per pixel c snippeds real easy and potential fun is quite big)
fir <profesor.fir@gmail.com>: Sep 30 04:31AM -0700

getting back to design : here above for example i set all window info in a bit chaotic way, i think this info could be divided on windows setting and callbacks (i also get this needed calbasks set quite limited as it shows)
 
so i think maybe i should do
 
int main()
{
//...
 
SetupWindow(window_settings, window_callbacks);
ret 0;
}
 
 
where
 
int main()
{
WindowSettings ws;
 
ws.title = "firs example app over green fire lib" ;
 
ws.pos_x = 20;
ws.pos_y = 20;
ws.size_x = 400;
ws.size_y = 300;
 
ws.mode3d = 0;
ws.trace_info = 0;
 
WindowCallbacks wc;

wc.RunFrame = RunFrame;
wc.MouseMove = ProcesMouseMove;
wc.KeyDown = OnKeyDown;
wc.Resize = OnResize;
 
 
SetupWindow(window_settings, window_callbacks);
ret 0;
}
 
quite longer though, other alternative is to hide structures and give some api calls to set it
 
int main()
{
 
SetWindowsTitle("firs example app over green fire lib") ;
 
SetWindowSize(20, 30, 400, 300);
SetWindowMode3d(0);
SetWindowTraceInfoOn(0);
 
SetRunFrameCallback(RunFrame);
SetMouseMoveCallback(ProcesMouseMove);
SetKeydawnCallback(OnKeyDown);
SetOnResize Callback(OnResize);
 
SetupWindow();
 
ret 0;
}
 
there is also posible a mix of this options - which one is the best here?
asetofsymbols@gmail.com: Sep 29 11:39PM -0700

If we have a class rc
For rc there is a constructor that
request memory from heap
 
Whap happen to this code at end of loop if the return statement is not executed? This code would/should compile?
 
rc f(rc v)
{int j;
for(j=0;j<100;++j)
if(operation(j))
{opera(&v);return v}
}
asetofsymbols@gmail.com: Sep 29 11:50PM -0700

I say this because it seems that code (if I write some other ;)
compile run and when it return out from the loop : return one obj not ok at last the free() function I use says this
Barry Schwarz <schwarzb@dqel.com>: Sep 30 12:20AM -0700

On Fri, 29 Sep 2017 23:39:47 -0700 (PDT), asetofsymbols@gmail.com
wrote:
 
> if(operation(j))
> {opera(&v);return v}
>}
 
With the right set of options, your compiler should warn you that
there is a return path from f that does not return a value.
 
After executing a statement like
x = f(...);
any attempt to evaluate the value of x causes undefined behavior when
all executions of the if statement evaluate as false.
 
--
Remove del for email
Barry Schwarz <schwarzb@dqel.com>: Sep 30 12:27AM -0700

On Fri, 29 Sep 2017 23:50:23 -0700 (PDT), asetofsymbols@gmail.com
wrote:
 
>I say this because it seems that code (if I write some other ;)
>compile run and when it return out from the loop : return one obj not ok at last the free() function I use says this
 
If that incomprehensible sentence means free reports that the value is
not one that was returned by an appropriate allocation function, that
makes perfect sense. After 100 iterations of your for loop never
executing the return statement, the function exits without returning a
value. Attempting to evaluate the non-existent returned value causes
undefined behavior.
 
In practical terms, the value your calling function receives will
probably be whatever residual bit pattern was left in the stack where
the returned value would have been placed by a return statement. It
is extremely unlikely that this value is one that free can process
properly.
 
--
Remove del for email
asetofsymbols@gmail.com: Sep 30 12:47AM -0700

Barry wrote:
After executing a statement like
x = f(...);
any attempt to evaluate the value of x causes undefined behavior when
all executions of the if statement evaluate as false
 
---------
Yes as above ok..
in x=f(a) in what I would know: f return one obj , = is executed, than would be called the destructor for tmp obj (returned from f)
than the function that free the memory to the heap, free() says that the pointer is not right and it stop the program. I not understand why compile has to emit only one warning for that and not one error (at last for class obj)
"Chris M. Thomasson" <invalid_chris_thomasson@invalid.invalid>: Sep 29 09:10PM -0700

On 9/28/2017 11:25 PM, Öö Tiib wrote:
 
>> Bait?
 
> His madness. The invisible pink unicorns are magical because how else
> those can be invisible and pink at same time?
 
If one of the invisible unicorns tells you it is pink... Is it lying?
 
;^)
"Chris M. Thomasson" <invalid_chris_thomasson@invalid.invalid>: Sep 29 09:19PM -0700

On 9/29/2017 9:10 AM, red floyd wrote:
 
>> His madness. The invisible pink unicorns are magical because how else
>> those can be invisible and pink at same time?
 
> Heresy!!   All know that the IPU is phony, while the FSM is real!
IPU is the one true way, FSM is crap. Give me the right amount of $$$
and I will send you the real deal, top-secret documents that will blow
your mind. People that worship the FSM are most likely possessed by the
demon lord Jeearr:
 
https://www.thezorklibrary.com/history/jeearr.html
 
lol.
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to comp.lang.c+++unsubscribe@googlegroups.com.

Friday, September 29, 2017

Digest for comp.lang.c++@googlegroups.com - 12 updates in 5 topics

Joseph Hesse <joeh@gmail.com>: Sep 29 10:37AM -0500

I am surprised that the following compiles with g++.
 
void f(int x)
{
int a[x];
}
 
I thought that the size of such an array had to be known at compile time
and couldn't be created at run time? Is this a new feature?
Thank you,
Joe
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Sep 29 11:42AM -0400

On 9/29/2017 11:37 AM, Joseph Hesse wrote:
> and couldn't be created at run time? Is this a new feature?
> Thank you,
> Joe
 
GCC has allowed VLA's in C++ for a while:
 
https://gcc.gnu.org/onlinedocs/gcc/Variable-Length.html
 
--
Thank you, | Indianapolis, Indiana | God is love -- 1 John 4:7-9
Rick C. Hodgin | http://www.libsf.org/ | http://tinyurl.com/yaogvqhj
-------------------------------------------------------------------------
Software: LSA/C, Debi, RDC, CAlive, ES/2, VJr, VFrP, Logician, C90/99
Hardware:
Aroxda Desktop CPU -- 40-bit multi-core 80386 with many extensions
Arxita Embedded CPU -- Low power, low pin count 80386 w/128 registers
Arlina Compute FPGA -- Scalable compute cores, large GPIO pin count
red floyd <dont.bother@its.invalid>: Sep 29 01:46PM -0700

On 9/29/2017 10:12 AM, Stefan Ram wrote:
 
> This might be a compiler-specific extension.
 
> Maybe you would like to try:
 
> -std=c++14 -pedantic -pedantic-errors
 
Isn't that a C99-ism?
bitrex <bitrex@de.lete.earthlink.net>: Sep 29 06:15PM -0400

On 09/29/2017 01:12 PM, Stefan Ram wrote:
 
> This might be a compiler-specific extension.
 
> Maybe you would like to try:
 
> -std=c++14 -pedantic -pedantic-errors
 
It compiles OK with -std=C++98 for all versions of gcc for x86-64 over
4.4.7; the -pedantic flag gives the warning "ISO C++ forbids variable
length arrays." Clang 3.0 and above for x86-64 it also compiles but
warns "variable length arrays are a C99 feature, accepted as extension"
with -std=C++98 -pedantic; with -std=C++14 -pedantic for clang 3.5 and
above it just reports "variable length arrays are a C99 feature"
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Sep 29 09:44AM -0400

I was hoping to get some feedback on a feature I'm adding to CAlive.
It's called parameter redirects. It's designed to allow incoming
parameters to be auto-assigned to other variables (before the first
local line of function code is run), and to assign a single input
value to multiple targets, including type conversion.
 

https://groups.google.com/d/msg/caliveprogramminglanguage/Bgx4v4xLhXc/6cXeHw2FAwAJ
 
Example:
 
my_function(1, 2, 3, 4);
 
void my_function(int a, int b, to max, total, int c)
{
int i = 5; // By the time this line of code is
// run, max and total are already set
// to the value of the 3rd parameter
 
int max, total;
 
// Right now:
// a = 1
// b = 2
// max = 3, total = 3
// c = 4
// i = 5
}
 
It derives the target type by the name in use, and CAlive auto-
performs conversions where they're defined, and standard casts
where they're not defined.
 
To create new types from a single input parameter, use the syntax:
 
void my_function(int a, int b, to {int max, int total}, int c)
{
int i = 5;
 
// Right now:
// a = 1
// b = 2
// max = 3, total = 3
// c = 4
// i = 5
}
 
Please advise any notes or comments. Thank you in advance.
 
--
Thank you, | Indianapolis, Indiana | God is love -- 1 John 4:7-9
Rick C. Hodgin | http://www.libsf.org/ | http://tinyurl.com/yaogvqhj
-------------------------------------------------------------------------
Software: LSA/C, Debi, RDC, CAlive, ES/2, VJr, VFrP, Logician, C90/99
Hardware:
Aroxda Desktop CPU -- 40-bit multi-core 80386 with many extensions
Arxita Embedded CPU -- Low power, low pin count 80386 w/128 registers
Arlina Compute FPGA -- Scalable compute cores, large GPIO pin count
"Chris M. Thomasson" <invalid_chris_thomasson@invalid.invalid>: Sep 29 12:24PM -0700

On 9/29/2017 6:44 AM, Rick C. Hodgin wrote:
> parameters to be auto-assigned to other variables (before the first
> local line of function code is run), and to assign a single input
> value to multiple targets, including type conversion.
[...]
 
Damn it Jim... Create a little compiler that others can use wrt playing
around with CAlive. Make it relatively easy to install. If you keep
adding new features, the damn thing might never get into a solid state.
 
Perhaps, you should create an online CAlive compiler. I can go to your
site, type in my program, hit compile and see output.
red floyd <dont.bother@its.invalid>: Sep 29 01:47PM -0700

On 9/29/2017 12:24 PM, Chris M. Thomasson wrote:
> adding new features, the damn thing might never get into a solid state.
 
> Perhaps, you should create an online CAlive compiler. I can go to your
> site, type in my program, hit compile and see output.
 
But it won't allow constants that equal 666. It's his "Christian"
compiler/language.
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Sep 29 01:59PM -0700

On Friday, September 29, 2017 at 4:47:47 PM UTC-4, red floyd wrote:
> But it won't allow constants that equal 666. It's his "Christian"
> compiler/language.
 
When I worked at a place that had production lines, I created a
desktop app which shows our production lines and their working
unit numbers using a large display, and the values would cycle
through repeatedly from 000 to 999 and then repeat. It typically
took a few days to cycle.
 
I actually coded the display, which showed the current item being
processed on a very large flat screen monitor, to show "66_" when
they were on 666.
 
Management let it stand. :-) It was that way all the time I was
there. People would always laugh when that number came around.
 
Thank you,
Rick C. Hodgin
bitrex <bitrex@de.lete.earthlink.net>: Sep 29 03:26PM -0400

I have the following code using boost::varaint and boost::flyweight.
This wrapper class is used to wrap either an "image bitmap" which is
loaded from a file and key-value flyweighted (so the same data isn't
loaded from storage into memory repeatedly), or a "buffer bitmap" which
is just an internally-generated "scratchpad" that likely won't have much
repetition.
 
The problem is the segment with the user-defined conversion to
"APIBitmapType*" - I added the temporary instead of returning the result
of applying the visitor directly because the API I'm handing that off
too kept segfaulting when functions taking a particular template type
were called on the conversion. Stepping thru the debugger shows that the
variant returns the address of the appropriate bitmap object just fine,
but on the next line with the return the pointer value immediately
changes to null prior to being returned.
 
Frustratingly, this code was working OK before until I started making
some tidy-up changes to the header file structure that this class was
originally in; I didn't change the code itself at all. Can't figure out
what I did to break it...
 
template <typename APIBitmapType>
class BitmapWrapper {
typedef boost::flyweights::flyweight<boost::flyweights::key_value<
const char*, file_bitmap_t<APIBitmapType>>> file_bitmap_flyweight_t;
 
typedef boost::variant<buffer_bitmap_t<APIBitmapType>,
file_bitmap_t> bitmap_variant_t;
 
public:
template <typename... Args,
typename = decltype(
buffer_bitmap_t<APIBitmapType>(std::declval<Args>()...))>
explicit BitmapWrapper(Args&&... args)
: _bitmap(std::make_shared<bitmap_variant_t>(

buffer_bitmap_t<APIBitmapType>(std::forward<Args>(args)...))) {}
 
explicit BitmapWrapper(const char* filename)
: _bitmap(std::make_shared<bitmap_variant_t>(
file_bitmap_flyweight_t(filename))) {}
 
APIBitmapType* operator&() const
{
return boost::apply_visitor(bitmap_visitor<APIBitmapType>(),
*_bitmap);
}
 
operator APIBitmapType*() const {
auto test = boost::apply_visitor(bitmap_visitor<APIBitmapType>(),
*_bitmap);
return test;
}
 
private:
std::shared_ptr<bitmap_variant_t> _bitmap;
};
 
 
 
 
template <typename APIBitmapType>
class bitmap_visitor : public boost::static_visitor<APIBitmapType*>
{
typedef
boost::flyweights::flyweight<boost::flyweights::key_value<const char*,
file_bitmap_t<APIBitmapType>>>
file_bitmap_flyweight_t;
 
public:
APIBitmapType* operator()(const file_bitmap_flyweight_t& bitmap) const
{
return bitmap.get().get();
}
 
APIBitmapType* operator()(const buffer_bitmap_t<APIBitmapType>&
bitmap) const
{
return bitmap.get();
}
};
ram@zedat.fu-berlin.de (Stefan Ram): Sep 29 05:12PM

>{
> int a[x];
>}
 
This might be a compiler-specific extension.
 
Maybe you would like to try:
 
-std=c++14 -pedantic -pedantic-errors
 
.
"Öö Tiib" <ootiib@hot.ee>: Sep 28 11:25PM -0700

On Friday, 29 September 2017 00:38:00 UTC+3, Chris M. Thomasson wrote:
> >> for he loved spamming usenet.
 
> > It's an incorrect assumption to think these message are spam.
 
> Bait?
 
His madness. The invisible pink unicorns are magical because how else
those can be invisible and pink at same time?
red floyd <dont.bother@its.invalid>: Sep 29 09:10AM -0700

On 9/28/2017 11:25 PM, Öö Tiib wrote:
 
>> Bait?
 
> His madness. The invisible pink unicorns are magical because how else
> those can be invisible and pink at same time?
 
Heresy!! All know that the IPU is phony, while the FSM is real!!!
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to comp.lang.c+++unsubscribe@googlegroups.com.

Thursday, September 28, 2017

Digest for comp.lang.c++@googlegroups.com - 4 updates in 1 topic

Daniel <danielaparker@gmail.com>: Sep 28 12:40PM -0700

On Thursday, September 28, 2017 at 3:32:42 PM UTC-4, Rick C. Hodgin wrote:
 
> Every message I have ...
 
He's spammin', and he hopes you like spammin' too ...
 
(sung to the tune of Bob Marley's
Jammin https://www.youtube.com/watch?v=oFRbZJXjWIA)
"Chris M. Thomasson" <invalid_chris_thomasson@invalid.invalid>: Sep 28 02:24PM -0700

On 9/28/2017 3:16 AM, Alf P. Steinbach wrote:
> the occasional praise of FSM (the Flying Spaghetti Monster) and Odin,
> Tor, Loki & Freya, and in general, Pastafarianism and Norse mythology.
 
> Because those are my religions (yes, I only have two religions).
 
Hey now, don't forget the Unicorns in Zork.
 
http://zork.wikia.com/wiki/Unicorn
 
Ahhh, the Plane of TransInfinite Splendor.
"Chris M. Thomasson" <invalid_chris_thomasson@invalid.invalid>: Sep 28 02:37PM -0700

On 9/28/2017 6:43 AM, Rick C. Hodgin wrote:
>> sorrowful,
>> for he loved spamming usenet.
 
> It's an incorrect assumption to think these message are spam.
 
Bait?
"Chris M. Thomasson" <invalid_chris_thomasson@invalid.invalid>: Sep 28 02:45PM -0700

On 9/25/2017 5:27 AM, Rick C. Hodgin wrote:
> you to give it an ear and ponder it in your heart.  Consider it
> for a time each day and think about what it means to the baseline
> fundamental views we hold in our lives.
[...]
 
Check out this online program I created that simulates field based DLA:
 
http://funwithfractals.atspace.cc/ct_fdla_anime_dynamic_test
 
Let it run for a couple of minutes. It builds DLA clusters in a dynamic
environment that allows the user to click and create new attractors at
will. Here is a screenshot:
 
https://plus.google.com/101799841244447089430/posts/LjJesbaokGd
 
This uses random numbers for the number of particles that are released
per-round. I am experimenting with some other DLA techniques/ideas of
mine that use no random source, and are 100% deterministic. They still
end of producing natural looking trees, or networks. Simulating an
orbiting particle source seems to create some very natural looking,
deterministic DLA clusters.
 
Field based DLA looks natural. Can it provide an insight into some parts
of nature? Na. ;^)
 
BTW, working on a C version.
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to comp.lang.c+++unsubscribe@googlegroups.com.

Digest for comp.lang.c++@googlegroups.com - 25 updates in 3 topics

red floyd <no.spam@its.invalid>: Sep 27 10:17PM -0700

[useless gobbledygook redacted]
 
Shut. The. Fuck. Up. And take your religious bullshit to a
newsgroup with "religion" or "christian" in its name.
"Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com>: Sep 28 12:16PM +0200

On 9/28/2017 7:17 AM, red floyd wrote:
> [useless gobbledygook redacted]
 
> Shut. The. Fuck. Up. And take your religious bullshit to a
> newsgroup with "religion" or "christian" in its name.
 
Happy that it seems that I've killfiled all you replied to here.
 
However, I don't entirely agree with you: I think the group should allow
the occasional praise of FSM (the Flying Spaghetti Monster) and Odin,
Tor, Loki & Freya, and in general, Pastafarianism and Norse mythology.
 
Because those are my religions (yes, I only have two religions).
 
 
Cheers!,
 
- Alf
David Brown <david.brown@hesbynett.no>: Sep 28 01:29PM +0200

On 28/09/17 12:16, Alf P. Steinbach wrote:
> the occasional praise of FSM (the Flying Spaghetti Monster) and Odin,
> Tor, Loki & Freya, and in general, Pastafarianism and Norse mythology.
 
> Because those are my religions (yes, I only have two religions).
 
These are popular in my family too.
 
You are not supposed to praise the FSM - just follow the 8 "I'd really
rather you didn't" condiments. (The great thing about these are they
are equally applicable to all religions - and even to people who claim
their religion is not a religion because it is "the truth".)
 
And properly praising Odin and the gang could be a bit messy for a
newsgroup like this!
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Sep 28 04:30AM -0700

It's not about religion. It's about salvation from your sin.
 
These messages are posted here so those who don't go to
church, or visit "religious forums" can also be taught about
their sin, and their need to ask forgiveness to be saved.
 
It's good news. It's eternal life ... just for the asking.
 
Thank you,
Rick C. Hodgin
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Sep 28 08:08AM -0400

On 9/28/2017 1:17 AM, red floyd wrote:
> [.. redacted]
 
> Shut. .. .. . Up. And take your religious .. to a
> newsgroup with "religion" or "christian" in its name.
 
Jesus isn't about condemnation. He's about forgiveness, guiding
each of us toward doing only what's right, teaching us the truth
about ourselves, our world, our future, and He's about giving us
healing for the pain we have in our heart, the pain this world
has pounded us into over our lives.
 
It's not religion.
It's not a club.
It's not judgment.
It's not a list of dos and don'ts.
 
-----
It's about you having your sin physically taken away from your
soul's account, so that you are not guilty before God, so that
you will not be judged, so that God can restore you to eternal
life.
 
It's about God giving you a real second chance to be a part of
His eternal Kingdom.
 
Thank you,
Rick C. Hodgin
Daniel <danielaparker@gmail.com>: Sep 28 05:45AM -0700

On Thursday, September 28, 2017 at 7:30:32 AM UTC-4, Rick C. Hodgin wrote:
 
> It's eternal life ... just for the asking.
 
That didn't work for the rich young man! Have you sold all of you possessions
and given them to the poor?
 
Daniel
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Sep 28 05:58AM -0700

On Thursday, September 28, 2017 at 8:45:29 AM UTC-4, Daniel wrote:
 
> > It's eternal life ... just for the asking.
 
> That didn't work for the rich young man! Have you sold all of you possessions
> and given them to the poor?
 
Christianity is not a works-based religion. And that message Jesus
had for that particular person was to address the thing that was
separating HIM from faith in Jesus.
 
The rich young man had his faith in his possessions. Jesus asked
him to sell everything he had and follow Him because that was the
thing that was separating that young man from Jesus.
 
It's not the same for all people. For some, it's their love of
this or that. For some it's the desire to do this or that. But
for each of us, in our sin, because of our sin, we have something
that is separating us from God.
 
-----
Christianity is about faith, and even that faith is a gift from God.
Until God reaches in to a person's soul and flips invisible switches,
nobody can come to Christ. But for all who will seek the truth, even
if they don't know what they'll find when they get there, then for
those people God makes it possible for them to come to faith. He
flips those invisible switches which impel us from within to come to
Him, repent, ask forgiveness, and receive salvation.
 
It's a free offer for all who will receive it. But God honors our
choices. If we will not seek the truth, then He will honor that
choice even though it leads us to Hell. But even so, He continues
to send men and women like me into your lives to teach you these
things, to spark curiosity, to potentially jar you from a prior
mis-conception you're holding on to regarding God, just as I did
above for you.
 
You used the example that to be a Christian, he/she must sell all
his/her possessions and then follow Jesus. You most likely did
this to mock me, but nonetheless, such a teaching is there in
scripture. What you failed to realize was the reason why Jesus
said that particular thing to that particular person.
 
And if you are mistaken in that thinking, what other thinkings
regarding scripture are you also mistaken in?
 
If you can get to the place where you can say to yourself, "God, I
may be wrong. I don't think I am, but I might be. And if I am,
then I want to know the truth. The real truth." If you can get
to that place, God will do the rest in your salvation.
 
Thank you,
Rick C. Hodgin
Melzzzzz <Melzzzzz@zzzzz.com>: Sep 28 01:02PM


> Christianity is not a works-based religion. And that message Jesus
> had for that particular person was to address the thing that was
> separating HIM from faith in Jesus.
 
Said sect which is not recognized by mainstream. Seek professional help.
You need it. Things can just get worse, you can loose your IQ and
became intellent like idiot which is obbvious from your postings. Don't
hasitate, before too late. You just became stupid again.
 
 
--
press any key to continue or any other to quit...
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Sep 28 06:10AM -0700

On Thursday, September 28, 2017 at 9:02:20 AM UTC-4, Melzzzzz wrote:
> You need it. Things can just get worse, you can loose your IQ and
> became intellent like idiot which is obbvious from your postings. Don't
> hasitate, before too late. You just became stupid again.
 
Look at the fruit of my life, Melzzzzz. I advocate:
 
(1) Loving one another.
(2) Not fighting with one another, but seeking peace actively.
(3) Teaching one another, passing on your skills freely.
(4) Using your time each today to help other people rather
than watching TV or going to the movies. Go and help
your neighbor paint their house, for example.
(5) Re-purposing your goals to do things you need, but in a
way that will also help others by making them owners,
and not renters.
(6) As a general focus in life: Look to improve the lives
of those around you by your labor time, thinking, goals,
and activities.
 
Which of these do you disagree with?
 
What you do disagree with is the fact that I point to Jesus as the
reason why I do this, and I point to Jesus for the reason why you
should do this. Your flesh knows it is in sin, and you know in your
core that you are in sin, and it is that sin you're holding on to
which is in rebellion against God, which manifests itself as this
real need you have to attempt to demean and discredit me, because
if you can do that and succeed, then it means you are not under the
very judgment you are under today.
 
It will never work. The truth is invincible. It defeats every
enemy in all circumstances. And Jesus is truth.
 
Thank you,
Rick C. Hodgin
Daniel <danielaparker@gmail.com>: Sep 28 06:14AM -0700

On Thursday, September 28, 2017 at 8:58:29 AM UTC-4, Rick C. Hodgin wrote:
 
> Christianity is not a works-based religion.
 
"What shall it profit, my brethren, if a man say he hath faith, but hath not works?" The Letter of James
Melzzzzz <Melzzzzz@zzzzz.com>: Sep 28 01:15PM

>> became intellent like idiot which is obbvious from your postings. Don't
>> hasitate, before too late. You just became stupid again.
 
> Look at the fruit of my life, Melzzzzz. I advocate:
 
Do you know someone that does not advocate that?
> of those around you by your labor time, thinking, goals,
> and activities.
 
> Which of these do you disagree with?
 
I don't have problem with that rather I notice you have mental
problems...
 
--
press any key to continue or any other to quit...
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Sep 28 09:28AM -0400

On 9/28/2017 9:14 AM, Daniel wrote:
> On Thursday, September 28, 2017 at 8:58:29 AM UTC-4, Rick C. Hodgin wrote:
 
>> Christianity is not a works-based religion.
 
> "What shall it profit, my brethren, if a man say he hath faith, but hath not works?" The Letter of James
 
We are saved by faith, but faith without works is dead. If one has
faith, they must also have works, because works will naturally flow
out of their faith, which evidences their faiths.
 

https://www.biblegateway.com/passage/?search=James+2%3A17-26&version=KJV
 
But, it's not the works which gain salvation:
 

https://www.biblegateway.com/passage/?search=Ephesians+2%3A8-9&version=KJV
 
8 For by grace are ye saved through faith; and that not of
yourselves: it is the gift of God:
9 Not of works, lest any man should boast.
 
It is simply that if we have genuine faith, we will also have real
works. So, faith does have a works member, but works DOES NOT have
a faith member:
 
faith->works // Valid
works->faith // Unknown member
 
It does have a pseudo-faith member, however:
 
works->pseudoFaith // Does exist, but only harm the user
 
Thank you,
Rick C. Hodgin
Daniel <danielaparker@gmail.com>: Sep 28 06:32AM -0700

On Thursday, September 28, 2017 at 8:58:29 AM UTC-4, Rick C. Hodgin wrote:
 
> ... something that is separating us from God.
 
A man ran up and knelt before him and asked him, "Good Teacher, what must I do
to inherit eternal life?" 18 And Jesus said to him, "You lack one thing: go,
stop spamming usenet." 22 Disheartened by the saying, he went away sorrowful,
for he loved spamming usenet.
Daniel <danielaparker@gmail.com>: Sep 28 06:41AM -0700

On Thursday, September 28, 2017 at 9:28:54 AM UTC-4, Rick C. Hodgin wrote:
 
> >> Christianity is not a works-based religion.
 
> > "What shall it profit, my brethren, if a man say he hath faith, but hath not works?" The Letter of James
 
> But, it's not the works which gain salvation:
 
The Letter of James was a rebuke from the Jerusalem Church to the teachings
of that whippersnapper Paul, who taught what you're describing. It appears
that your variant of Christianity comes from Paul, rather than the original
apostles.
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Sep 28 09:43AM -0400

On 9/28/2017 9:32 AM, Daniel wrote:
> to inherit eternal life?" 18 And Jesus said to him, "You lack one thing: go,
> stop spamming usenet." 22 Disheartened by the saying, he went away sorrowful,
> for he loved spamming usenet.
 
It's an incorrect assumption to think these message are spam. Jesus
said in Matthew 28:18+ that all power and authority had been given
Him in Heaven and on the Earth. We are to go ye therefore and teach
all nations, baptizing them in the name of the Father, Son, and Holy
Ghost, teaching them to obey all things whatsoever He has commanded.
 
That "baptizing" part is not meant to be water baptism only. It is
intended to be an immersion in our lives of the Lord and His teachings.
It is preceded by a teaching request, and followed by another teaching
request. It is to be the catalyst which causes that teaching to come
into being: full immersion in the things of God.
 
We are supposed to have God ahead of all things in our lives every-
where. We are supposed to hold all of our ideas, goals, thinkings,
wants, wishes, all of it before God BEFORE we move on them. We are
to keep ourselves under subjection to God.
 
God doesn't do this to impede us, but to protect us from the enemy
who is at work in this world. That enemy is seeking to harm us and
destroy our soul in Hell. God is seeking to guide us toward full and
rich prosperity in right ways, and to give us forgiveness of sin and
eternal life.
 
It's not spam. It's God's love reaching out to a sinful world for
those few who will be saved. The message is not given for other
people, but for all who will be saved it is given for them.
 
If you can hear His call on the inside of your heart, then rejoice!
It is God reaching out to save your eternal soul from eternal death
in Hellfire. It is true cause for celebration. Even the angels in
Heaven rejoice when a sinner repents:
 
https://www.biblegateway.com/passage/?search=Luke+15%3A10&version=KJV
 
10 Likewise, I say unto you, there is joy in the presence of
the angels of God over one sinner that repenteth.
 
The angels of God are distinct from the angels of Satan (demons).
Both are real, and the demons are here among us tempting us con-
tinually toward immorality and sin. They are literally around you
right now where you are, invisibly to our eye, but in real ways
influencing your thinking, your feelings.
 
If you ask God to protect you from them, and seek to be saved from
within, then He will draw you away from them and to salvation. It's
why these messages go forth: To teach those who will be saved those
things they need to know. None of it is intended for other people.
 
Thank you,
Rick C. Hodgin
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Sep 28 09:48AM -0400

On 9/28/2017 9:41 AM, Daniel wrote:
> of that whippersnapper Paul, who taught what you're describing. It appears
> that your variant of Christianity comes from Paul, rather than the original
> apostles.
 
There is a large movement which attempts to discredit Paul, or to
hone in on particular aspects and try to make a case out of those
being a cause for disbelief of this teaching or that, but the one
central message of the New Testament addresses the one common theme:
 
(1) We have sin.
(2) Our sin condemns us to judgment and Hellfire.
(3) Jesus came into the world to forgive our sin.
(4) All who put their faith in Christ and ask Him to
forgive their sin gain eternal life.
 
The Bible is before you, Daniel. You don't need me or anyone else
to teach you what it says. God Himself will teach you if you read
and study it seeking the truth, He will reveal to you that truth,
as much as you're able to receive.
 
Seek the truth and you will find it. That's a promise from God,
not from me.
 
Thank you,
Rick C. Hodgin
Daniel <danielaparker@gmail.com>: Sep 28 06:53AM -0700

On Thursday, September 28, 2017 at 9:43:49 AM UTC-4, Rick C. Hodgin wrote:
> > stop spamming usenet." 22 Disheartened by the saying, he went away sorrowful,
> > for he loved spamming usenet.
 
> It's an incorrect assumption to think these message are spam.
 
Of course they're spam. Everybody here thinks so, believers and non-
believers alike. And you love to spam, like the rich young man loved his
possessions. You couldn't give it up even if your eternal life depended
on it, just as the rich young man couldn't give up his possessions.
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Sep 28 10:05AM -0400

On 9/28/2017 9:53 AM, Daniel wrote:
> believers alike. And you love to spam, like the rich young man loved his
> possessions. You couldn't give it up even if your eternal life depended
> on it, just as the rich young man couldn't give up his possessions.
 
If you go back and read my posts, you'll see every one of them is a
teaching effort. I address incorrect thinking, incorrect beliefs,
things stated that are in error, etc.
 
I point people to Christ because I want them saved. It was the
reason Jesus left Heaven and came to Earth to live as one of us.
He cared enough about people to push His existence in Heaven's
perfection aside for a time, so that He could save us.
 
My goals are to reach people with the knowledge that they have sin,
are under judgment and condemnation, and that Jesus will save them
from that just for the asking.
 
It is a proper thing to do with one's time. It is the thing all
born again Christians will do with their time, though the weight
of our sinful flesh and the sin in this world pulls strongly
against us as real evil spirits align to drag us into ineffective,
fruitless works by their spiritual influence upon our flesh. But
as John teaches:
 
https://www.biblegateway.com/passage/?search=1+John+5%3A4-5&version=KJV
 
4 For whatsoever is born of God overcometh the world: and
this is the victory that overcometh the world, even our
faith.
 
5 Who is he that overcometh the world, but he that believeth
that Jesus is the Son of God?
 
It takes time sometimes because the inertia of our former life,
a life taught to us by demons, drags heavily against us through
our sinful flesh. But when we press in and seek to pursue the
spirit in an honest pursuit of the truth, the spirit overrides
the flesh and our victory in Christ is assured, as it asserts
itself in the visible fruit of a person's life.
 
If all I did was just sit back and write these things, you could
conclude that it was just spam. But when you look at the fruit
of my works, the result of years of labor purposed on a real-
world application of these things I teach, you must realize they
are not just spam, but are honest teachings of those things we
are supposed to do, and that Christ has enabled me to do in an
ongoing manner. And as I've said many times, Rick the man has
tried repeatedly to thwart this effort in seeking to create a
full hardware and software stack unto God. I've grown tired,
weary, and have even resolved within myself to walk away twice.
But the spirit of God continues to move within me and I am
impelled from within to proceed.
 
It will be the same for all people who are born again. Wherever
they are they will overcome the enemy's attempts to thwart them
in their life, and their life's goals. Greater is He who is in
me, than he who is in the world.
 
Jesus gives us full victory. We just need to receive it and
walk in it.
 
--
Thank you, | Indianapolis, Indiana | God is love -- 1 John 4:7-9
Rick C. Hodgin | http://www.libsf.org/ | http://tinyurl.com/yaogvqhj
-------------------------------------------------------------------------
Software: LSA/C, Debi, RDC, CAlive, ES/2, VJr, VFrP, Logician, C90/99
Hardware:
Aroxda Desktop CPU -- 40-bit multi-core 80386 with many extensions
Arxita Embedded CPU -- Low power, low pin count 80386 w/128 registers
Arlina Compute FPGA -- Scalable compute cores, large GPIO pin count
 
CAlive:
https://groups.google.com/forum/#!forum/caliveprogramminglanguage
 
RDC:
https://groups.google.com/forum/#!forum/rapid_development_compiler
 
All LibSF Source Code:
http://www.libsf.org:8990/projects/LIB/repos/libsf/browse/
 
Public Domain License (with a caveat):
http://www.libsf.org:8990/projects/LIB/repos/libsf/browse/pbl_v1.txt
Daniel <danielaparker@gmail.com>: Sep 28 12:27PM -0700

On Thursday, September 28, 2017 at 10:05:32 AM UTC-4, Rick C. Hodgin wrote:
 
> teaching ... I address incorrect thinking, incorrect beliefs,
> things stated that are in error, etc.
 
You're no teacher, Rick, no student either. There's no delight in inquiry in
your messages, there is no curiosity, no discoveries. There are no ideas,
ideas would only frighten you. No scholarship, not a hint of an interest in
the vast field of scholarship that studies the texts using biblical and
extra biblical sources. What you are doing is you are spamming, and you
enjoy spamming, in the same way that the fornicator enjoys fornication (in
defense of the fornicator: fornication is fun, but spamming is just a waste
of time.)
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Sep 28 03:32PM -0400

On 9/28/2017 3:27 PM, Daniel wrote:
> enjoy spamming, in the same way that the fornicator enjoys fornication (in
> defense of the fornicator: fornication is fun, but spamming is just a waste
> of time.)
 
Read them again, Daniel, but this time with at truth-seeking heart.
 
Every message I have teaches us we are (1) sinners, (2) damned, and
that (3) Jesus came to forgive us so we are no longer damned, but are
alive in eternity in the paradise of Heaven with God in a body like
the angels walking on the streets of gold.
 
There is NOTHING wrong with that message, or that teaching. It is
ENTIRELY everything you need to know in this world, because if you
can come to that point you'll know that everything before Christ was
a waste, and even after Christ your old flesh fights against you
continually trying to keep you from a righteous walk.
 
But God is greater, and He does the work within you making it possible
for you to overcome that old sinful man in your flesh.
 
Good luck, Daniel. The truth knocks at your door. It will continue
to do so until you leave this world, or until you open the door and
receive it.
 
Thank you,
Rick C. Hodgin
Jorgen Grahn <grahn+nntp@snipabacken.se>: Sep 22 08:17AM

On Fri, 2017-09-22, Mwater07 wrote:
 
> indexes. Then would like t to calculate the dot product and displays
> the result. I am struggling to read in vector values with indexes
> into a link list. Please advice
...
> {
> private:
> node *head,*tail;
...
 
Is this a school exercise? It's almost always a bad idea to create
your own linked lists instead of using std::list (and using std::list
is usually a bad idea, too).
 
Not wanting to invent this particular wheel is one of the main reasons
I write in C++ instead of C.
 
/Jorgen
 
--
// Jorgen Grahn <grahn@ Oo o. . .
\X/ snipabacken.se> O o .
Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk>: Sep 22 11:19PM +0100

On 22/09/2017 09:17, Jorgen Grahn wrote:
[snip]
> Is this a school exercise? It's almost always a bad idea to create
> your own linked lists instead of using std::list (and using std::list
> is usually a bad idea, too).
 
Using std::list is not usually a bad idea if you usually use std::list
when appropriate to do so.
 
/Flibble
Juha Nieminen <nospam@thanks.invalid>: Sep 23 07:15AM

> head=new node (a[i],head);
> }
> };
 
Not an answer to your actual question, but you really shouldn't
be creating your own dynamically allocated data structures if
you are not going to follow the meticulous requirements to make
it safe. Your linked_list class above is plagued with multitudes
of problems (starting with the fact that you allocate nodes
with 'new' but you don't 'delete' them anywhere. But that's just
the *start* of the problems.)
 
In general, unless there's a good reason not to, if you want to
use a linked list, use std::list or std::forward_list.
 
(The only reasons to create your own implementation is as an
exercise in C++, in which case you really, really should follow
the rule of threes (or fours as is the case with C++11), or if
you require a special list that's somehow different from the
standard one (in which case you *also* should follow the rule of
threes as well.))
ruben safir <ruben@mrbrklyn.com>: Sep 23 06:44PM -0400

On 09/22/2017 12:33 AM, Barry Schwarz wrote:
> for (i = 0; i < vector.size; i++)
> {do something with v[i]}
 
for(auto x:v )
{ do something with x}
David Brown <david.brown@hesbynett.no>: Sep 21 07:13PM +0200

On 21/09/17 16:57, Chris Vine wrote:
> ints there will be no difference because both will be optimized into
> the same object code, but it might make a difference with class types
> with non-trivial constructors.
 
Oh, absolutely. When swapping, std::swap is the first choice. I was
merely playing around to see how things were working with std::tie and
related things, and hit a mental block.
 
> out non-trivial constructor calls is allowed these days except in RVO
> cases: possibly C++17 gives more leeway, I'm not sure. You would like
> to think so.
 
There is always the "as if" rule - if the compiler can see there is no
visible difference to the program if constructor calls are "optimised
out", then it is free to do so.
 
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to comp.lang.c+++unsubscribe@googlegroups.com.

Wednesday, September 27, 2017

Digest for comp.lang.c++@googlegroups.com - 2 updates in 1 topic

"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Sep 27 05:39AM -0700

There is additional information about this on this thread:
 
https://groups.google.com/d/msg/comp.arch/FHcTC4_xQMs/uwwqpFrHBAAJ
 
It describes how we are all a part of a larger-than-any-of-us plan
put in motion by God, whereby He created us on purpose, put us where
we are on purpose, gave us the ability and opportunity to learn and
know and be creative and do (on purpose), so that we could be a part
of that which He is doing for mankind.
 
Our goals in using the skills and abilities we've been given, and
in our labor time and efforts, are to look up to Him and see how He
wants us to be a part of this assembly of man He's created.
 
Each of us is a part of that system, and when we acknowledge that
actively, and look up to God actively, and seek how we can use our
skills and talents to improve the people around us and be a part of
that world He intends for us here on Earth, then we are moving as
we should be, and then we are part of His plan, and then our labor
will bear forth unto real fruit, even fruit which lasts into the
hereafter because those things we do for Christ will be tried in
the fire along with all our other works, and those things we do for
Him will not be burned up by the fire, but will endure, and we will
receive a reward.
 
Refocus your life and your life's purpose on serving God with your
skills. Don't follow after the ways of the world, but rely upon
God to provide for you, and use everything you possess to try to
improve the lives of those around you. And if you ever have any
doubts or concerns on how to do that, ask God the Father ... literally
ask Him in prayer. Say in your prayer, "Jesus, I've come to you
asking forgiveness for my sin so I could be saved, and now I'm here
wondering what to do next. You've told me that I can come boldly
before the Throne of Grace, and that I can speak directly to God the
Father. So, I come forward and I ask: Father, please show me in
my life what to do, and how to do it."
 
God has promised to guide us:
 
https://www.biblegateway.com/passage/?search=James+1%3A5&version=KJV
 
James 1:5 - "If any of you lack wisdom, let him ask of God, that
giveth to all men liberally, and upbraideth not; and
it shall be given him."
 
The word upbraideth there means it won't be tangled or confusing,
but will be easy to receive, known, and understand, because God
gives to us at the point of our abilities, just as you would give
to your 14-year old at a 14-year old level, and your 8-year old
at an 8-year old level. God does the same for us.
 
It is a great comfort to know you are part of God's Kingdom. It
gives you real inner peace, and as He begins to work in your life
you look around and go, "Wow! Will you look at that." It's not
you doing it, but it's God living inside you guiding you to do it.
It's something you cannot help but feel awe over.
 
Thank you,
Rick C. Hodgin
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Sep 27 05:44AM -0700

On Wednesday, September 27, 2017 Rick C. Hodgin wrote:
> gives to us at the point of our abilities, just as you would give
> to your 14-year old at a 14-year old level, and your 8-year old
> at an 8-year old level. God does the same for us.
 
It's interesting how the spirit of God works in a person. When I
posted this, there was a feeling inside of me that I did not have
the correct definition for upbraideth. I have heard teachings on
this matter before and that was the explanation given me, but the
spirit of God guides us to all truth. He gave me a feeling within
my core that it wasn't right.
 
I went and looked it up:
 
http://av1611.com/kjbp/kjv-dictionary/upbraid.html
 
2. To reproach; to chide.
God who giveth to all men liberally, and upbraideth not.
James 1.
 
It means God won't criticize you for not knowing something, or
having not yet figured it out on your own. He's a good Father,
and He teaches His children properly, lovingly, in all areas.
 
> you look around and go, "Wow! Will you look at that." It's not
> you doing it, but it's God living inside you guiding you to do it.
> It's something you cannot help but feel awe over.
 
Amen.
 
--
Thank you, | Indianapolis, Indiana | God is love -- 1 John 4:7-9
Rick C. Hodgin | http://www.libsf.org/ | http://tinyurl.com/yaogvqhj
-------------------------------------------------------------------------
Software: LSA/C, Debi, RDC, CAlive, ES/2, VJr, VFrP, Logician, C90/99
Hardware:
Aroxda Desktop CPU -- 40-bit multi-core 80386 with many extensions
Arxita Embedded CPU -- Low power, low pin count 80386 w/128 registers
Arlina Compute FPGA -- Scalable compute cores, large GPIO pin count
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to comp.lang.c+++unsubscribe@googlegroups.com.