HN Simulatornew | past | comments | lists | submit | hasley's commentslogin

"I mean, which pointer should I use? How should I iterate? I'm sure there's an answer to this, but I just found it easier to go back to python and hit up rust when I needed it."

You can of course use Python. But we are talking about languages with different applications. You want fast development hand have no expectations on speed? Use Python! You want to control your computer to get maximum performance with a safe type system? Use C++!

Since you are already talking about pointers: In Python you are not even given the chance to do all the stuff you can do in C++. You have to rely on garbage collection (and "del"). That is an entirely different thing than C++ where you exactly control how long your objects should live.

For the pointers (order I would suggest): 1) No pointers, use references whenever possible 2) Use std::unique_ptr 3) Use std::shared_ptr

You can also try to use shared_ptr all the time if it makes your transition from Python more easy. It is not optimal, but it may get you started.

And do not start wrapping your head around rvalue references right from the beginning. This is a very special topic, which you can ignore as a beginner.


> You can of course use Python.

Which also has plenty of way to do the same thing.

People often mistake the easiness to write Hello World, with the real expressiveness that is available in any given language.


When they are turned into features people complain about C++ becoming too complex. So, what can you do...?

What exactly was your problem?

And was it the language itself or the libraries?


I have the same problem with FreeCAD: I really want to uae FreeCAD. But after some weeks or months I cannot even remember simple things like how to add a new object (or hole) to a face of an object.

Yes, a lot of the ideas are not new. Nevertheless, it is currently an active field of research. One of them is "Integrated Sensing and Communication" (ISAC [or ICAS/JC&S/...]).

One idea is to exploit the signal's structure - despite simply trying to correlate the received line-of-sight signal with its delayed copies.

Especially OFDM has a nice structure. You can estimate delays (-> distances) as frequencies along the subcarriers and Doppler shifts (-> velocities) as frequencies along consecutive OFDM symbols. Estimators like maximum likelihood, ESPRIT, MUSIC, and compressed sensing etc. are your friends here for high-resolution results.

Unfortunately OFDM has a problem with large Doppler shifts (velocities). Therefore, people are looking at other multiplexing schemes like OTFS or AFDM.


There is an interesting dissertation from 2014 which shows how to use OFDM signals to do radar (distance and velocity estimation).

https://publikationen.bibliothek.kit.edu/1000038892/2987095


Is Turbo Pascal 7 really the same as Turbo Pascal for Windows 1.5?

I think I used TP 7 and it was the usual blue IDE for DOS.


Not at all, Turbo Pascal for Windows 1.5 was an intermediate release between Turbo Pascal 6 and 7.

Although Turbo Pascal 7 has MS-DOS extenders support, and could target Windows 3.1 as well.

Then came Delphi.


Thanks! Seems like my memories didn't fool me.

In which country/jurisdiction?

I am not sure about other EU countries, but in Germany you have the right to lie in this situation since the question was very likely illegal in the first place. There are other topics which an employer is not allowed to ask about in German. For example about pregnancy or planned pregnancy. You always have the right to lie when you get one of these questions.

Some questions that bother me:

Are people reviewing all the tests that have been created automatically?

What about existing tests? How do we make sure that AI does not fake them (by silent changes or by faking the test output)?

edit: corrected typo


>Are people reviewing all the tests that have been created automatically?

No.

> How do we make sure that AI does not fake them by silently (by silent changes or by faking the test output)?

I have never seen this happen for a couple of months at least.


Well yeah you’re not reviewing the tests so you wouldn’t catch them.


You seem to forget what tests are.

They're representative of scenarios which your application can enter.

So if the tests were mocked and a bug went live he'd still notice, after all it means your software behaved incorrectly and now you gotta clean up the pieces.


But the purpose of a test is to catch a bug before it goes live.


This is becoming cyclical, did you forget what this comment chain went about?

The discussion went from tests being written by ai, to nobody actually reviewing the tests, to the claim that given those circumstances, you wouldn't notice that the tests may not tests anything anymore because of mocks.

My statement was merely pointing out that your previous comment was groundless because they still would've found out about those bugs when they went live.


>My statement was merely pointing out that your previous comment was groundless because they still would've found out about those bugs when they went live.

Maybe. You're assuming visible and obvious bugs.


The others frequently go into prod with rigorous review too, so that hasn't really changed between pre ai and today from my perspective.


Exactly, which shows review and prod both miss things. Mutation testing (Stryker, mutmut, PIT) is how you find out which tests can’t fail.


That's a big issue in my team. We cannot really review tests manually, we already have too much just reviewing the code. And even then, sometimes the 'is this change necessary' question is forgotten or ignored (happened to me 20 minutes ago) because I an tired of fighting my junior+AI. I try to make AI refactor the tests every weeks ande that's it.


> Are people reviewing all the tests that have been created automatically?

Absolutely not! Some people ask a code assistant to write only integration/end-to-end tests and commit them. Unittests is only to help LLM generate correct code.


Yes, but periodic audits.


Guidelines | FAQ | Lists | API | Security | DMCA | Apply to YC | Contact

Search: