← Home ← Back to /g/

Thread 105688172

184 posts 24 images /g/
Anonymous No.105688172 >>105692300 >>105703525 >>105711732 >>105718979 >>105720245 >>105720799 >>105722666 >>105724649 >>105727036 >>105736390 >>105738080 >>105741403 >>105744020 >>105744061
/chug/ - comfy hare users general
The purpose of this General is to discuss Hare, Low level and also systems programming in general.
Hare is a successor to C. Therefore, hare users are experts on C. Because of that, questions and discussion about C are also welcome.

What is Hare?
>https://harelang.org
>Hare is a systems programming language designed to be simple, stable, and robust. Hare uses a static type system, manual memory management, and a minimal runtime. It is well-suited to writing operating systems, system tools, compilers, networking software, and other low-level, high performance tasks.

What does Hare bring to the table?
>Staying loyal to C ideal of simplicity while revamping the error handling, module system and the standard library
Other than that, Hare doesn't deviate from C that much unlike Zig, Rust, etc. That is why Hare is best used by seasoned C developers who do not dislike C, but have only minor nitpicks with C.

Don't know how to write Hare? Start here:
General documentation: https://harelang.org/documentation/
General language introduction: https://harelang.org/tutorials/introduction
Standard library: https://harelang.org/tutorials/stdlib
Tsoding's review: https://www.youtube.com/watch?v=2E3E_Rh3mvw [Embed] [Embed]

The flagship feature of Hare is the "Tagged Unions". C users who have used OCaml in the past will feel right at home!

type signed = (int | i8 | i16 | i32 | i64);
type unsigned = (uint | u8 | u16 | u32 | u64);
type integer = (...unsigned | ...signed);


Previous: >>105604073
Anonymous No.105688200 >>105688205 >>105688596 >>105688982 >>105703693 >>105722666
Hare 0.25.2 was just released.
https://harelang.org/blog/2025-06-21-hare-0.25.2-released/

The most interesting thing in my opinion is this paragraph:
>This release also adds support for semantic code annotations, to enrich your Hare code with additional metadata. Here’s an example of how this is being used to prototype JSON encoders and decoders for hare-json:

#[json::gen]
export type player = struct {
name: str,
#[json::field(name = "X", omit_null=true)]
x: *f64,
#[json::field(name = "Y", omit_null=true)]
y: *f64,
};


So this is Hare's answer to reflection. In-code tags + codegen tools. Codegen tools are actually baked into "hare" build driver itself, which is neat.
Anonymous No.105688205 >>105691757 >>105697569 >>105755526
>>105688200
Oopsie, messed up the code. Let's try that again.

#[json::gen]
export type player = struct {
name: str,
#[json::field(name = "X", omit_null=true)]
x: *f64,
#[json::field(name = "Y", omit_null=true)]
y: *f64,
};
Anonymous No.105688596 >>105694727 >>105715053
>>105688200
>bufio::newscanner now accepts an optional bufio::scan_options parameter to fine-tune its behavior in the end-of-file condition, allowing the user to determine the appropriate behavior when scanning lines or tokens whose delimiter does not appear before the end of the file. Having access to these knobs is useful in particular when dealing with incomplete I/O sources, such as a socket or a pipe.
This will make writing parsers and network applications so much easier
Anonymous No.105688982 >>105694236
>>105688200
>Hare’s best-in-class time and date support has received numerous improvements and refinements over the course of this release cycle, mostly to simplify and clarify its usage. These changes are important in order to make it as easy as possible for Hare users to handle the tricky problems of time/date handling in an intuitive and maintainable way.

This is an autistic level of attention to detail. I kind of love it.
Anonymous No.105689556 >>105694022 >>105695267 >>105719395
My professor (saint petersburg university) showed us this language (not taught, just shown that it exists) in our programming course. Kind of funny seeing it here.
Anonymous No.105691757
>>105688205
Cool
Anonymous No.105691941 >>105695692 >>105696082 >>105696424 >>105718792
this is just rust again
Anonymous No.105692300 >>105693389 >>105697189 >>105700399
>>105688172 (OP)
I'm currently slowly moving westward to Kiev for a new project, is this a language with some community/maturity to it, or should I wait a few more years before trying
Anonymous No.105693389 >>105696780
>>105692300
It is a good choice but it will also get MUCH better ..
Anonymous No.105694022
>>105689556
I am also from there lmao
Anonymous No.105694068 >>105697900
Hare is one of those languages that you either really like or really hate
Anonymous No.105694236
>>105688982
>best-in-class time and date support
LMAO this is such a weird thing to brag about
Anonymous No.105694727 >>105699777
>>105688596
I was struggling so much with incomplete input in C ...
Anonymous No.105695267
>>105689556
Don't get drafted bro
Anonymous No.105695678 >>105705776
So how is the book going?
Anonymous No.105695692
>>105691941
same obsession with safety same authoritarian leftism culture same slow compiler same terrible keywards same authoritarian leftist culture it is literally the same
Anonymous No.105696082 >>105698410 >>105715027
>>105691941
How is Hare ANYTHING like Rust?
Anonymous No.105696424
>>105691941
bruh
Anonymous No.105696543 >>105699196 >>105705221
>Following the release of Hare 1.0, the specification will be finalized
Hare 1.0 will come in the year of the linux desktop
Anonymous No.105696579 >>105698418 >>105698746
>C but worse and for people who want to be le quirky
I'm in
Anonymous No.105696780
>>105693389
It better, or nobody will use it ...
Anonymous No.105697189
>>105692300
What are you working on, anon?
Anonymous No.105697569 >>105700762
>>105688205
>::
why
Anonymous No.105697900
>>105694068
Aint that the truth, lol.
Anonymous No.105698410 >>105704721 >>105718265
>>105696082
Doesn't Rust use #[ ] syntax for macros or something?
Anonymous No.105698418 >>105699143
>>105696579
It is actually a better C.
Anonymous No.105698746
>>105696579
Pretty much lmao
Anonymous No.105699143 >>105699446
>>105698418
yeah and rust is a better cpp. your usp is that its user base thinks they are better than the rest
Anonymous No.105699196 >>105699767
>>105696543
The year of the Hare programming language!
(but seriously it will reach 1.0 before Zig or before Rust has a spec)
Anonymous No.105699446 >>105699509 >>105707142
>>105699143
>rust is a better cpp
[citation needed]
Anonymous No.105699509
>>105699446
how have you gone your entire life without seeing a person who thinks rust is the greatest language of all time
Anonymous No.105699767 >>105700119 >>105706809
>>105699196
why rust and zig? why do you "new language" people never mention go? why do you people insist on fighting for 2nd place?
Anonymous No.105699777
>>105694727
Same.
Anonymous No.105700119 >>105702880
>>105699767
Because Go is already perfect for it's use case. The only way is to develop a language with a different use case from Go, a non-GC language
Anonymous No.105700399
>>105692300
>I'm currently slowly moving westward to Kiev
In a tank?
Anonymous No.105700762 >>105706141 >>105706367 >>105708586 >>105708617
>>105697569
Because there aren't better alternatives
> module.func
you end up with too many dots in your code: decimal point, records access, ranges
You should have clear syntax to differentiate between namespaces and data records
eg: nontrivial zig code snippets tend to look like a dot soup especially when dealing with a lot of data structure in modules that force you to have 3 level of indirection module.data.func() instead of a more clear module::data.func() which highlights what's the namespace and what's the data structure
> module$func()
just horrible
> module/func()
unreadable
> module:func()
okay-sh but already used for type variables declarations and also it's harder to read respect to other options
> module-func()
kebab case it's good for functional programming, it doesn't look so good in other paradigms

Unless you have a better proposal module::func() it's the least shitty option
Anonymous No.105702880
>>105700119
This
Anonymous No.105703525 >>105704336 >>105706516 >>105730398
>>105688172 (OP)
You saving the ad money for rope?
Anonymous No.105703693
>>105688200
>Hare 0.25.2 was just released.
Nice!
Anonymous No.105704336
>>105703525
>You saving the ad money for rope?
Why are you so mad ...?
Anonymous No.105704721
>>105698410
>Doesn't Rust use #[ ] syntax for macros or something?
No, it uses ! for macros.
Anonymous No.105705221
>>105696543
Year of the Hare desktop
Anonymous No.105705776
>>105695678
I will make a logo
Anonymous No.105706141
>>105700762
C# uses . and it is not too bad.
Anonymous No.105706367
>>105700762
Why not \ in the great tradition of Windows
Anonymous No.105706516
>>105703525
You are going to rope after Hare reaches 1.0
Anonymous No.105706809
>>105699767
Go is garbage collected.
Anonymous No.105707142 >>105724678
>>105699446
C++ derangement syndrome. There is nothgin wrong with C++.
Anonymous No.105707427 >>105707726
>No OOP
Dropped.
Anonymous No.105707726 >>105708330
>>105707427
Thats the new Fashion. if they Did OOP how Can the user bAse feel contrarian?
Anonymous No.105707737
>A bastard child of OCaml, C and Go
Anonymous No.105708330 >>105708369
>>105707726
Right. The best, most complicated userspace software was written in C++ and Java. But Millenial Drew and his zoomer audience can't admit that GenX and Boomers were right about something.
Anonymous No.105708369 >>105708432
>>105708330
OOP is not a serious paradigm for performant software anymore. Moore's law for clock speeds died in early 2000's. You can't rely on hardware to bail out the coding style anymore so you have to adopt a programming paradigm that is more performant and as a result with less abstractions.
Anonymous No.105708432 >>105708492
>>105708369
Buddy average C++ code is only 3% slower than average C code
Anonymous No.105708492 >>105708567 >>105717813
>>105708432
Not if you're heavily using OOP. Even fucking Python can out perform OOP styled C++.
https://www.youtube.com/watch?v=02rh1NjJLI4
Anonymous No.105708567 >>105708591
>>105708492
>Not if you're heavily using OOP
Doesn't literally every C++ project do this?
Anonymous No.105708586 >>105717295
>>105700762
>Unless you have a better proposal module::func() it's the least shitty option
module€func()

?
Anonymous No.105708591 >>105708654 >>105708776
>>105708567
If I remember correctly Quake and Doom are C++ and they are very C, imperative styled. Could be wrong though.
Anonymous No.105708617 >>105709906
>>105700762
```CALL func WHICH IS IN data WHICH IS IN module WITH [args]```
Anonymous No.105708654 >>105708776
>>105708591
>If I remember correctly Quake and Doom are C++ and they are very C, imperative styled. Could be wrong though.
I was certain that Doom was written in C. Huh
Anonymous No.105708776 >>105708889 >>105712873 >>105716716
>>105708654
>>105708591
it's in c https://en.m.wikipedia.org/wiki/Development_of_Doom
Anonymous No.105708889
>>105708776
>it's in c https://en.m.wikipedia.org/wiki/Development_of_Doom
Heh I was correct
Anonymous No.105709906 >>105717166
>>105708617
>CALL func WHICH IS IN data WHICH IS IN module WITH [args]
Harebol
Anonymous No.105710356 >>105710972 >>105716289 >>105719757
Why did Drew had to delete his socials? I for one enjoyed his takes.
Anonymous No.105710972 >>105711575 >>105715732
>>105710356
outed for liking pizza with no pepperoni
Anonymous No.105711575
>>105710972
>outed for liking pizza with no pepperoni
That is like a pizza with no Crust!
Anonymous No.105711732
>>105688172 (OP)
best language evar! :D
Anonymous No.105712852 >>105714026
I heard that someone has made a minecraft in Hare. is that true?
Anonymous No.105712873
>>105708776
>it's in c
Based. Luv C. Luv Hare. Simple as
Anonymous No.105714026 >>105714747
>>105712852
Yes Drew did
Anonymous No.105714747
>>105714026
Holy based. Is it playable?
Anonymous No.105715027
>>105696082
safety bobsession
Anonymous No.105715053
>>105688596
Zig still cannot do this btw
Anonymous No.105715732
>>105710972
Many such cases! Sad.
Anonymous No.105716289
>>105710356
Kiwi subhumans. I hate them so much.
Anonymous No.105716716 >>105717166
>>105708776
>https://en.m.wikipedia.org/wiki/Development_of_Doom
>The initial development team was composed of five people
bruh
Anonymous No.105716939 >>105730645
Finally, a language for sex-havers!
Anonymous No.105717166
>>105709906
wow, nice one
>>105716716
?
Anonymous No.105717295
>>105708586
Patriotic and good
Anonymous No.105717813
>>105708492
>Even fucking Python can out perform OOP styled C++.
Python cannot even do for loops and you expect me to believe that Python's vtables outperfom C's?
Right.
Anonymous No.105718265
>>105698410
I think that these are derivatives, not macros. I could be wrong though.
Anonymous No.105718792
>>105691941
Rust if Rust was simple and bullshit-free. So, not Rust lmao.
Anonymous No.105718979 >>105719381
>>105688172 (OP)
Sounds neat but as usual I'm just gonna keep using C and C++. I'm old and different is always worse no matter how good it is.
Anonymous No.105719381
>>105718979
How old are you to mention it like this?
Anonymous No.105719395
>>105689556
Rushares
Anonymous No.105719757
>>105710356
He got cancelled. A witch hunt of sorts.
Anonymous No.105720245 >>105729263
>>105688172 (OP)
I noticed that the contributors to this language are nearly all European
Anonymous No.105720799 >>105721807 >>105722002
>>105688172 (OP)
I've no idea what Hare is but I appreciate the layered shitpost OP, the thread isn't fully of crying trannies over the logo either so the language must have some merit.
Anonymous No.105721807
>>105720799
>the language must have some merit.
I agree
Anonymous No.105722002 >>105722378 >>105728788
>>105720799
it does have the merit of being get another syntax variation to a language that didn't need one
Anonymous No.105722378
>>105722002
>it does have the merit of being get another syntax variation to a language that didn't need one
Why so salty? And such wrong description?
Hare obviously has many features C doesn't. Tagged Unions, Modules, nullable types, undefined behavior elimination ...
Anonymous No.105722666 >>105724482
>>105688172 (OP)
>>105688200
I have never seen a language ship a tool to assist with breaking changes. Have you?
Anonymous No.105724482
>>105722666
No. It is actually a really cool idea
Anonymous No.105724649 >>105724838 >>105728317
>>105688172 (OP)
>Hare is a systems programming language designed to be simple, stable, and robust. Hare uses a static type system, manual memory management, and a minimal runtime. It is well-suited to writing operating systems, system tools, compilers, networking software, and other low-level, high performance tasks.
Has anyone built a kernel in it yet?
Nothing fancy, just a system that gets past POST and maybe prints something to screen.
Anonymous No.105724678 >>105724860 >>105729890
>>105707142
It's a bloated fucking mess when it comes to supplementary functionality, but syntactically it's pretty nice and the objectification is pretty decent.
Anonymous No.105724838
>>105724649
>Has anyone built a kernel in it yet?
Other than the creator of the language, who built two such kernels, nobody else has so far.
Anonymous No.105724860
>>105724678
It is a bloated mess when it comes to features nobody asked for, but it is still missing features everyone keeps asking for :D
Defer, getting rid of .h files, go-style stdlib which would use reader/writer interfaces ...
Anonymous No.105725715 >>105727023 >>105727846 >>105730318
Drew is married to a troon and likes to beat off to pictures of 4 year old girls.
Anonymous No.105727023 >>105730374
>>105725715
>Drew is married to a troon and likes to beat off to pictures of 4 year old girls.
The other way around
Anonymous No.105727036
>>105688172 (OP)
There is a strong case of Hare Derangement Sydnrome on kiwifarms
Anonymous No.105727846
>>105725715
Still won't make you a non-NEET, anon-kun ...
Anonymous No.105728317
>>105724649
>Nothing fancy, just a system that gets past POST and maybe prints something to screen.
Drew wrote a linux clone in Hare. And a fully functional Minecraft 1.7.6 beta client (at least as far as gameplay goes, unsure about UI)
Anonymous No.105728788
>>105722002
I think Hare is a cool language.
Anonymous No.105729263
>>105720245
Drew lives in Europe and the best C programmers are Russians. Slovaks.
Anonymous No.105729890
>>105724678
How does C++ manage to be bloated while at the same time nobody uses any of it's bloated features?
Anonymous No.105730318
>>105725715
Stop projecting your fetishes onto us.
Anonymous No.105730374
>>105727023
4 year girls masterbate to drew? and a troon divorced drew?
Anonymous No.105730398
>>105703525
Based, so we can have raw sex with these girls without worrying.
Anonymous No.105730438 >>105730702 >>105737542 >>105741325
>4 days
>108 posts
why is tranny op turning this into a political thread, nobody will use this language and the "general" will die when he gets bored of making it
Anonymous No.105730645
>>105716939
I use Hare and I can get at least 4 women per year
Anonymous No.105730702 >>105741001
>>105730438
We are a strong community. we will make our own thread
Anonymous No.105731120 >>105740301
I never heard of this language
Anonymous No.105731433 >>105731693 >>105733585
Where can I find information on how raycasting works? I am working on my software rendering 3D
Anonymous No.105731693 >>105731702
>>105731433
tell chatpg to find you a book/tutorial
Anonymous No.105731702 >>105733320 >>105734230
>>105731693
>tell chatpg to find you a book/tutorial
GPT sucks
Anonymous No.105733320
>>105731702
This
Anonymous No.105733585
>>105731433
Look at tsoding's olive
Anonymous No.105734230 >>105735063 >>105735246
>>105731702
isnt thithis literally the chatbot use case where you use it to perform the google search and find the relevant data and present it? or is it "ai google search is not real google search"
Anonymous No.105735063
>>105734230
It cannot find relevant resultw
Anonymous No.105735246
>>105734230
It is kind of shit desu
Anonymous No.105736390 >>105736710 >>105736717 >>105739812
>>105688172 (OP)
Wat is the point of learning Hare when ChatGpt cannot into Hare? I don't even need to "know" C, I don't need to worry about "segfaults", "use-after-free", because I can simply rely on ChatGpt to discover such bugs for me.
What about for Hare?
Anonymous No.105736710
>>105736390
The point is to actually code?
Anonymous No.105736717
>>105736390
obvious bait
Anonymous No.105736738 >>105736770 >>105739398
Is no one going to mention how hare is incompatible with almost all computers in the world except for the 5 people who use linux on the desktop?
Anonymous No.105736770 >>105736803
>>105736738
>except for the 5 people who use linux on the desktop?
Bruh are you serious dawg? Linux runs the world
Anonymous No.105736803 >>105736901
>>105736770
I don't think I know a single person other than myself who uses a computer this language is compatible with. Maybe the steam deck might be the most widely available compatible device for consumers?
Anonymous No.105736901 >>105737014 >>105738896
>>105736803
You must be a German or something. In Poland and eastern Europe in general, GNU/Linux is very popular
Anonymous No.105737014 >>105737037
>>105736901
Ah, I'm a burger so things must be different over there
Anonymous No.105737037 >>105737076
>>105737014
I thought USA had a very vibrant GNU/Linux community. Did it fizzle out?
Anonymous No.105737076 >>105737097
>>105737037
I use linux, but I don't know of anyone who isn't a huge open source nerd who does as well
Anonymous No.105737097 >>105737134 >>105740655
>>105737076
So using Linux there as Gen Z means falling into the nerd category and getting no bitches?
Anonymous No.105737134 >>105737146 >>105738371
>>105737097
I don't think falling into the nerd category means no bitches these days lol
Anonymous No.105737146
>>105737134
It does here. Luckily using computers and GNU/Linux doesn't count, it is more like having glasses will deprive you of bitches
Anonymous No.105737542
>>105730438
Cope.
Anonymous No.105737590
>he used two adapters to connect the tv to his thinkpad
Anonymous No.105738080 >>105738643
>>105688172 (OP)
>zigger stripe
Anonymous No.105738371
>>105737134
The whole image looks trashy AF
Anonymous No.105738643 >>105741647
>>105738080
Stop saying this word
Anonymous No.105738896
>>105736901
Germans are not doing too well either
Anonymous No.105739398
>>105736738
If you are interested in programming languages there is 90% chance you used Linux at least once.
Anonymous No.105739812
>>105736390
>AI slop
>not segfaulting
Anonymous No.105740301
>>105731120
Then you need to lurk moar
Anonymous No.105740655 >>105752876
>>105737097
26% of men are gf-less, linux users most affected
Anonymous No.105741001
>>105730702
Couldn't have said it better myself!
Anonymous No.105741325
>>105730438
Cope.
Anonymous No.105741403 >>105751741
>>105688172 (OP)
What are the Saint George ribbons for
not that i'm complaining
Anonymous No.105741405 >>105741582 >>105742878 >>105751044
any code examples?
Anonymous No.105741582 >>105752389
>>105741405
Is that fucking giltikus
s0ychan No.105741647
>>105738643
ok zigger (and not the programming language)
Anonymous No.105742878
>>105741405
Gilticus?
Anonymous No.105743161 >>105743997 >>105750211 >>105750590
what are some benefits of using this language over c?
Anonymous No.105743997 >>105747694 >>105749723
>>105743161
c is for normies with segfault
Anonymous No.105744020 >>105744032 >>105744050 >>105747293
>>105688172 (OP)
Bad ideas

The following kinds of marketing activities are explicitly discouraged:

>Paid advertising of any kind; sponsorships, banner ads, etc
>Unsolicited calls for FOSS projects to write/rewrite their code in Hare
>Putting down other programming languages or projects because Hare is β€œbetter”
Anonymous No.105744032
>>105744020
https://harelang.org/documentation/community/evangelism.html
from here
Anonymous No.105744050
>>105744020
Thankfully this thread is none of those
Anonymous No.105744061 >>105744118 >>105744126 >>105745944 >>105748551
>>105688172 (OP)
vibe check
Anonymous No.105744118 >>105752029
>>105744061
Monkin is so zased ...
Anonymous No.105744126 >>105745528
>>105744061
If we were to say Putin is the X of our time, where X is a person, who would that X person be?
Anonymous No.105745528 >>105747907
>>105744126
Lenin
Anonymous No.105745944
>>105744061
yes
Anonymous No.105747293 >>105751409
>>105744020
So?
Anonymous No.105747694
>>105743997
kek
Anonymous No.105747907
>>105745528
This but unironically.
>There are decades when nothing happens, and then there are weeks when decades happen
Anonymous No.105748551
>>105744061
Savior of ethnic Europeans
Anonymous No.105748956
>raped off the virtue signalling platform I lieu of his past victims
>naturally regressed to a stable state of spamming threads about his memelang on a botai horse husbandry imageboard
I kid you not there is not one lolcow I even tangentially know of that is more pathetic than you are, in the vast vast majority it's some mentally ill individual destroying their lives on the internet to the bemusement of kiwifarms sadists and other subhumans but you drew, are a different breed
Anonymous No.105749110
>Thread derailed about irrelevant shit
Anonymous No.105749723 >>105754750
>>105743997
C is okay, but Hare is better.
Anonymous No.105750211 >>105750506
>>105743161
Why is it always the BM-WW? Why not the other way around?
Anonymous No.105750353 >>105750528
im considering learning this lang, where should i start?
Anonymous No.105750506 >>105750727
>>105750211
you cannot compare to the BBC
your women will always desire the black body over the white mind
Anonymous No.105750528
>>105750353
https://harelang.org/tutorials/introduction
Anonymous No.105750590
>>105743161
Fake video.
Anonymous No.105750691
>Hare source files MUST be indented with tabs. The tab size SHOULD be 8 columns.
but why are the source examples on the style guide indented with spaces? what did he mean by this?
Anonymous No.105750727
>>105750506
well its a video from russia so shes not really white herself and her choice wasnt really between white and black
Anonymous No.105751044
>>105741405
I want Zhenya to come visit here in Poland :D
Anonymous No.105751409 >>105754750
>>105747293
He is implying that we are shills lmao
Anonymous No.105751741
>>105741403
The what now?
Anonymous No.105752029
>>105744118
He will be based when he mandates the usage of Hare in military
Anonymous No.105752389
>>105741582
Yup.
Anonymous No.105752876 >>105753369
>>105740655
But all Linux users have a GF (Satania)
Anonymous No.105753369
>>105752876
Kek, true
Anonymous No.105754750
>>105751409
are we not?
>>105749723
Anonymous No.105755526
>>105688205
Looks good