Tuesday, September 30, 2014

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

comp.lang.c++@googlegroups.com Google Groups
Unsure why you received this message? You previously subscribed to digests from this group, but we haven't been sending them for a while. We fixed that, but if you don't want to get these messages, send an email to comp.lang.c+++unsubscribe@googlegroups.com.
woodbrian77@gmail.com: Sep 29 10:08PM -0700

On Monday, September 29, 2014 2:50:50 PM UTC-5, Mr Flibble wrote:
 
> Only got one comment: use boost.asio and get rid of all that crap.
 
The C++ Middleware Writer is an alternative to the
serialization library in Boost more so than asio.
 
 
Brian
Ebenezer Enterprises
http://webEbenezer.net
Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk>: Sep 30 06:33PM +0100


>> Only got one comment: use boost.asio and get rid of all that crap.
 
> The C++ Middleware Writer is an alternative to the
> serialization library in Boost more so than asio.
 
That is no reason to not use boost.asio; boost.asio is for networking
not serialization.
 
Rule of thumb for modern software development: as much as your code as
possible should be portable so get rid of that Winsock shite and use
boost.asio.
 
/Flibble
Christopher Pisz <nospam@notanaddress.com>: Sep 30 02:32PM -0500

On 9/30/2014 12:33 PM, Mr Flibble wrote:
> possible should be portable so get rid of that Winsock shite and use
> boost.asio.
 
> /Flibble
 
I don't particularly enjoy debugging boost.asio, but haven't really
heard of anyone getting around that with iocp. Who started the thread,
is hard to find out.
"Öö Tiib" <ootiib@hot.ee>: Sep 30 02:29PM -0700

On Tuesday, 30 September 2014 22:33:16 UTC+3, Christopher Pisz wrote:
 
> I don't particularly enjoy debugging boost.asio, but haven't really
> heard of anyone getting around that with iocp. Who started the thread,
> is hard to find out.
 
Sometimes it is indeed difficult to debug modern C++ if all types
around of where something breaks are whole page of "<", "::" and ">"
nausea far worse than worst of XML. There is alternatively a C
library named "libuv" (part of "node.js" but may be used separately)
that is somewhat similar to boost.asio and that people use for
networking quite finely.
c.milanesi.bg@gmail.com: Sep 30 02:13PM -0700

> I hope you are aware that something like this exists in boost?
 
Sure, but I was not satisfied by that, and so I designed and
implemented my own library.
 
> In what sense is your work different
> or even better than the boost solution?
 
I don't really know Boost.Units,
but here are some apparent differences.
 
Boost.Units supports 12-year-old compilers, while Cpp-Measures
requires, and takes advantage of, the parts of C++11 available
in GCC and VC++ 2012.
 
Boost.Units includes many definitions of magnitudes and units
in the library, while Cpp-Measures requires that the application
programmer defines the needed magnitudes and the units,
although many examples will be available in documentation.
 
Boost, when expanded, is 500 megabytes large,
while Cpp-Measures is 200 KB of library code
for the application programmer,
and less than 1 MB with all tests and documentation.
It is not clear to me how to install only the Boost.Units library
and its dependencies instead of all Boost.
 
Application code using Cpp-Measures is less verbose.
For example, the following Boost.Units expression
 
quantity<absolute<fahrenheit::temperature> >
T1p(32.0*absolute<fahrenheit::temperature>());
 
corresponds to the following Cpp-Measures expression
 
point1<fahrenheit> T1p(32);
 
Application code using Cpp-Measures is compiled faster
and produces less machine code.
For example, the example provided by Boost.Units Quick Start page,
when compiled using GCC for Windows, with stripping and optimization,
takes 3 times the time to compile the equivalent code
using Cpp-Measures, and generates an executable 7 times as large.
 
Cpp-Measures supports 2-dimensional and 3-dimensional measures,
with algebraic operations, dot product and cross product,
while I couldn't find such features in Boost.Units.
 
Cpp-Measures supports signed and unsigned angles modulo one turn,
while I couldn't find such features in Boost.Units.
 
> - do you differentiate between absolute and relative values (for
> instance for time, but also for location/distance)
 
Yes, for example, a variable representing an absolute length measured
in inches, is defined as:
 
point1<inches> variable_name;
 
While a variable representing a relative length measured
in inches, is defined as:
 
vect1<inches> variable_name;
 
> - can you work with non-floating-point base types (especially
> fixed-point types implemented on top of integers)?
 
I tested it with the following types:
float, double, long double, int, long, long long, complex<double>.
Not tested yet, and probably not working properly yet
fixed-point, rational, multiple-precision,
and arbitrary-precision types.
 
> - can you work with mixed base types (for instance fixed-point types
> based on integers of various size and scaling)?
 
Automatic conversion between fixed-point types is not supported yet,
but you can do something like the following:
 
auto a = vect1<inches,float>(1.2f) + vect1<inches,double>(2.3);
 
And you get that "a" is of type "vect1<inches,double>",
and it has value 3.5.
 
--
 
Carlo Milanesi
Robert Hutchings <rm.hutchings@gmail.com>: Sep 29 06:43PM -0500

On 9/29/2014 6:18 PM, JiiPee wrote:
> understand and accept that all the code done in workplace belongs to the
> company, that is natural.... but I do not think its right that also code
> outside work is theirs.
Yes, I agree with you. If I write C++ code that has nothing to do with
my employer, how can they claim it as "their" IP? THAT makes no sense
to me...
Christopher Pisz <nospam@notanaddress.com>: Sep 29 06:51PM -0500

On 9/29/2014 6:18 PM, JiiPee wrote:
> understand and accept that all the code done in workplace belongs to the
> company, that is natural.... but I do not think its right that also code
> outside work is theirs.
 
 
Usuaully the intelectual property blurb in the paperwork states that it
own works _related to the company's business_, which is reasonable. If
you have a blurb in your paperwork sweeping everything without that
condition, than I'd mention it. If you have a project worth anything,
i.e a game engine you've been working on for 5 years, I A) Wouldn't
recommend working for a game company B) Would get written papers stating
that you will retain ownership and that they have been notified that
this work was underway before your employment.
Stuart <DerTopper@web.de>: Sep 30 09:36AM +0200

On 09/30/14, JiiPee wrote:
> understand and accept that all the code done in workplace belongs to the
> company, that is natural.... but I do not think its right that also code
> outside work is theirs.
 
Well, they can say anything they want, that's the beauty of freedom of
speech. Whether it is legally sound or not is quite another story. Here
in Germany your landlord can put a clause into your contract that you
have to paper the walls regularly. However, such a clause is illegal in
Germany and has therefore no effect. Worse, it can nullify the whole
contract - which is why they put an severability clause into the
contract as well. If your contract does not contain such a clause,
things may turn out to be very interesting, indeed.
 
Just out of curiousity: If you write a virus in your spare time which
destroys all atomic weapons in the world (good job IMHO), and the
Russians and the US Army are looking for someone to shoot, would it be
your head in the block or your bosses? After all, it was _his_ code... ;-)
 
Regards,
Stuart
 
PS: I wouldn't work for such a company in the first place. That doesn't
mean that I have a problem with security, I just don't like ridiculous
interference with my personal life (another thing would be if I worked
for the MoD and went to anti-war demonstrations). It turns out that my
contract contains a clause that I must not make statements about my work
or my company to existing and _future_ clients of our company. That's a
bummer. When I confronted my boss - whom I went to school with for two
years - he admitted that he did not even read through this particular
clause, he just copied the whole thing from the internet.
David Brown <david.brown@hesbynett.no>: Sep 30 09:44AM +0200

On 30/09/14 01:18, JiiPee wrote:
> understand and accept that all the code done in workplace belongs to the
> company, that is natural.... but I do not think its right that also code
> outside work is theirs.
 
It is not uncommon for software companies to have this attitude - in
fact, I believe it is the default legal position. The reasoning is
basically that if you work for them as a professional programmer, then
when you program you do so as a professional. Thus when you are
programming, you are working - you are therefore either working for them
(and they own the code), or you are moonlighting (which is illegal) and
competing against your own employer.
 
Of course it is usually possible to form agreements about what this
covers, such as distinguishing between different types of programming,
or for specific cases - just as you can take a second job with agreement
from your main employer.
 
A good employer will be happy to reach an accord of some sort - as long
as you are not tiring yourself out with hobby programming to late at
night (and thus unable to do your real job as well as you could), and as
long as you are not competing with them in some way, then it is usually
fine.
 
The same thing applies in many professions, and there have been
countless cases of disagreement when someone has made an invention at
home that their employer then claims. So it is best to get details of
such agreements in writing - especially if you are doing something that
might turn out to be valuable.
seeplus <gizmomaker@bigpond.com>: Sep 30 12:59AM -0700

On Tuesday, September 30, 2014 5:37:16 PM UTC+10, Stuart wrote:
> bummer. When I confronted my boss - whom I went to school with for two
> years - he admitted that he did not even read through this particular
> clause, he just copied the whole thing from the internet.
 
Haa!
 
Who can take in all those Ts and Cs that companies stick in there.
Did you see that experiment setting up a free Wi-Fi hotspot
in London recently.
 
{ When people connected to the hotspot, the terms and conditions
they were asked to sign up to included a "Herod clause" promising
free Wi-Fi but only if "the recipient agreed to assign their
first born child to us for the duration of eternity".
 
Six people signed up.}
"Osmium" <r124c4u102@comcast.net>: Sep 30 06:57AM -0500

"Stuart" wrote:
 
> bummer. When I confronted my boss - whom I went to school with for two
> years - he admitted that he did not even read through this particular
> clause, he just copied the whole thing from the internet.
 
I think your chance of getting a job as a programmer or an engineer with
those constraints in the USA are real close to zero. Unless you are Very
Special the company is not going to be willing to even enter negotiations
with you regarding the basics. It also displays an "attitude".
 
A friend of mine wrote Science Fiction as a hobby. Our company refused to
give him permission to have it published since it might reflect badly on the
company.
drew@furrfu.invalid (Drew Lawson): Sep 30 12:27PM

In article <mNlWv.358129$J62.156216@fx03.am4>
 
>When I entered my first software company, they said they also own all
>the code I do on my spare time, even if its some game I am programming
>at home. Is this really true as well?
 
When you took that job, you most likely signed an employment
agreement. If this was in that agreement, then it is true. Depending
on jurisdiction, some parts of that agreement may not be enforcable.
 
The agreements I've been under have included:
 
1) The company owns anything done on company time and company
equipment, if it relates to the main business interests of the
company.
 
2) The company owns anything done on company equipment.
 
3) The company owns any IP created during my employment, unless
explicitly dislaimed. Any patents I receive must be assigned
to the company.
 
I think I'm currently under #3, but I haven't had reason to look
recently.
 
In some circles, #3 is called things like "the IBM rule," as they
were well known for having and enforcing that. If you were working
on the Great American Novel, it was recommended to pass it by HR
and get acknowledgement that it was a personal work.
 
 
>understand and accept that all the code done in workplace belongs to the
>company, that is natural.... but I do not think its right that also code
>outside work is theirs.
 
Somewhat, this is for legal convenience. How do you prove that
your project was done on your home computer, rather than on the
company's dime?
 
--
Drew Lawson | "But the senator, while insisting he was not
| intoxicated, could not explain his nudity."
Bo Persson <bop@gmb.dk>: Sep 30 06:30PM +0200

On 2014-09-30 01:43, Robert Hutchings wrote:
> If I write C++ code that has nothing to do with
> my employer, how can they claim it as "their" IP? THAT makes no sense
> to me...
 
And what if their huge team of lawyers claim that is DOES have something
to do with your employer? Like their secret plans for a new product...
 
 
Bo Persson
Robert Hutchings <rm.hutchings@gmail.com>: Sep 30 12:00PM -0500

On 9/30/2014 11:30 AM, Bo Persson wrote:
 
> And what if their huge team of lawyers claim that is DOES have something
> to do with your employer? Like their secret plans for a new product...
 
> Bo Persson
 
Indeed! Unless one signs a contract that explicitly states that "C++
code developed for personal use is NOT the IP of <employer>", you would
have to fight a team of lawyers, and that is a daunting prospect...
woodbrian77@gmail.com: Sep 30 11:03AM -0700

On Tuesday, September 30, 2014 12:00:53 PM UTC-5, Robert Hutchings wrote:
 
> Indeed! Unless one signs a contract that explicitly states that "C++
> code developed for personal use is NOT the IP of <employer>", you would
> have to fight a team of lawyers, and that is a daunting prospect...
 
When it comes to dealing with companies with lots
of lawyers, you have to be careful. I haven't had a
debit or credit card in over 10 years because I don't
trust those companies.
 
There are advantages to working for a small company.
One of them is you don't have to fend off those lawyers.
 
 
Brian
Ebenezer Enterprises
http://webEbenezer.net
Stuart <DerTopper@web.de>: Sep 30 10:14PM +0200

Stuart wrote:
>> bummer. When I confronted my boss - whom I went to school with for two
>> years - he admitted that he did not even read through this particular
>> clause, he just copied the whole thing from the internet.
 
 
On 09/30/14, Osmium wrote:
> those constraints in the USA are real close to zero. Unless you are Very
> Special the company is not going to be willing to even enter negotiations
> with you regarding the basics. It also displays an "attitude".
 
Gosh, I hadn't suspected this. I wonder whether this is an "American"
thing or just another indicator that software engineers are getting
closer and closer to the status of a McDonald employee. If I look at the
rates that are offered in most freelancer websites, I'd say that
McDonalds employees are only slighly less paid.
 
> A friend of mine wrote Science Fiction as a hobby. Our company refused to
> give him permission to have it published since it might reflect badly on the
> company.
 
I can partly understand this. However, it would be better if your
company allowed your friend to publish under a pseudonym.
 
Regards,
Stuart
Vir Campestris <vir.campestris@invalid.invalid>: Sep 30 09:30PM +0100

On 30/09/2014 00:18, JiiPee wrote:
> understand and accept that all the code done in workplace belongs to the
> company, that is natural.... but I do not think its right that also code
> outside work is theirs.
 
This depends on your contract and the country where you work.
 
If you really want to know seek a legal newsgroup, or even pay a lawyer.
 
uk.legal.moderated is quite good, but I suspect not relevant to you.
 
Andy
Christopher Pisz <nospam@notanaddress.com>: Sep 30 03:31PM -0500

On 9/30/2014 3:14 PM, Stuart wrote:
> Stuart wrote:
SNIP
> closer and closer to the status of a McDonald employee. If I look at the
> rates that are offered in most freelancer websites, I'd say that
> McDonalds employees are only slighly less paid.
SNIP
 
Eh? I'm in America. Like I said before in this thread, it is pretty much
expected at any job that there will be some intellectual property clause
in your hiring paperwork. Usually, it only makes claims on things
_related to the companies business_, rather than a sweeping claim on
everything you do. i.e No, you cannot create a video game on your own
while working for a game studio. You can however invent the best flap
jack recipe.
 
As far as salaries go, I have never met a McDonald's employee making
$120,000/year. Of course, I don't get to McDonald's very often. I
suppose it depends what kind of software and where on the totem pole you
are. I am sure some companies I've worked for have done the "Let's hire
50 Afghanistan grunts to sludge out this code for $15/hr" and I don't
know the details of how that works, only that it results in a
maintenance nightmare. Perhaps that's what you are referring to when you
compare salaries. However, the average Software Engineer in America is
expected to make $60,000 out of college and the average McDonald's Fry
Cook is expected to make $10/hr. I think the average junior salary is
around $80,000 and seniors typically make $100,000+ last I checked. It
varies with your niche and city though.
 
Are Europeans making less? Their money is worth more, so perhaps. I dunno.
JKdr <jkdr@siberianoutpost.com>: Sep 30 05:06AM -0400

Input would be:
 
1) the strings that need to be searched for (or regex patterns) and
their substitutions
 
2) a stream (from a file) and its encoding
 
I spent some time trying to find an implementation of such an
algorithm, which I think shouldn't be a big deal at least in the case
that you don't use regex, just strings to find, but all implementations
I have found touch the input stream more than once
 
I think the data strategies of such algorithms is based on
graphs/decision trees, which are used in state machines and similar
algorithms
 
Unless I am missing something
 
Any ideas you could shared?
 
lbrtchx
(comp.lang.c++)
Jorgen Grahn <grahn+nntp@snipabacken.se>: Sep 30 09:44AM

On Tue, 2014-09-30, JKdr wrote:
> algorithm, which I think shouldn't be a big deal at least in the case
> that you don't use regex, just strings to find, but all implementations
> I have found touch the input stream more than once
 
Which ones /have/ you found?
 
> algorithms
 
> Unless I am missing something
 
> Any ideas you could shared?
 
Not really ... but I /have/ looked into the simpler case "search for
multiple strings at once" and there are several algorithms. Follow
the links from
 
http://en.wikipedia.org/wiki/Knuth.Morris.Pratt_algorithm
 
I've been meaning to implement this in C++: the case where the same
set of search strings are used over and over again can be
precalculated well, and encapsulated as an object.
 
On the other hand, I suspect std::regex might perform well. Is it
one-pass enough for your purposes?
 
/Jorgen
 
--
// Jorgen Grahn <grahn@ Oo o. . .
\X/ snipabacken.se> O o .
JKdr <jkdr@siberianoutpost.com>: Sep 30 08:23AM -0400

On 09/30/2014 07:00 AM, Malcolm McLean wrote:
 
> Then it's a bit of a fiddle to hold the characters in a buffer, until they match
> or don't match your end of string character, which is the terminal of your
> suffix tree.
 
I had something very similar in mind. String search algorithms tend to
be messy (repeatedly looping though both data). What seems to be great
theoretically sometimes is not practical, could you point me to
algorithms like the ones you describe, preferably with tests? ;-)
 
Thank you
lbrtchx
JKdr <jkdr@siberianoutpost.com>: Sep 30 11:31AM -0400

On 09/30/2014 08:54 AM, Siri Crews wrote:
> That's called a finite state transducer
 
Yeap! Those kinds of problems have been studied to exhaustion
 

http://scholar.google.com/scholar?start=10&q="finite+state+transducer"+text
 
and there are implementations of such logic ...
 
http://en.wikipedia.org/wiki/Finite_state_transducer
 
http://jsalatas.ictpro.gr/java-fst-framework-api-review/
 
I was (very expectedly indeed ;-)) trying to tackle text
processing/corpora research problems with such FST-like strategies
 
Thank you very much,
lbrtchx
Juha Nieminen <nospam@thanks.invalid>: Sep 30 08:01AM

> acknowledge His help as being help and say to themselves instead, "I know
> how the help should be doled out," rather than having faith in God, again
> the result of sin.
 
As I thought, you have no response. Of course you don't, because there
is no response. The only thing you can do is to try more proselytizing.
 
I find it somewhat amusing how so many Christians think that
proselytizing is like magic: As long as people hear the words, magic
will sometimes happen. It's like a magical incantation.
 
--- news://freenews.netfront.net/ - complaints: news@netfront.net ---
Chris Vine <chris@cvine--nospam--.freeserve.co.uk>: Sep 30 09:49AM +0100

On Tue, 30 Sep 2014 08:01:59 +0000 (UTC)
 
> I find it somewhat amusing how so many Christians think that
> proselytizing is like magic: As long as people hear the words, magic
> will sometimes happen. It's like a magical incantation.
 
Fuck off.
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.

Monday, September 29, 2014

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

comp.lang.c++@googlegroups.com Google Groups
Unsure why you received this message? You previously subscribed to digests from this group, but we haven't been sending them for a while. We fixed that, but if you don't want to get these messages, send an email to comp.lang.c+++unsubscribe@googlegroups.com.
Jorgen Grahn <grahn+nntp@snipabacken.se>: Sep 29 10:31PM

On Sat, 2014-09-27, Vir Campestris wrote:
 
> Before you post anything - make sure you aren't giving away any
> commercial secrets. They don't have to be valuable for them to get very
> cross with you.
 
Put more strongly: I've always assumed I would get fired
immediately if I ever posted anything I created while getting paid.
 
/Jorgen
 
--
// Jorgen Grahn <grahn@ Oo o. . .
\X/ snipabacken.se> O o .
JiiPee <no@notvalid.com>: Sep 30 12:18AM +0100

On 29/09/2014 08:30, David Brown wrote:
>> decision. Thanks again to all!
> When you work for someone else, they own the code you write. They own
> the copyright, and they decide what may or may not be done with it.
 
When I entered my first software company, they said they also own all
the code I do on my spare time, even if its some game I am programming
at home. Is this really true as well? Sounds wrong to me and I was a bit
disappointed, but accepted it. Why would it matter what I do on my spare
time especially if it has nothing to do with the company s code/work? I
understand and accept that all the code done in workplace belongs to the
company, that is natural.... but I do not think its right that also code
outside work is theirs.
woodbrian77@gmail.com: Sep 29 12:23PM -0700

I'm working on an on line code generator called the
C++ Middleware Writer. If you have some thoughts on
how to improve the software or documentation on my
site, please let me know. I'll post some files here.
Thanks in advance.
 
The following is the contents of platforms.hh
 
#pragma once
 
#if defined(_MSC_VER) || defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
#define CMW_WINDOWS
#include <ErrorWords.hh>
#include <winsock2.h>
#include <ws2tcpip.h>
using sock_type = SOCKET;
using file_type = HANDLE;
 
inline int GetError () { return WSAGetLastError(); }
 
inline void windows_start ()
{
WSADATA wsa;
int rc=WSAStartup(MAKEWORD(2,2),&wsa);
if(0!=rc)throw cmw::failure("WSAStartup: ")<<rc;
}
 
#else
 
#include <errno.h>
using sock_type = int;
using file_type = int;
 
inline int GetError () { return errno; }
inline void windows_start () {}
 

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

comp.lang.c++@googlegroups.com Google Groups
Unsure why you received this message? You previously subscribed to digests from this group, but we haven't been sending them for a while. We fixed that, but if you don't want to get these messages, send an email to comp.lang.c+++unsubscribe@googlegroups.com.
woodbrian77@gmail.com: Sep 28 05:10PM -0700

Please don't swear here.
 
 
Brian
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Sep 29 01:57AM -0700

http://biblehub.com/ephesians/4-18.htm
 
"Having the understanding darkened, being
alienated from the life of God through the
ignorance that is in them, because of the
blindness of their heart:"
 
God has revealed the state of man to all.
It is because of the implication of that state
that I reach out, pray, and teach.
 
http://biblehub.com/revelation/20-15.htm
 
"And whosoever was not found written in the
book of life was cast into the lake of fire."
 
I love people. God loves people (John 3:16).
There is love abounding in God, and in the
truth of His gospel message, and in His
people who are born again. And here we
see the full power of sin manifest, that even
though God loves each person, even though
He has completely taken away the need of
any person to go to Hell Himself, by His own
Son's sacrificial death at the cross, even though
He knocks continually on the doors of their
heart and mind, and even though there are
people like me testifying and explaining that
the transformation from the carnal to the
born again spirit-filled nature is real, the
power of sin, its deception, its utter falseness
grabs hold of the individual, blinding them to
the truth because they themselves are so bent
and twisted by it (sin) that they will not hear
the truth, not one bit of it.
 
This is the only reason anyone will wind up
in Hell: they will not hear the truth because
sin and the sin nature has consumed them
unto death.
 
I used to think it was harsh for God to send
anyone to Hell, but now I see the full nature
of sin manifest... that it is a cancer upon His
creation, that it only destroys, seeks to destroy,
and that to the uttermost. Given that we are
all very powerful eternal beings, I categorically
agree with God that Hell is essential for all sin.
It is the only mechanism that can completely
seal in and isolate sin from the rest of His
creation. And what God teaches is true: the
only people who will ever ever ever go there
are those who up and down, front to back,
side to side, inside and out, refuse, absolutely
refuse, to hear the truth. Every other person
who will hear the truth is completely forgiven,
with every sin being taken away by Jesus'
death on the cross, and subsequent eternal
resurrection.
 
I agree with God that Hell is necessary to
contain sin, for all sin does is completely
destroy everything it touches, and Hell is
a place to continually destroy the individual,
the eternal being, who will not let go of sin,
who will not let go of the destructive nature.
 
As I say, I will remember each of you in my
prayers as the Lord brings you to my
remembrance.
 
Best regards,
Rick C. Hodgin
Juha Nieminen <nospam@thanks.invalid>: Sep 29 09:13AM

> You are right to be concerned for the welfare of children.
> He cares for them more than you do.
 
He seems rather inefficient at it, given how he fails to help them when
they are in dire need and are suffering.
 
What do you call a father who sees his child being tortured, raped and
killed, and does absolutely nothing to help?
 
--- news://freenews.netfront.net/ - complaints: news@netfront.net ---
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Sep 29 02:35AM -0700

http://biblehub.com/revelation/3-18.htm
 
"I counsel thee to buy of me gold tried in the fire, that thou
mayest be rich; and white raiment, that thou mayest be clothed,
and that the shame of thy nakedness do not appear; and anoint
thine eyes with eyesalve, that thou mayest see."
 
Everything about God is continual guidance unto life. He teaches
all who will hear continually about Him, His Kingdom, that which
lies ahead for us, why we are so precious and special (beings made
in His own image, in His likeness), and of communal love, true inner,
family love one to another.
 
God is beautiful, and peaceful, and loving, forgiving, patient, tolerant
of our ignorance, kind, helpful, drawing us to Him, desiring to give us
of His vast Kingdom, and more.
 
The wars you see and hear about religion, about ideology, about
this principle over that principle, they are real. All of them. And
every one of those wars that results in any type of violence, in any
person rising up against another person, all stem from the same,
single source: Satan.
 
Satan has power only because of sin. The born again nature sets
men free from Satan's power. Satan operates on our flesh, riling
us up through sinful lusts, the sinful nature, until we acquiesce
and commit sin. But the power of God, of His Holy Spirit guidance,
leads us only to peace, only to love, only to being loving, helping,
building up, teaching, encouraging, guiding, and the like.
 
Jesus is the door. He is the gateway from death and sin, to the
spirit and life. There are no people anywhere given an alternate
way. Jesus is the way. And He is sufficient.
 
It's why I testify like this. I have that love (His love) on my heart,
and I desire the things He desires, that those who are lost be
saved.
 
God wants to restore you to Himself, to life, to eternity. I want
the same because His Spirit lives inside of me (the born again
nature is a spiritual birth, enabling one to hear and know God).
 
I testify that God is real. That His love is real. That salvation
through His Son Jesus is real. It is free. It is extended to all
who will receive it without exception. All you have to do is
ask Him to save you.
 
So beautiful is His offering. That even though we've sinned, He
is still willing to forgive us. Its why Jesus came to the Earth...
to die in our place, to raise Himself back to life, so that we might
live.
 
He simultaneously put away sin and death, and restored all who
will hear the truth. Powerful.
 
Best regards,
Rick C. Hodgin
Juha Nieminen <nospam@thanks.invalid>: Sep 29 01:31PM

> God is beautiful, and peaceful, and loving, forgiving, patient, tolerant
> of our ignorance, kind, helpful, drawing us to Him, desiring to give us
> of His vast Kingdom, and more.
 
I find fascinating how religion can cause such a cognitive dissonance.
It makes you think like that, and at the same time that the same God
has created a place of eternal indescribable torment and torture where
he sends his own creation to suffer forever because they didn't love
him the right way.
 
If a father tortured his children in a torture cellar he himself built,
would you call him "peaceful, loving, forgiving, patient, tolerant, kind"?
 
This is a perfect example of Orwellian double-think.
 
--- news://freenews.netfront.net/ - complaints: news@netfront.net ---
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Sep 29 06:42AM -0700

On Monday, September 29, 2014 5:13:13 AM UTC-4, Juha Nieminen wrote:
> > He cares for them more than you do.
 
> He seems rather inefficient at it, given how he fails to help them
> when they are in dire need and are suffering.
 
Sin is the cause of all kinds of suffering, including this you mention.
Jesus saves people from sin. He sets them free from sin. He saves them
in eternity.
 
Our struggles here upon Earth persist for a night, but joy comes in the
morning. Jesus is returning soon and those who are His will be drawn to
Him and be saved. The pain we go through today, the travail of this world,
is likened to a woman giving birth. It is anguish. It is strong. But when
the new baby arrives the pain is forgotten because of the joy which has
been brought forth.
 
It is the same for the believer. The song "Amazing Grace" was not written
with those words by accident. It reflects the believer's transformed state.
 
The sin which takes place upon this world is awful and God hates it. He
has promised to repay everyone for everything, including even every idle
word for which we will personally give an account (everything we've ever
spoken will be addressed, let alone our overt physical actions).
 
God is not letting anything go unpunished. Not one thing. But God has
said that such things must take place. I don't know the cause of that. I
cannot see or think eternally with the scope and knowledge of God, but I
have faith in Him that He is doing everything correctly because I know
who He is.
 
It is sin that binds. Sin that blinds. Not God. God frees men from sin,
restores them in eternity, and sets their feet on the path of eternity
through His Son, Jesus Christ, and for all of those everywhere who will
believe in Him.
 
> What do you call a father who sees his child being tortured, raped and
> killed, and does absolutely nothing to help?
 
God has helped every one of those who are hurting. Many simply refuse to
acknowledge His help as being help and say to themselves instead, "I know
how the help should be doled out," rather than having faith in God, again
the result of sin.
 
He's with us always... even through the pain of this world wrapped in sin.
Our hope, our confidence, our assurance is in Him and His eternal Kingdom,
that though we suffer here in this world, which He promised would come
upon us, that what we receive is worth every ounce of struggle. And all
any believer has to do is stand up for Him, to teach of Him, to speak of
Him (to take His yoke upon their shoulders, for His yoke is easy, and His
burden is light). We (believers) do the things we can do, and we rely upon
Him to do the rest.
 
It comes down to faith, and faith applied into action, that though these
things happen in the world, we stand up for Him, we stand in the gap for
those who do not yet know Him, and we stand up to the evil voices and
teach them His ways, which are the ways of peace and love.
 
Best regards,
Rick C. Hodgin
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Sep 29 07:01AM -0700

On Monday, September 29, 2014 9:32:02 AM UTC-4, Juha Nieminen wrote:
> has created a place of eternal indescribable torment and torture where
> he sends his own creation to suffer forever because they didn't love
> him the right way.
 
http://biblehub.com/2_corinthians/4-3.htm
http://biblehub.com/2_corinthians/4-4.htm
 
"3 But if our gospel be hid, it is hid to them that are lost:
"4 In whom the god of this world hath blinded the minds of them which
believe not, lest the light of the glorious gospel of Christ, who is
the image of God, should shine unto them."
 
You are blind to God's beauty, His salvation, His holiness, His eternal
plans, because you are perishing. You will not come out of your sin and
hear the truth, and therefore you cannot hear it. The moment you do seek
to find the truth, you then will understand. And you too will know why
the words of the song Amazing Grace were penned that way.
 
There really is something happening here. It really is a battle for
your ETERNAL soul. That is why I continue to teach you the way that
you might be moved from within to seek Him, and be saved.
 
> If a father tortured his children in a torture cellar he himself built,
> would you call him "peaceful, loving, forgiving, patient, tolerant, kind"?
 
No. Of course not. But justice must be served. And in eternity, justice
takes on a different meaning than it does in a temporal form such as we
see here in our flesh. Yet even here some crimes are so heinous the
guity are given 300 year sentences, and lifetime without parole, etc.
It is the same with regards to eternity, and the nature of sin.
 
We are eternal beings. Our punishment for sin is therefore also eternal.
And no one has any excuse because God also made a way out of that
punishment. But most people stop at the "God will send me to Hell forever"
rather than the follow-on which says, "God has saved me from Hell by His
own death."
 
It is the difference between the sin nature, and the born again spirit
nature.
 
Best regards,
Rick C. Hodgin
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Sep 29 07:27AM -0700

On Monday, September 29, 2014 10:01:29 AM UTC-4, Rick C. Hodgin wrote:
> "4 In whom the god of this world hath blinded the minds of them which
> believe not, lest the light of the glorious gospel of Christ, who is
> the image of God, should shine unto them."
 
To be clear, the "god of this world" (lower-case "g") is Satan. He is
called the "god of this world" in scripture, along with many other names.
 
Here is a video which shows the nature of our struggles here upon this
Earth against this unseen adversary, as told through the servant Job, a
righteous man who was tried for no fault of his own:
 
The Invisible War -- by Steve Lawson (259 MB, use VLC if you cannot view):
http://www.libsf.org/video/steve_lawson__the_invisible_war.mp4
 
Best regards,
Rick C. Hodgin
Daniel <danielaparker@gmail.com>: Sep 29 07:37AM -0700

On Saturday, September 27, 2014 12:33:36 PM UTC-4, Mr Flibble wrote:
 
> Evolution is proof that your god doesn't exist mate.
 
Nonsense, Mr Fibble, the gods evolved too, Mr Hodgin's god evolved from Abrahamic monotheism, which evolved from Semitic polytheism in the Canaanite and Babylonian traditions.
 
Daniel
Chris Vine <chris@cvine--nospam--.freeserve.co.uk>: Sep 29 04:27PM +0100

On Mon, 29 Sep 2014 13:31:41 +0000 (UTC)
Juha Nieminen <nospam@thanks.invalid> wrote:
[off topic irrelevant garbage snipped]
 
Is there any chance this could now stop? It is all well and good
killfiling Rick, but I get all the garbage responses to him. Everyone
with an interest in religion has said, several times, what their point
of view is. Appealing to Rick to respect the rights of readers of this
group are bound to fail because his beliefs don't accommodate respect
for others, but the majority of the programmers who contribute to this
group seems relatively sane.
 
Can all those with an interest in programming restrict their posts to
this group in the future to things related to C++?
 
Please ...
 
Chris
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Sep 29 09:21AM -0700

On Monday, September 29, 2014 11:27:56 AM UTC-4, Chris Vine wrote:
 
> Can all those with an interest in programming restrict their posts to
> this group in the future to things related to C++?
 
> Please ...
 
Christ, I feel the same way, but in the opposite direction. I see an
inevitable end to each of our lives coming (death), and I know the two
fates which await people. Our lives here tick by for a time, and then
are ended, but eternity ticks by forever.
 
God has shared with us the utter torment that will be in Hell for those
who will not repent and be saved. And my heart cries out continually
for those who are perishing, that even one of them might be saved.
 
My sentiments are not alone:
http://media-cache-ak0.pinimg.com/736x/af/eb/1a/afeb1a13eddce334086bdca334084894.jpg
 
Charles H. Spurgeon (1834-1892):
"If sinners be damned, at least let them leap to Hell over our dead
bodies. And if they perish, let them perish with our arms wrapped about
their knees, imploring them to stay. If Hell must be filled, let it be
filled in the teeth of our exertions, and let not one go unwarned and
unprayed for."
 
I care about people too much to not warn them. And plea with them.
Because what's coming is beyond major. It is eternal. There are no
do-overs. There is no early parole for good behavior. It is the
final thing that people will contend with. And it is merciless.
 
On that final day, I want no one to be able to point a finger at me
and say "You didn't try hard enough, Rick. If you would've warned me
in a different way, or pursued it a little more, then I would've
come to believe." I want that argument to be something the Lord Himself
will put down with, "Rick reached out to you 39 separate times. You
denied me on every one of them."
 
Love operates through love's eyes. If your eyes are upon the Earth
then the love you have will be manifest and focused upon Earthly things.
But if your eyes are on eternity, then the love you have will be
manifest and focused upon eternal things. My eyes are focused upon
eternity, and I reach out to each of you the same.
 
Jesus is not religion. He is not fighting. He is not arguing. He is
not disagreements. He is pleading Love in its purest form. He reaches
out in a way NO OTHER EVER has reached out to you. And His love is a
Real love, an Eternal love. And it is to Him I point you. Seek to know
Him, for He can save you from that end. He wants to do this. He came
here to make a way, and said on the cross, "It is finished." He did it.
And now all we have to do is receive it.
 
Learn of Him. Seek to know Him truly. You'll find that He's unlike the
things you've heared about Him here in the world, or the way sinful men
professing to know Him have done sinful things. He is Holy. He is
distinct. His ways are focused on a true love for you.
 
I pray everyone reading this will come to seek after Him, to seek Him as
He is, to repent and believe and be saved.
 
Best regards,
Rick C. Hodgin
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Sep 29 09:48AM -0700

On Monday, September 29, 2014 11:27:56 AM UTC-4, Chris Vine wrote:
> Is there any chance this could now stop?
 
Chris, Penn Jilette is a devout atheist. But he also realizes the
love Christians have for God, and for their fellow man, in this:
 
http://www.radicallychristian.com/what-atheist-penn-jillette-taught-me-about-evangelism
 
"How much do you have to HATE somebody to believe everlasting life is
possible and not tell them that?"
 
And the article author sums up his thoughts here:
 
Jillette even admits, warning someone about the danger of hell
is "even more important" than warning someone about being hit
by a truck. The implication is, if you would TACKLE someone to
keep them from being hit by a truck, why wouldn't you at least
risk social embarrassment to warn others about hell?
 
Eternity is forever. And I stand warning each of you about the fate of
those who will not humble themselves, repent, ask forgiveness, and be
saved. It is a humbling act, one of self-denial, and one of
acknowledgement over who God is, and who Jesus is, and it is the only
thing one must do ... believe (and then put that belief into practice
by asking forgiveness of the One you believe in), and then be saved.
 
Best regards,
Rick C. Hodgin
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Sep 29 09:56AM -0700

Athiest Penn Jillette's video where he discusses Christian
evangelism (3:42):
 
http://www.youtube.com/watch?v=u4a4AU9FYyc
 
Best regards,
Rick C. Hodgin
Wouter van Ooijen <wouter@voti.nl>: Sep 29 07:19PM +0200


> Christ, I feel the same way, but in the opposite direction. I see an
> inevitable end to each of our lives coming (death), and I know the two
> fates which await people.
 
Oh please, when my lifetime ends, either because my scope is at its end
(me not being a static person) or because someone deliberately calls
delete on me, and and my destructor is finally invoked, I'll be happy in
the knowledge that my bytes will be re-used for a new object. I do not
want to be part of any memory-leaking retain-all-objects-for-eternity
scheme.
 
Wouter van Ooijen
(trying to bent religious rambling back to the purpose of this group)
Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk>: Sep 29 06:34PM +0100

On 29/09/2014 17:56, Rick C. Hodgin wrote:
> Athiest Penn Jillette's video where he discusses Christian
> evangelism (3:42):
 
> http://www.youtube.com/watch?v=u4a4AU9FYyc
 
The difference is you are TROLLING a technical newsgroup with religious
posts.
 
/Flibble
c.milanesi.bg@gmail.com: Sep 29 09:31AM -0700

I am developing an open-source header-only multi-platform C++11 library to handle physical measures and angles.
Now it has reached a good-enough maturation level to need some real user feedback.
 
You can browse or download sources here:
https://github.com/carlomilanesi/cpp-measures
Test code is quite cumbersome and available only for Windows.
 
You can browse documentation here:
https://github.com/carlomilanesi/cpp-measures/wiki
and particularly here:
https://github.com/carlomilanesi/cpp-measures/wiki/Tutorial
 
Actually I need someone programming engineering software,
who would like to read the tutorial and tell me
what is missing for his/her software application needs.
 
--
 
Carlo Milanesi
http://carlomilanesi.wordpress.com/
Wouter van Ooijen <wouter@voti.nl>: Sep 29 07:26PM +0200


> Actually I need someone programming engineering software,
> who would like to read the tutorial and tell me
> what is missing for his/her software application needs.
 
I hope you are aware that something like this exists in boost? In what
sense is your work different or even better than the boost solution?
 
Some points that are IMO important for such a library, especially for
small microntrollers:
- do you differentiate between absolute and relative values (for
instance for time, but also for location/distance)
- can you work with non-floating-point base types (especially
fixed-point types implemented on top of integers)?
- can you work with mixed base types (for instance fixed-point types
based on integers of various size and scaling)?
 
(Sorry for being to lazy to read all documentation myself before I ask.)
 
Wouter van Ooijen
Wake up Brazil <johnkalane@yahoo.com>: Sep 29 07:51AM -0700

Consider this snippet:
 
#include <iostream>
extern int A;
static int A = 101;
class A{};
int main()
{
std::cout << A << '\n';
}
 
From §3.5/4 we have that the first declaration `extern int A;` gives the name `A` external linkage and the second declaration `static int A = 101;` gives the name `A` internal linkage. From §3.3.1/4 we can say this is an error, because we have two different entities (external and internal linkages) with the same name in the same declarative region.
 
All three compilers (g++, clang and VS2013) produce an error in this cases.
 
Consider now this example:
 
#include <iostream>
static int A = 101;
extern int A;
class A{};
int main()
{
std::cout << A << '\n';
}
 
Everything that I said before applies here, but g++ and clang compile and execute this code. I believe these compilers are not compliant with §3.3.1/4.
 
