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 1y ago · link · parent

Instead of inventing "JSON with comments" format, why not simply use JSON5?

comment 1y ago · link · parent

Note that the keyword was used in a "meta keyword" tag, which is invisible when viewing the page in the browser.

comment 1y ago · link · parent

"Soviet Union" means the Union of (16) Soviet Socialistic Republics. It's an abbreviation. The republics originally were parts of Russian Empire, so their status was raised, at least nominally (because revolutioners, including Lenin, condemned imperializm and conquesting other nations - something that was considered perfectly normal in the West at the time).

comment 1y ago · link · parent

But GDP is measured in dollars and not in amount of things produced. If everything is expensive in your country it will have larger GDP even producing less things.

comment 1y ago · link · parent

You should not compare GDP to GDP, because you cannot fight with paper. You should compare amount of equipment produced, human resources etc.

Also, GDP is easy to manipulate: simply increase the bread price and your bread GDP will magically rise without any changes.

comment 1y ago · link · parent

Probably to force people keep money in the bank where all transactions are visible to the govt and arresting the money requires just several clicks.

comment 1y ago · link · parent

I wonder: if a LLM can answer typical interview question better than a human, what kind of questions should we ask so that using a LLM becomes worthless? Something that LLMs are forbidden to talk about? Something that LLM doesn't know well?

In my experience, LLMs are pretty bad with low-level languages like Rust/C when you need to deal with pointers and ownership, avoid extra copies.

Another option is to ask for something impossible, as LLMs usually do not admit inability to solve the problem and prefer to hallucinate a fictional solution.

comment 1y ago · link · parent

Isn't that normal political activity? Making propaganda for candidate you support? (if I understand correctly that people simply gathered and tried to promote their candidate).

comment 1y ago · link · parent

Interesting that a winning candidate was allegedly not marking his promotion videos. Does it mean that people generally distrust everything officially marked and skip the video instantly (like I skip ads on Youtube)? And so, marking the video makes your campaign inefficient? Or it wasn't an important factor?

comment 1y ago · link · parent

Understandable, PHP doesn't have the best reputation.

comment 1y ago · link · parent

> to push an unknown, unlikable character to almost win

How does it work? You simply give some money to TikTok and the whole country runs to vote for an unknown, unlikable candidate? It must have superpowers.

comment 1y ago · link · parent

> users set up vpn

You'll lose most audience to a competitor that doesn't require VPN at this step.

comment 1y ago · link · parent

Blocking? You can't outsmart politicians using technology.

comment 1y ago · link · parent

The results were annuled by the government unhappy with the outcome, not by TikTok.

comment 1y ago · link · parent

Shouldn't election be organized such that it cannot be disrupted by Internet attacks from abroad? At least not so easily.

Also, I tried opening the PDF [1] with so called "declassified report" and while I cannot read Romanian, the first header contains "TikTok" and I am left wondering how can one hack an election system using Tiktok? Did they count the votes using TikTok videos? And what about Telegram (mentioned nearby)? It doesn't even have a newsfeed. Oh those powerful hackers!

Judging by "distribuite numeroase imagini" and "blockarea accessului visual" (which almost sounds English), TikTok hacked their elections by simply refusing to block a video (or by blocking it?).

> Access credentials for election websites were stolen by threat actors and leaked on a Russian hacker forum

What a sad state of European cybersecurity. But this threat seems to be real, unlike the TikTok attack.

[1] https://www.presidency.ro/files/userfiles/Documente%20CSAT/D...

comment 1y ago · link · parent

I think the parent comment mean "art" as "having fun", like playing a guitar, definitely no fun to see the robot playing it and not letting you even touch it.

comment 1y ago · link · parent

Out of curiosity, I tried to use freely available LLM to generate simple Python tests. I provided the code and specified exactly what requirements I want to be tested. What I found out is that initially it generates repetitive, non-DRY code so I have to write propmts for improvement like "use parametrization for these two tests" or "move this copy-paste code into a function". And it turns out that it is faster to take initial version of code and fix it yourself rather than type those prompts and explain what you want to be done. And worse, the model I was using doesn't even learn anything and will make the same mistakes the next time.

But, this was a generic LLM, not a coding assistant. I wonder if they are different and if they remember what you were unhappy with the last time.

Also LLMs seem to be good with languages like Python, and really bad with C and Rust, especially when asked to do something with pointers, ownership, optimization etc.

comment 1y ago · link · parent

Out of curiosuty, I looked through logs at my laptop after it wakes up and here is what is present there:

> kernel: ACPI: PM: Waking up from system sleep state S3

> kernel: CPU1 is up

> kernel: smpboot: Booting Node 0 Processor 1 APIC 0x1

> kernel: Enabling non-boot CPUs

> kernel: ACPI: PM: Low-level resume complete

So of course it might be not a "real" S3, but I didn't have a chance to test how long the laptop battery can last in suspended mode.

comment 1y ago · link · parent

But spaces are allowed in filenames since 80s, didn't software had enough time to adapt?

comment 1y ago · link · parent

Don't you think that it would be better to get rid of usernames in UI? They only provide unique data for fingerprinting and do almost nothing useful on a single-user system. Wouldn't it be better to simply have a default name like "primary user" or "main user" for the first user and skip one step in installation process? Also it frees you from typing a username on login for a single-user system.

comment 1y ago · link · parent

I didn't understand why the laptop was waking up by itself. Was the lid too close to the buttons and it was pressing it?

> S3 is unsupported (thanks AMD)

My AMD laptop (not a Framework) seems to have no issues with sleeping though (although I don't know what power state it is in).

comment 1y ago · link · parent

And they often cost less than a MacBook for which you need to buy an external shutter.

comment 1y ago · link · parent

My laptop has built-in physical camera cover, and it doesn't cost even as much as a half MacBook.

comment 1y ago · link · parent

Should not the author be able to decide if his work may be used for generative AI?

> Imagine forcing an artist to unlearn

Mathematical models cannot learn. What happens in fact is the owner of generative AI takes a bunch of copyrighted works which took a lot of effort and money to produce (instruments, mics and other equipment is super expensive), puts it into computer and sells whatever the computer has calculated from those recording. Do you see any learning or any creativity here?

There were cases when suno (or udio) was reproducing producer tags almost verbatim (but in lower quality) for example. This shows that the model was not simply calculating some probabilities of patterns of pitches, durations etc, but was storing the copyrighted content almost unmodified.

Also, personally I have no interest in a service that generates a song for you because it takes away all the fun. Maybe something that helps to find mistakes in composed music and help learning would be much more useful.

comment 1y ago · link · parent

This might be due to quality of the dataset because Nvidia seems to be not using copyrighted commercial recordings (if I read their paper properly). It is difficult to compete with those who have used larger and higher quality dataset without permission.

comment 1y ago · link · parent

> go on tour

Why go on tour if you can send an AI singer instead and if you cannot sing as good as it anyway?

comment 1y ago · link · parent

If you use it for work, AI might be ok, but generating a guitar or piano track is zero fun compared to playing a real instrument (even if AI track sounds better). I think we should not forget this part too.

But what about an AI guitar that automatically frets the strings properly if you don't press them hard enough? Or an AI piano which shifts the keyboard when it sees that you are about to hit the wrong key?

Many instruments require lot of practice before you can produce acceptable sound. Can AI help with this?

comment 1y ago · link · parent

This might be because of dataset quality, because most of high-quality content is in commercial music and sample libraries.
1
646566
185