Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #30158
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!us.feeder.erje.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Eric Sosman <esosman@comcast-dot-net.invalid> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Bytes [Was: Re: Driving 7-Segment LEDs on Raspberry Pi] |
| Date | Wed, 22 Oct 2014 10:43:37 -0400 |
| Organization | A noiseless patient Spider |
| Lines | 41 |
| Message-ID | <m28fqm$8j2$1@dont-email.me> (permalink) |
| References | <6c324a98-b16e-4904-b014-c53fd799cb1b@googlegroups.com> <m23g28$85a$1@speranza.aioe.org> <ccc4a51a-31ee-4099-9c63-0cc2a76c6dbc@googlegroups.com> <m258kt$7t0$1@speranza.aioe.org> <m25kdv$tou$1@dont-email.me> <m27jk3$shk$1@speranza.aioe.org> <m289av$gdo$1@dont-email.me> <m28d9b$11d$1@speranza.aioe.org> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Transfer-Encoding | 8bit |
| Injection-Date | Wed, 22 Oct 2014 14:43:34 +0000 (UTC) |
| Injection-Info | mx02.eternal-september.org; posting-host="bd4e1cba8d8592bec5d5ed9e4537fbfd"; logging-data="8802"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/EhoJOlFXG65EOXOBNjqns" |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 |
| In-Reply-To | <m28d9b$11d$1@speranza.aioe.org> |
| Cancel-Lock | sha1:GKYfmUpTtdfKyo+eS6kjTWelTA4= |
| Xref | csiph.com comp.lang.java.programmer:30158 |
Show key headers only | View raw
On 10/22/2014 10:00 AM, ĵess stone wrote:
> In article m289av$gdo$1@dont-email.me, Eric Sosman said...
>
>>> The problem is mainly the interaction with that and the signedness of
>>> bytes. So you end up with binary 11001001 turning into
>>> 10000000000000000000000001001001
>>
>> [calls me a liar]
>
> No! None of the nasty things that you have said or implied about me are
> at all true.
>
>>> and when you later truncate or mask off the high bytes you wind up with
>>> 01001001, which is wrong.
>>
>> [calls me a liar]
>
> No! None of the nasty things that you have said or implied about me are
> at all true.
You *could* have tried it for yourself, you know.
public class Jess {
public static void main(String[] unused) {
byte stone = (byte) 0xC9;
int paper = stone;
boolean scissors = (paper == 0x80000049);
System.out.println("Jess' prediction is " + scissors);
}
}
This sub-thread got started when you mocked javalaurence's use of
the word "effortlessly" in connection with Java bit-fiddling, suggesting
that you yourself considered it difficult. Others seem to have little
problem fiddling bits in Java, but in light of what you've posted I can
well believe your experience may differ.
Also, PLONK! because ignorance is curable but rudeness isn't.
--
esosman@comcast-dot-net.invalid
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Driving 7-Segment LEDs on Raspberry Pi javalaurence@gmail.com - 2014-10-20 01:28 -0700
Re: Driving 7-Segment LEDs on Raspberry Pi Gordon Levi <gordon@address.invalid> - 2014-10-21 01:42 +1100
Re: Driving 7-Segment LEDs on Raspberry Pi javalaurence@gmail.com - 2014-10-24 05:20 -0700
Re: Driving 7-Segment LEDs on Raspberry Pi Arne Vajhøj <arne@vajhoej.dk> - 2014-10-24 21:37 -0400
Re: Driving 7-Segment LEDs on Raspberry Pi ĵess stone <j3ss.st0n3@gmail.com> - 2014-10-20 17:16 +0000
Re: Driving 7-Segment LEDs on Raspberry Pi javalaurence@gmail.com - 2014-10-21 00:09 -0700
Re: Driving 7-Segment LEDs on Raspberry Pi ĵess stone <j3ss.st0n3@gmail.com> - 2014-10-21 09:22 +0000
Bytes [Was: Re: Driving 7-Segment LEDs on Raspberry Pi] Eric Sosman <esosman@comcast-dot-net.invalid> - 2014-10-21 08:43 -0400
Re: Bytes [Was: Re: Driving 7-Segment LEDs on Raspberry Pi] ĵess stone <j3ss.st0n3@gmail.com> - 2014-10-22 06:42 +0000
Re: Bytes [Was: Re: Driving 7-Segment LEDs on Raspberry Pi] Andreas Leitgeb <avl@auth.logic.tuwien.ac.at> - 2014-10-22 08:02 +0000
Re: Bytes [Was: Re: Driving 7-Segment LEDs on Raspberry Pi] ĵess stone <j3ss.st0n3@gmail.com> - 2014-10-22 10:49 +0000
Re: Bytes [Was: Re: Driving 7-Segment LEDs on Raspberry Pi] Eric Sosman <esosman@comcast-dot-net.invalid> - 2014-10-22 08:52 -0400
Re: Bytes [Was: Re: Driving 7-Segment LEDs on Raspberry Pi] ĵess stone <j3ss.st0n3@gmail.com> - 2014-10-22 14:00 +0000
Re: Bytes [Was: Re: Driving 7-Segment LEDs on Raspberry Pi] Eric Sosman <esosman@comcast-dot-net.invalid> - 2014-10-22 10:43 -0400
Re: Bytes [Was: Re: Driving 7-Segment LEDs on Raspberry Pi] thinbluernime <thinbluernime3@gmail.com> - 2014-10-22 16:34 +0000
csiph-web