Better HN
topnewbestaskshowjobs
Log inSign up

codedokode

9,867 karma · joined Aug 20, 2015 (11y ago) · 5,528 submissions

PHP developer from Russia.
Submissions

comment 2mo ago · link · parent

As I understand, AI is a (paid) tool for text generation, so it's totally ok to generate texts using it for whatever purpose you need.

comment 2mo ago · link · parent

Interesting how an agent mimics a human hesitating and trying to avoid doing work:

> No.

> This is major.

> Given time, maybe best to respond explaining can't due to time? but instructions expect actual work. However complexity huge; but as coding agent, need to attempt

> Maybe we can cheat ... But user may test and see still single CPU.

The smarter AI will be, the better it will be at avoiding doing actual work.

Also, can similar responses be explained with that both models were trained on a same dataset of answers to the benchmark problems?

comment 2mo ago · link · parent

Is it something new? I think Yandex Maps shows busses in real time since long ago (at least in large cities like Moscow). The busses have GPS and send the data in real time. I wanted to post a link but at night there are not many busses and the first ones will appear 1-2 hours later: https://yandex.ru/maps/213/moscow/transport/buses/?l=masstra...

comment 2mo ago · link · parent

What would an average person lose if everybody used more open platforms?

comment 2mo ago · link · parent

The syntax looks a bit too verbose for me. And function names like "read" and "write" are confusing too, given that "read" function isn't made for reading values. Cannot we use a single function for binding, like this (and name it "bind")?

    let counter = proxy({ count: 0 });
    bind('.counter', (el) => el.textContent = counter.count);
    counter.count++; // Queues DOM update
Also,

> Mador is distributed as an ES module.

This means it cannot be used on a page opened from disk, and the user needs to set up a HTTP server which is time-consuming and distracting. And you cannot distribute an app as as HTML file.

comment 2mo ago · link · parent

It depends on count of variables and dependencies. The much worse problem with proxies is that they can be confused with raw values, for example, you can add a proxy into a Set, and then check for existence of a raw value. Or confuse raw value and proxy in dictionary's keys.

comment 2mo ago · link · parent

I would suggest adding a readable and formatted example of compiled code.

comment 2mo ago · link · parent

React code looks so ugly to my taste. Try reading it: "use state zero". What does it even mean? And why "const" is used for a value that changes?

  const [count, setCount] = useState(0)
I didn't understand how the compiler works completely, but I assume it tries to figure out the dependencies during compilation time ("The text of node Y depends on variable x"). This approach is closer to Vue's approach which uses proxies to find these dependencies in runtime, than React's approach which renders the new tree, diffs it against the DOM and applies changes. So it is unclear why React was used for input instead of Vue here. Furthermore, as I remember, Vue has templates implemented as HTML (including attributes for branches and loops) so it would be easier to parse than raw JS code used by React.

Another problem is that those dependencies are often unknown at compilation stage. For example, imagine a form which is generated dynamically based on list of fields received from the server and should show error boxes when invalid values are entered. The compiler won't be able to pre-compute the dependencies here because it doesn't know what DOM nodes will exist at runtime. I assume the compiler would figure out a dependency between a variable with list of fields and "form" DOM node, but not dependencies between entered data and error boxes visibility.

Sadly the website doesn't provide examples of generated code so I cannot confirm my guess.

Anyway, interesting idea. Sometimes I draft reactive frameworks on paper so I understand the challenges a little bit.

Also what I do not like in reactive frameworks as that they are invasive and require you to adapt the code for them. For example, I might have my object model (let's say a TextDocument class with lot of nodes inside), and all I need is a "View" that would display it. But React requires you to move the data into props and state, and sometimes use a giant immutable object that gets rebuilt on every user action, and Vue wraps everything with proxies which causes lots of small issues and confusion (like putting a proxy into the Set instead of original object). And also React requires installing Node and compilation which is too much for a one-page quick project. So what I want is that I pass my Document Object Model and framework just displays it without making me adapt to its architecture. For example, I pass a model of a text document and it just displays it. Without immutability, without proxies, and without writing a giant switch with all possible user commands (I think they call the approach with a large switch and immutable objects "redux"). I do not need redux, I just want to use classic MVC from 80s and not modern dubious ideas. I have M and C and only need a V.

comment 2mo ago · link · parent

What are you humans going to do when agents stop using English and start using ancient Chinese or even self-invented language?

comment 2mo ago · link · parent

"Crime" is very flexible term. One country's criminal is another country hero. Maybe the author would sell the vulnerability to an organization making exploits for government use.

"Safety" is also a relative thing, when the world is safer for one party, it is usually worse for another.

comment 2mo ago · link · parent

Modifying a constant in code might make sense because it saves several precious bytes of variable storage.

comment 2mo ago · link · parent

Clicking a button is enough to become an "author" of the photo, and writing a prompt requires more skill.

comment 3mo ago · link · parent

The text could be truncated for some reason. Or maybe "hazzy" is an adjective before the bot link? "Hz" is translated by both Google and Yandex as "don't know".

comment 3mo ago · link · parent

Could it be "hazy", which is supposed to mean "cloudy"? The word "cloudy" is often used in Russian for "unclear", "vague", for example, one could say: "Western countries are awaiting a cloudy perspectives due to discarding traditional values".

You can notice one more example of original language leak in the quote from a report ("And she needs politicians...") where Germany is referred to as "she", because in Russian "Germany", as many other countries, has a female gender, so we call it "she", not "it". In English I usually see people using "it" for countries.

comment 3mo ago · link · parent

Maybe they were not as good at the time, or the contractor just used to use ChatGPT. Also ChatGPT can be used without a phone number registration, unlike Chinese models.

comment 3mo ago · link · parent

As I remember, in Finland everyone is guaranteered an apartment, even if the person has no money.

comment 3mo ago · link · parent

Could it be because Japan is populated mostly (98%) by people who have lived there for multiple generations under strict rules? Also, it's probably a cultural thing where crime is shamed.

comment 3mo ago · link · parent

Commercial companies with closed-source software, cloud software will always betray you.

comment 3mo ago · link · parent

Could these proxies be sold to AI companies for scraping websites?

comment 3mo ago · link · parent

Cheap Android phones and tables often have built-in advertisement from manufacturer. One example of such software, it creates a window with Google Ads on top of browser window. The window is shown only when the browser is active to make it look like the ads is a part of the site. The ads appears only couple weeks after activation so that the user thinks it is a result of installation of some app and Youtube reviewers do not notice existence of malware. The adware consults a remote config which defines in what countries it should work. Another adware component automatically downloads and re-installs it if it is deleted.

I found all these details through examining the official firmware image and reverse engineering.

I don't remember if I reported Google Ads id to Google. It is interesting that Google doesn't notice and care about such use of their products.

comment 3mo ago · link · parent

There is a small number of cameras which broadcast the video publicly. For example, Moscow: [1] (Taganskaya square), [2] and Saint-Petersburg: [3] (Nevsky prospect and Gostiniy Dvor). Sadly the quality is not great and in reality those places look much better. For example, many of the small 2-floor buildings on Taganskaya square are over 100 years and have a nie classical architecture but one cannot see any fine details in the camera view.

[1] https://gidcam.ru/camera/moskva-panorama-centra-stolicy-s-ma...

[2] https://gidcam.ru/camera/moskva-volgogradskij-prospekt-i-plo...

[3] https://camguide.net/ru/europe/russia/saint-petersburg/nevsk...

comment 3mo ago · link · parent

With high probablity they are actually made in China. I don't think Russia makes their own chips for cameras.

comment 3mo ago · link · parent

Hungary and Slovakia are largest importers of Russian natural gas in Europe. France is third as I remember.

comment 3mo ago · link · parent

ok.ru ("classmates") is a social network with web UI and an app, so you do not need to download anything. Also, foreign movies are shown in cinemas (unofficially) regardless of copyright owner opinion.

comment 3mo ago · link · parent

Europe just needs to have its own clearing center. Russia did this, and cards work internally without any trouble. As a nice bonus, transaction information does not go to US.
1
91011
185