[ / / / / / / / / / / / / / ] [ dir / animu / doomer / egy / hkpol / jenny / kohl / strek / vichan ][Options][ watchlist ]

/tech/ - Technology

You can now write text to your AI-generated image at https://aiproto.com It is currently free to use for Proto members.
Email
Comment *
File
Select/drop/paste files here
Password (Randomized for file and post deletion; you may also set your own.)
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Expand all images

[–]

 No.1059415>>1059418 >>1059494 >>1059497 [Watch Thread][Show All Posts]

if you were to create a new programming language, what kind of new/unknown debugging methods would you have for it?

 No.1059418>>1059425

>>1059415 (OP)

make the languega tell you what's wrong and how to fix it!


 No.1059425

>>1059418

it might be possible to some extent if something like https://en.m.wikipedia.org/wiki/Delta_debugging can be fully automated. at least for the what went wrong part.


 No.1059441>>1059455

Probably just Common Lisp's debug methods together with checkpointing. This doesn't really require a new language though.


 No.1059442>>1059447

The field of debugging is complete. I can't imagine any new kind of print statement that one might need. Every existing language supports comprehensive string and number printing. More modern languages support printing of arbitrary data types, including arrays and structures. I've seen some languages that will even print out function definitions. Everything a person could need printed can already be printed, there is nothing new to add.


 No.1059447>>1059499 >>1059549

>>1059442

<debugging is just about printing data

Wrong


 No.1059455>>1059459 >>1059579

>>1059441

This, when a Common Lisp program crashes you are dropped right into the debugger. You can fix the source code, re-compile it and have your program running right at the point where it crashed. Not to mention that the debugger is running in Lisp as well, so you use the same language for debugging as for writing the code.


 No.1059459

>>1059455

Don't forget *debugger-hook*.


 No.1059462>>1059492

I'd provide a graphical map of all instantiated objects that could be navigated.


 No.1059492>>1059505

>>1059462

Most IDEs provide both call and type hierarchy tree views.


 No.1059494>>1059495

>>1059415 (OP)

Rewind/step-back.


 No.1059495


 No.1059497>>1059498 >>1059501

>>1059415 (OP)

Bug driven development.

I would say more but I know this shithole is full of LARPers who'll pretend they came up with the idea first.


 No.1059498

>>1059497

That's just threat modeling.


 No.1059499

>>1059447

Even if you're right, you're wrong for not explaining your point.


 No.1059501>>1059508

>>1059497

>Bug driven development.

>thinks he invented it

Adorable.


 No.1059505>>1059511

>>1059492

I don't want a tree or stack, I want a big diagram, where each object is a circle that is bigger depending on the memory taken up by that object and that I can zoom into to see the values of members as well as observe while the program is running.


 No.1059508>>1059511

>>1059501

You are probably thinking of bug chasing.

I'm talking about full on bug driven development. All I need is a good cover and I'm ready for that O'Reilly money.


 No.1059511

>>1059508

If that's different than the existing BDD, you might need an original name too

>>1059505

What are the edges of the graph representing?


 No.1059513

you want fast compile times for quickly testing changes

https://www.youtube.com/watch?v=KCWVusIztlY


 No.1059549

>>1059447

I like to imagine this one guy responds to every incorrect post he sees with "Wrong" like this


 No.1059579>>1059588

>>1059455

How do you debug a compiled language though?


 No.1059582

Here's another example for a place for improvement: visualization.

being able to visualize geometry and data structures would be very useful.

making it easy to do with the language will help a lot.


 No.1059588

>>1059579

The compiler can leave debugging symbols in the binary. It bloats the file size a little, but it's generally negligible and the benefit of being able to debug on the user-end is worth it. In GCC or clang for example you have to pass the '-g' flag to the compiler.




[Return][Go to top][Catalog][Screencap][Nerve Center][Cancer][Update] ( Scroll to new posts) ( Auto) 5
23 replies | 1 images | Page ?
[Post a Reply]
[ / / / / / / / / / / / / / ] [ dir / animu / doomer / egy / hkpol / jenny / kohl / strek / vichan ][ watchlist ]