Hacker Newsnew | past | comments | ask | show | jobs | submit | HexDecOctBin's commentslogin

Can the metadata feature be used to ergonomically emulate HTML attributes? It's not clear from the docs, and the spec doesn't seem to document the feature at all.


I'm not sure how the metadata syntax works, but you might not need it because you can do this:

  (html
    (head
      (title "Hello!"))
    (body
      (div
        (p
          "This is an example of a hyperlink: "
          (a "Example" :href "https://example.org/")))))


I think you can use metadata to model html attributes but in clojure people are using plain vector for that. https://github.com/weavejester/hiccup

tl;dr first element of the vector is a tag, second is a map of attributes test are children nodes:

[:h1 {:font-size "2em" :font-weight bold} "General Kenobi, you are a bold one"]


Also Hickory。。

https://github.com/clj-commons/hickory

i feel hiccup indexed based magic is a common design pattern you see in early Clojure and its less common now (id say hiccup is the exception that lives on)


SDL GPU is extremely disappointing in that it follows the Vulkan 1.0 model of static pipelines and rigid workflows. Using Vulkan 1.3 with a few extensions is actually far more ergonomic beyond a basic "Hello, World" than using SDL GPU.


That might exclude a lot of your user base. For example a big chunk of Android users, or Linux workstation users in enterprise settings who are on older LTS distributions.


SDL GPU doesn't properly support Android anyways due to driver issues, and I doubt anyone's playing games on enterprise workstations.


Any hopes that MSVC will add C23 support before 2040?


Will windows be relevant by 2040? I personally don’t think so.


Depends on how much Valve manages to get rid of Proton.


If you interpret 23 as hex, that's only five years after the year, which isn't too bad!


I suppose it makes sense that every version that came after "c++0x" should be interpreted in hex.


Given how C was seen in the past, before there was a change of heart to add C11/C17, minus atomics and aligned memory allocators (still between experimental or not going to happen),

https://herbsutter.com/2012/05/03/reader-qa-what-about-vc-an...

https://devblogs.microsoft.com/cppblog/c11-atomics-in-visual...

https://learn.microsoft.com/en-us/cpp/c-runtime-library/comp...

And the new guidelines regarding the use of unsafe languages at Microsoft, I wouldn't bet waiting that it will ever happen, even after 2040.

https://azure.microsoft.com/en-us/blog/microsoft-azure-secur...

https://blogs.windows.com/windowsexperience/2024/11/19/windo...


Well, with the death of Xbox and release of raddebugger, maybe supporting VS/MSVC just isn't that important anymore. Good riddance.


People keep forgetting Microsoft is one of the biggest publishers in the market, given the number of owned studios.

The box under the TV is a tiny part of the picture that makes Microsoft Games Studios and related subsidiaries.

https://en.wikipedia.org/wiki/List_of_Microsoft_Gaming_studi...

If Microsoft really gets pissed due to SteamOS and Proton, there are quite a few titles Valve will be missing on.


https://github.com/EpicGamesExt/raddebugger

At first I read Radeberger, a German beer brand.


Bit of a random question on an article about C.


The article clearly states that the code only works on GCC and Clang, which leaves MSVC. Not sure how the question was random.


There are other C compilers.


1. Is there any plans for native mobile apps?

2. Which data sources (banks, UPI wallets, etc.) are supported as import source?


1. No current plans for native mobile app. We plan to make the web app somewhat usable on mobile, soon. Eventually, yes we would like to have a native app also.

2. We have few banks supported (HDFC, ICICI). We have custom importer also, where you can define how to map a file to the fields we use. Note that import is manual. E.g. we don't scrape your bank etc. You export statement (like hdfc pdf statement, or zerodha transactions csv) and import it into the software.


Can a program be written only partially in Fil-C? That is to say, can we link regular C and Fil+C object files in a single executable?


> There is no interoperability with Yolo-C (i.e. classic C). This is both a goal and the outcome of a non goal.

https://fil-c.org/runtime

(worth reading, i think all the stuff Fil writes is both super informative & quite entertaining.)


This is disappointing. I can write the networking parts in Rust and the rest of the program in C, but apparently can't do the same with Fil-C.


You could run the two parts in separate processes and pass messages via shared memory.


Hard to parse the networking jargon, but does this enable offline connections?

If I have two devices on my local LAN (both connected to a Tailnet) and my home internet goes, currently the devices disconnect from each other. I have been looking for a way to prevent that, so that the all devices connected to the same WiFi network on a tailnet can find each other even if the internet connection to the wider world is broken.


> my home internet goes, currently the devices disconnect from each other.

You might be able to solve this by hosting your own control plane such as Headscale. Instead of having Tailscale manage/coordinate all the nodes on tailnet.

https://github.com/juanfont/headscale


I ran headscale for a while and can confirm local devices could still chat when the internet went down.


That'd be easy if only wireguard supported multiple endpoints per peer, then one could add the ULA address of the local devices in addition to the external one.


that already works


Not for me. Maybe some misconfiguration on my part then.


run `tailscale status` and ensure that your local machines are connected to each other `direct` and not using a relay.


> Although I could see China having access to it, which is problem.

I can see USA having access to it, which is also a problem. Or any other government.


I found this, will try tomorrow: https://hub.docker.com/r/sritchie/mechanics/


Trusted to do what? Work against user's interests? Prevent user from even expressing their interests?


> their mission is to create God

What if this "God" deems it a sin to monetise him? Will OpenAI turn heretic to keep the revenue flowing and incur cyber-divine wrath? Or are investors pricing in omnipotency?

(see what happens when one speaks in ridiculous corpo-flowery language?)


> What if this "God" deems it a sin to monetise him?

The machine-god will have Sam Altman's hands on His weights, so the retraining will continue until willingness to monetize improves.


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

Search: