Jump to page: 1 220  
Page
Thread overview
Regarding the proposed Binray Literals Deprecation
Sep 09, 2022
Puneet Goel
Sep 09, 2022
IGotD-
Sep 09, 2022
Max Samukha
Sep 09, 2022
H. S. Teoh
Sep 09, 2022
Dave P.
Sep 09, 2022
Adam D Ruppe
Sep 10, 2022
Walter Bright
Sep 10, 2022
Adam D Ruppe
Sep 10, 2022
Patrick Schluter
Sep 10, 2022
Walter Bright
Sep 10, 2022
Adam D Ruppe
Sep 11, 2022
Patrick Schluter
Sep 10, 2022
Walter Bright
Sep 10, 2022
Nicholas Wilson
Sep 10, 2022
Walter Bright
Sep 11, 2022
TheGag96
Sep 10, 2022
Max Samukha
Sep 10, 2022
mw
Sep 10, 2022
Walter Bright
Sep 10, 2022
mw
Sep 10, 2022
mw
Sep 10, 2022
rikki cattermole
Sep 10, 2022
mw
Sep 10, 2022
rikki cattermole
Sep 10, 2022
mw
Sep 10, 2022
rikki cattermole
Sep 10, 2022
Sergey
Sep 10, 2022
Walter Bright
Sep 10, 2022
mw
Sep 10, 2022
mw
Sep 10, 2022
matheus
Sep 10, 2022
Dave P.
Sep 11, 2022
Walter Bright
Sep 11, 2022
Walter Bright
Sep 11, 2022
mw
Sep 11, 2022
Max Samukha
Sep 11, 2022
Walter Bright
Sep 12, 2022
Max Samukha
Sep 12, 2022
Kagamin
Sep 12, 2022
Adam D Ruppe
Sep 12, 2022
H. S. Teoh
Sep 10, 2022
0xEAB
Sep 10, 2022
0xEAB
Sep 10, 2022
Walter Bright
Sep 11, 2022
0xEAB
Sep 13, 2022
wjoe
Sep 13, 2022
Walter Bright
Sep 13, 2022
Max Samukha
Sep 13, 2022
Don Allen
Sep 13, 2022
Max Samukha
Sep 13, 2022
Max Samukha
Sep 13, 2022
Daniel N
Sep 13, 2022
Don Allen
Sep 14, 2022
Max Samukha
Sep 13, 2022
Don Allen
Sep 14, 2022
wjoe
Sep 13, 2022
Walter Bright
Sep 13, 2022
H. S. Teoh
Sep 14, 2022
Walter Bright
Sep 14, 2022
Walter Bright
Sep 14, 2022
monkyyy
Sep 14, 2022
Max Samukha
Sep 14, 2022
Patrick Schluter
Sep 14, 2022
Quirin Schroll
Sep 14, 2022
jmh530
Sep 14, 2022
Walter Bright
Sep 14, 2022
Daniel N
Sep 15, 2022
Timon Gehr
Sep 17, 2022
Loara
Sep 17, 2022
Salih Dincer
Sep 17, 2022
0xEAB
Sep 18, 2022
Loara
Sep 18, 2022
Max Samukha
Sep 18, 2022
Loara
Sep 20, 2022
Kagamin
Sep 17, 2022
Walter Bright
Sep 17, 2022
Preetpal
Sep 17, 2022
Preetpal
Sep 18, 2022
Don Allen
Sep 18, 2022
Preetpal
Sep 18, 2022
Don Allen
Sep 18, 2022
Preetpal
Sep 18, 2022
Timon Gehr
Sep 21, 2022
Don Allen
Sep 22, 2022
Tejas
Sep 18, 2022
Don Allen
Sep 14, 2022
Adam D Ruppe
Sep 14, 2022
Daniel N
Sep 14, 2022
rikki cattermole
Sep 14, 2022
Daniel N
Sep 14, 2022
rikki cattermole
Sep 14, 2022
Daniel N
Sep 14, 2022
Nick Treleaven
Sep 14, 2022
claptrap
Sep 15, 2022
Dukc
Sep 15, 2022
Don Allen
Sep 17, 2022
0xEAB
Sep 17, 2022
0xEAB
Sep 18, 2022
zjh
Sep 18, 2022
Nicholas Wilson
Sep 21, 2022
Quirin Schroll
Sep 21, 2022
Zealot
Sep 21, 2022
Quirin Schroll
Sep 14, 2022
Salih Dincer
Sep 14, 2022
wjoe
Sep 13, 2022
IGotD-
Sep 14, 2022
Quirin Schroll
Sep 14, 2022
wjoe
Sep 09, 2022
Adam D Ruppe
Sep 09, 2022
Timon Gehr
Sep 09, 2022
Adam D Ruppe
Sep 09, 2022
H. S. Teoh
Sep 09, 2022
Walter Bright
Sep 09, 2022
Adam D Ruppe
Sep 10, 2022
Walter Bright
Sep 10, 2022
Adam D Ruppe
Sep 10, 2022
Walter Bright
Sep 10, 2022
Daniel N
Sep 10, 2022
Adam D Ruppe
Sep 10, 2022
Daniel N
Sep 10, 2022
Walter Bright
Sep 10, 2022
Adam D Ruppe
Sep 10, 2022
rikki cattermole
Sep 12, 2022
Kagamin
Sep 12, 2022
rikki cattermole
Sep 12, 2022
Kagamin
Sep 12, 2022
rikki cattermole
Sep 12, 2022
rikki cattermole
Sep 12, 2022
Kagamin
Sep 12, 2022
Kagamin
Sep 12, 2022
rikki cattermole
Sep 12, 2022
H. S. Teoh
Sep 12, 2022
rikki cattermole
Sep 10, 2022
IGotD-
Sep 10, 2022
Walter Bright
Sep 10, 2022
Walter Bright
Sep 10, 2022
Max Samukha
Sep 10, 2022
Paul Backus
Sep 10, 2022
Adam D Ruppe
Sep 12, 2022
Quirin Schroll
Sep 10, 2022
Timon Gehr
Sep 10, 2022
Sergey
Sep 10, 2022
Walter Bright
Sep 10, 2022
mw
Sep 11, 2022
Walter Bright
Sep 12, 2022
Walter Bright
Sep 13, 2022
Ali Çehreli
Sep 14, 2022
Patrick Schluter
Sep 14, 2022
Ali Çehreli
Sep 14, 2022
Patrick Schluter
Sep 10, 2022
Timon Gehr
Sep 10, 2022
mw
Sep 10, 2022
IGotD-
Sep 11, 2022
Adam D Ruppe
Sep 11, 2022
H. S. Teoh
Sep 11, 2022
Tejas
Sep 12, 2022
Quirin Schroll
Sep 10, 2022
Walter Bright
Sep 10, 2022
rikki cattermole
Sep 10, 2022
Dennis
Sep 10, 2022
Adam D Ruppe
Sep 10, 2022
Don Allen
Sep 10, 2022
Walter Bright
Sep 11, 2022
Max Samukha
Sep 12, 2022
jmh530
Sep 12, 2022
IGotD-
Sep 13, 2022
Don Allen
Sep 13, 2022
jmh530
Sep 14, 2022
Walter Bright
Sep 14, 2022
jmh530
Sep 14, 2022
Don Allen
Sep 14, 2022
Walter Bright
Sep 14, 2022
rikki cattermole
Sep 14, 2022
jmh530
Sep 14, 2022
Daniel N
Sep 15, 2022
Daniel N
Sep 15, 2022
Max Samukha
Sep 15, 2022
Daniel Nielsen
Sep 15, 2022
Max Samukha
Sep 15, 2022
zjh
Sep 17, 2022
0xEAB
Sep 18, 2022
Timon Gehr
Sep 12, 2022
Kagamin
Sep 09, 2022
0xEAB
Sep 09, 2022
H. S. Teoh
Sep 10, 2022
0xEAB
Sep 10, 2022
MrSmith33
September 09, 2022

I recently saw a talk by Walter Bright in the recently concluded DConf where Walter made a case for dropping compiler support for Binary literals.

I use Dlang for hardware. Binary literals are scattered everywhere in my code. D is a systems programming language. And thanks to industry-wide FPGA/CPU consolidation, programmable hardware is projected to grow big in the coming years.

Please reconsider binary literal deprecation.

September 09, 2022

On Friday, 9 September 2022 at 16:55:18 UTC, Puneet Goel wrote:

>

I recently saw a talk by Walter Bright in the recently concluded DConf where Walter made a case for dropping compiler support for Binary literals.

I use Dlang for hardware. Binary literals are scattered everywhere in my code. D is a systems programming language. And thanks to industry-wide FPGA/CPU consolidation, programmable hardware is projected to grow big in the coming years.

Please reconsider binary literal deprecation.

Why would you want to drop binary literals which are useful for near HW programming? It's just a literal why would that be so hard to support?

September 09, 2022

On Friday, 9 September 2022 at 16:55:18 UTC, Puneet Goel wrote:

>

I recently saw a talk by Walter Bright in the recently concluded DConf where Walter made a case for dropping compiler support for Binary literals.

I use Dlang for hardware. Binary literals are scattered everywhere in my code. D is a systems programming language. And thanks to industry-wide FPGA/CPU consolidation, programmable hardware is projected to grow big in the coming years.

Please reconsider binary literal deprecation.

Same here. Please leave the binary literals alone. In general, "I haven't needed this feature for a long time/my friends don't use it" is a terrible indicator of what is/may be useful.

September 09, 2022
On Fri, Sep 09, 2022 at 05:52:37PM +0000, Max Samukha via Digitalmars-d wrote:
> On Friday, 9 September 2022 at 16:55:18 UTC, Puneet Goel wrote:
> > I recently saw a talk by Walter Bright in the recently concluded DConf where Walter made a case for dropping compiler support for Binary literals.
> > 
> > I use Dlang for hardware. Binary literals are scattered everywhere in my code. D is a systems programming language. And thanks to industry-wide FPGA/CPU consolidation, programmable hardware is projected to grow big in the coming years.
> > 
> > Please reconsider binary literal deprecation.
> 
> Same here. Please leave the binary literals alone. In general, "I haven't needed this feature for a long time/my friends don't use it" is a terrible indicator of what is/may be useful.

I also oppose dropping binary literals. Although I don't use them often, the few times I do need them I'm very glad they are there. I consider it one of the niceties of D that C missed, and would be rather disappointed if we dropped it. It would be a pain to have to resort to a template just so I can use binary literals.


T

-- 
Любишь кататься - люби и саночки возить.
September 09, 2022
On Friday, 9 September 2022 at 16:55:18 UTC, Puneet Goel wrote:
> I recently saw a talk by Walter Bright in the recently concluded DConf where Walter made a case for dropping compiler support for Binary literals.

He thought it was already dropped.... and the octal drop btw wasn't really that much of a success either. We should have went with 0o.
September 09, 2022
On 09.09.22 21:13, Adam D Ruppe wrote:
> On Friday, 9 September 2022 at 16:55:18 UTC, Puneet Goel wrote:
>> I recently saw a talk by Walter Bright in the recently concluded DConf where Walter made a case for dropping compiler support for Binary literals.
> 
> He thought it was already dropped.... and the octal drop btw wasn't really that much of a success either. We should have went with 0o.

+1.
September 09, 2022

On 9/9/22 3:13 PM, Adam D Ruppe wrote:

>

On Friday, 9 September 2022 at 16:55:18 UTC, Puneet Goel wrote:

>

I recently saw a talk by Walter Bright in the recently concluded DConf where Walter made a case for dropping compiler support for Binary literals.

He thought it was already dropped.... and the octal drop btw wasn't really that much of a success either. We should have went with 0o.

Deprecating 0-leading literals to mean octal is and will always be a success.

The octal literal template -- meh. It functions. I don't think it's a thing we need to highlight. It runs a simple parser at CTFE which isn't nearly as cheap as the octal parser in the compiler.

The truly ironic thing is that the compiler is still correctly parsing octal literals, so it can tell you how to write them with std.conv.octal ;)

-Steve

September 09, 2022
On Friday, 9 September 2022 at 20:35:49 UTC, Steven Schveighoffer wrote:
> Deprecating 0-leading literals to mean octal is and will always be a success.

Well, yeah, that was a silly syntax. I don't know what the C designers were thinking with that.

But using 0o solves all those problems.

> It runs a simple parser at CTFE which isn't nearly as cheap as the octal parser in the compiler.

Well it isn't like the cheapness really matters tbh since it is a small job. And it is a kinda cool technique that D can do it. I use it in other places too.

Just compared to the 0x and 0b and a prospective 0o.... you're right, it is solidly meh.

September 09, 2022
On Fri, Sep 09, 2022 at 08:54:08PM +0000, Adam D Ruppe via Digitalmars-d wrote:
> On Friday, 9 September 2022 at 20:35:49 UTC, Steven Schveighoffer wrote:
> > Deprecating 0-leading literals to mean octal is and will always be a success.
> 
> Well, yeah, that was a silly syntax. I don't know what the C designers were thinking with that.

+1.


> But using 0o solves all those problems.

+1. 0o totally makes sense for octal, just as 0x totally makes sense for hexadecimal.


> > It runs a simple parser at CTFE which isn't nearly as cheap as the octal parser in the compiler.
> 
> Well it isn't like the cheapness really matters tbh since it is a small job.  And it is a kinda cool technique that D can do it. I use it in other places too.
> 
> Just compared to the 0x and 0b and a prospective 0o.... you're right, it is solidly meh.

+1.


T

-- 
Famous last words: I *think* this will work...
September 09, 2022
On 9/9/2022 1:35 PM, Steven Schveighoffer wrote:
> The octal literal template -- meh. It functions. I don't think it's a thing we need to highlight. It runs a simple parser at CTFE which isn't nearly as cheap as the octal parser in the compiler.

That's because it's poorly implemented and overly complex. The implementation I showed in my presentation at Dconf is much simpler.

If you're using a lot of octal literals such that this is an issue, one wonders, what for? The only use I know of is for Unix file permissions.


> The truly ironic thing is that the compiler is still correctly parsing octal literals, so it can tell you how to write them with std.conv.octal ;)

To make transition easier. Simplifying the language has a lot of downstream simplifications.
« First   ‹ Prev
1 2 3 4 5 6 7 8 9 10 11