Does anyone have any other idea about this?
Victor Bazarov <v.bazarov@comcast.invalid>: Sep 29 11:23AM -0400

On 9/29/2014 10:51 AM, Wake up Brazil wrote:
> }
 
> Everything that I said before applies here, but g++ and clang compile and execute this code. I believe these compilers are not compliant with §3.3.1/4.
 
> Does anyone have any other idea about this?
 
If the makers of g++ (and clang) misread the Standard a bit, they
interpreted that any declaration, even with 'extern' that follows a
declaration with 'static', does not override the linkage of the object,
but declares the same object, which has the same linkage as has been
declared already, i.e. internal here. See [basic.link]/6. However,
that particular part of the Standard talks specifically about functions
and variables declared in *block* scope, as the example that follows shows.
 
I cannot imagine any other error by the developers of those compilers.
And I agree with your determination that the same object cannot have two
linkages when declared *in the same scope*.
 
Curiously, I seem to have never seen any comments by compiler
implementors here. Either they are too busy to participate in any
community activities, or there are so few of them that their posts are
simply lost in the torrent of other articles, or they purposely avoid
the forum... It would be interesting to hear/see an interpretation of
theirs, however.
 
V
--
I do not respond to top-posted replies, please don't ask
Wake up Brazil <johnkalane@yahoo.com>: Sep 29 10:09AM -0700

On Monday, September 29, 2014 12:23:25 PM UTC-3, Victor Bazarov wrote:
 
> V
 
> --
 
> I do not respond to top-posted replies, please don't ask
 
Thanks for your valuable reply, and I agree with you that [basic.link]/6 doesn't apply here.
Louis Krupp <lkrupp@nospam.pssw.com.invalid>: Sep 28 09:28PM -0600

On Mon, 29 Sep 2014 00:25:47 +0200, Johann Klammer
 
>The code fragment is from a gperf generated file....
 
>Note: g++ is used for compilation.
 
>what to do?
 
A search for __gnu_inline__ turned up this:
 
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41194
 
I don't understand it, but you might find it useful.
 
Louis
Johann Klammer <klammerj@NOSPAM.a1.net>: Sep 29 01:00PM +0200

On 09/29/2014 05:28 AM, Louis Krupp wrote:
 
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41194
 
> I don't understand it, but you might find it useful.
 
> Louis
 
Thanks, I'll file a bug with iverilog, then.
Jorgen Grahn <grahn+nntp@snipabacken.se>: Sep 29 09:33AM

On Fri, 2014-09-26, peter koch wrote:
 
>> In either case, I too warmly recommend the "move, then erase" approach.
 
>> /Jorgen
 
> You can't do that as you do not know what is between end and defVect.end().
 
[...]
 
> Perhaps you overlooked that the vector consisted of raw pointers that had to be deleted?
 
I assumed the vector contained something more "normal", yes. But
AFAICT both MikeCopeland or Andreas Dehmel make the same assumption?
I admit that I didn't read the full thread.
 
/Jorgen
 
--
// Jorgen Grahn <grahn@ Oo o. . .
\X/ snipabacken.se> O o .
woodbrian77@gmail.com: Sep 28 05:25PM -0700

On Sunday, September 28, 2014 3:46:35 PM UTC-5, Robert Hutchings wrote:
 
> > Why did you not first ask you employer to make sure its even possible to
> > post here? :)
 
> I should have. Sorry.
 
I don't think I'd like working there since they don't
have code reviews. It also seems strange they don't
have some open source code that you could post and discuss.
 
Brian
Ebenezer Enterprises - I am the vine, you are the branches;
he who abides in Me and I in him, he bears much fruit, for
apart from Me you can do nothing. If anyone does not abide
in Me, he is thrown away as a branch and dries up; and they
gather them, and cast them into the fire and they are burned.
John 15: 5,6
 
http://webEbenezer.net
David Brown <david.brown@hesbynett.no>: Sep 29 09:30AM +0200

On 28/09/14 16:17, Robert Hutchings wrote:
> code on the internet, citing "Intellectual Property" issues. I am not
> sure that I agree with that, but, as an employee, I am bound by their
> decision. Thanks again to all!
 
When you work for someone else, they own the code you write. They own
the copyright, and they decide what may or may not be done with it. You
are not free to post it or even discuss it without the employer's
consent. And your employer is absolutely correct in making a blanket
"everything we write is top secret intellectual property" statement, and
only opening up for specific cases - this is the way most companies
work. (There are others that are much more open, and gain many benefits
from that, but that should only come after hard thought and discussion -
everything secret is the default position.)
 
You are also expected to be loyal to your employer, and not publicly
criticise or condemn them (unless you suspect them of illegal or
unlawful activity, which may include conning customers if you think the
quality is not as high as it should be - but in that case a public
newsgroup is not the right place to report it). If your employer sees
the way you wrote about their code review policy, they would be
justified in reprimanding you - and if you are unfortunate enough to
live in a country like the USA which has almost no employee protection
laws, they may even be able to fire you on the spot.
 
If you think you have ideas that could improve your development process,
such as code reviews within the company or discussing code snippets in
public forums, then you should be discussing it with your colleagues and
management - you can't take it upon yourself to change or ignore the
policies of your company.
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.

Sunday, September 28, 2014

Digest for comp.programming.threads@googlegroups.com - 1 update in 1 topic

comp.programming.threads@googlegroups.com Google Groups
Unsure why you received this message? You previously subscribed to digests from this group, but we haven't been sending them for a while. We fixed that, but if you don't want to get these messages, send an email to comp.programming.threads+unsubscribe@googlegroups.com.
"Chris M. Thomasson" <no@spam.invalid>: Sep 27 02:54PM -0700

> "Ramine" wrote in message news:lv50m8$p6$2@dont-email.me...
 
[...]
 
> But i have forgot to spook about Lock convoy, as you have noticed
> the Optex lock implemented here by Jeffrey Richter...
[...]
 
Optex by Jeffrey Richter is a piece of shi%...
 
;^o
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.programming.threads+unsubscribe@googlegroups.com.